Interface IRelationshipsTraitBuilder
interface IRelationshipsTraitBuilder
Extends com.amazon.apmf.IStandard
IRelationshipsTraitBuilder interface to build the ITrait interface
which is used to describe how this view is related to
other views.
Methods
labelFor()
Add the view for which the current view serves as a label.voidlabelFor(IView*view)
Parameters
view
IView* — Required
The view for which the current view is a label.
labeledBy()
Add the view which serves as the current view’s label.voidlabeledBy(IView*view)
Parameters
view
IView* — Required
The view that labels this one.
describedBy()
Add a list of views which describe the current view.voiddescribedBy(IView*[]views)
Parameters
views
IView*[] — Required
A list of views which describe the current one.
descriptionFor()
Add the view which is described by the current view.voiddescriptionFor(IView*view)
Parameters
view
IView* — Required
The view this element describes.
errorMessage()
Add the view that displays an error message that is relevant to this view. For example; if a full-screen keyboard is prompting for a password; an error message somewhere else on the screen might indicate that the wrong password was entered.voiderrorMessage(IView*view)
Parameters
view
IView* — Required
The view which displays the error message.
build()
Build theITrait*build()
ITrait object using the setters.
Returns
ITrait*
The ITrait object which will be passed to the IAccessibilityContext.

