java.lang.Object
javax.accessibility.AccessibleBundle
javax.accessibility.AccessibleRelation
Class 
AccessibleRelation describes a relation between the object that
 implements the AccessibleRelation and one or more other objects. The
 actual relations that an object has with other objects are defined as an
 AccessibleRelationSet, which is a composed set of
 AccessibleRelations.
 
 The AccessibleBundle.toDisplayString() method allows you to obtain the localized
 string for a locale independent key from a predefined ResourceBundle
 for the keys defined in this class.
 
The constants in this class present a strongly typed enumeration of common object roles. If the constants in this class are not sufficient to describe the role of an object, a subclass should be generated from this class and it should provide constants in a similar manner.
- Since:
- 1.3
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringIndicates that an object is a child node of one or more objects.static final StringIndicates theCHILD_NODE_OFrelation between two or more objects has changed.static final StringIndicates an object is controlled by one or more target objects.static final StringIdentifies that the target object that is doing the controlling has changed.static final StringIndicates an object is a controller for one or more target objects.static final StringIdentifies that the controller for the target object has changed.static final StringIndicates that an object is embedded in one or more objects.static final StringIndicates theEMBEDDED_BYrelation between two or more objects has changed.static final StringIndicates that an object has one or more objects embedded in it.static final StringIndicates theEMBEDSrelation between two or more objects has changed.static final StringIndicates an object is logically contiguous with a second object where the second object occurs before the object.static final StringIndicates theFLOWS_FROMrelation between two objects has changed.static final StringIndicates an object is logically contiguous with a second object where the second object occurs after the object.static final StringIndicates theFLOWS_TOrelation between two objects has changed.static final StringIndicates an object is a label for one or more target objects.static final StringIdentifies that the target group for a label has changed.static final StringIndicates an object is labeled by one or more target objects.static final StringIdentifies that the objects that are doing the labeling have changed.static final StringIndicates an object is a member of a group of one or more target objects.static final StringIdentifies that group membership has changed.static final StringIndicates that an object is a parent window of one or more objects.static final StringIndicates thePARENT_WINDOW_OFrelation between two or more objects has changed.static final StringIndicates that an object is a subwindow of one or more objects.static final StringIndicates theSUBWINDOW_OFrelation between two or more objects has changed.Fields declared in class javax.accessibility.AccessibleBundlekey
- 
Constructor SummaryConstructorsConstructorDescriptionAccessibleRelation(String key) Create a newAccessibleRelationusing the given locale independent key.AccessibleRelation(String key, Object target) Creates a newAccessibleRelationusing the given locale independent key.AccessibleRelation(String key, Object[] target) Creates a newAccessibleRelationusing the given locale independent key.
- 
Method SummaryMethods declared in class javax.accessibility.AccessibleBundletoDisplayString, toDisplayString, toDisplayString, toString
- 
Field Details- 
LABEL_FORIndicates an object is a label for one or more target objects.- See Also:
 
- 
LABELED_BYIndicates an object is labeled by one or more target objects.- See Also:
 
- 
MEMBER_OFIndicates an object is a member of a group of one or more target objects.- See Also:
 
- 
CONTROLLER_FORIndicates an object is a controller for one or more target objects.- See Also:
 
- 
CONTROLLED_BYIndicates an object is controlled by one or more target objects.- See Also:
 
- 
FLOWS_TOIndicates an object is logically contiguous with a second object where the second object occurs after the object. An example is a paragraph of text that runs to the end of a page and continues on the next page with an intervening text footer and/or text header. The two parts of the paragraph are separate text elements but are related in that the second element is a continuation of the first element. In other words, the first element "flows to" the second element.- Since:
- 1.5
- See Also:
 
- 
FLOWS_FROMIndicates an object is logically contiguous with a second object where the second object occurs before the object. An example is a paragraph of text that runs to the end of a page and continues on the next page with an intervening text footer and/or text header. The two parts of the paragraph are separate text elements but are related in that the second element is a continuation of the first element. In other words, the second element "flows from" the second element.- Since:
- 1.5
- See Also:
 
- 
SUBWINDOW_OFIndicates that an object is a subwindow of one or more objects.- Since:
- 1.5
- See Also:
 
- 
PARENT_WINDOW_OFIndicates that an object is a parent window of one or more objects.- Since:
- 1.5
- See Also:
 
- 
EMBEDSIndicates that an object has one or more objects embedded in it.- Since:
- 1.5
- See Also:
 
- 
EMBEDDED_BYIndicates that an object is embedded in one or more objects.- Since:
- 1.5
- See Also:
 
- 
CHILD_NODE_OFIndicates that an object is a child node of one or more objects.- Since:
- 1.5
- See Also:
 
- 
LABEL_FOR_PROPERTYIdentifies that the target group for a label has changed.- See Also:
 
- 
LABELED_BY_PROPERTYIdentifies that the objects that are doing the labeling have changed.- See Also:
 
- 
MEMBER_OF_PROPERTYIdentifies that group membership has changed.- See Also:
 
- 
CONTROLLER_FOR_PROPERTYIdentifies that the controller for the target object has changed.- See Also:
 
- 
CONTROLLED_BY_PROPERTYIdentifies that the target object that is doing the controlling has changed.- See Also:
 
- 
FLOWS_TO_PROPERTYIndicates theFLOWS_TOrelation between two objects has changed.- Since:
- 1.5
- See Also:
 
- 
FLOWS_FROM_PROPERTYIndicates theFLOWS_FROMrelation between two objects has changed.- Since:
- 1.5
- See Also:
 
- 
SUBWINDOW_OF_PROPERTYIndicates theSUBWINDOW_OFrelation between two or more objects has changed.- Since:
- 1.5
- See Also:
 
- 
PARENT_WINDOW_OF_PROPERTYIndicates thePARENT_WINDOW_OFrelation between two or more objects has changed.- Since:
- 1.5
- See Also:
 
- 
EMBEDS_PROPERTYIndicates theEMBEDSrelation between two or more objects has changed.- Since:
- 1.5
- See Also:
 
- 
EMBEDDED_BY_PROPERTYIndicates theEMBEDDED_BYrelation between two or more objects has changed.- Since:
- 1.5
- See Also:
 
- 
CHILD_NODE_OF_PROPERTYIndicates theCHILD_NODE_OFrelation between two or more objects has changed.- Since:
- 1.5
- See Also:
 
 
- 
- 
Constructor Details- 
AccessibleRelationCreate a newAccessibleRelationusing the given locale independent key. The keyStringshould be a locale independent key for the relation. It is not intended to be used as the actualStringto display to the user. To get the localized string, useAccessibleBundle.toDisplayString().- Parameters:
- key- the locale independent name of the relation
- See Also:
 
- 
AccessibleRelationCreates a newAccessibleRelationusing the given locale independent key. The keyStringshould be a locale independent key for the relation. It is not intended to be used as the actualStringto display to the user. To get the localized string, useAccessibleBundle.toDisplayString().- Parameters:
- key- the locale independent name of the relation
- target- the target object for this relation
- See Also:
 
- 
AccessibleRelationCreates a newAccessibleRelationusing the given locale independent key. The keyStringshould be a locale independent key for the relation. It is not intended to be used as the actualStringto display to the user. To get the localized string, useAccessibleBundle.toDisplayString().- Parameters:
- key- the locale independent name of the relation
- target- the target object(s) for this relation
- See Also:
 
 
- 
- 
Method Details- 
getKeyReturns the key for this relation.- Returns:
- the key for this relation
- See Also:
 
- 
getTargetReturns the target objects for this relation.- Returns:
- an array containing the target objects for this relation
 
- 
setTargetSets the target object for this relation.- Parameters:
- target- the target object for this relation
 
- 
setTargetSets the target objects for this relation.- Parameters:
- target- an array containing the target objects for this relation
 
 
-