javax.accessibility
Class AccessibleRelation
java.lang.Object
|
+--javax.accessibility.AccessibleBundle
|
+--javax.accessibility.AccessibleRelation
The relation between one accessible object and one or more other objects.
For example, a button may control an action. An AccessibleRelationSet
summarizes all relations of the object. This strongly typed "enumeration"
supports localized strings. If the constants of this class are not
adequate, new ones may be added in a similar matter.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
CONTROLLED_BY
public static final String CONTROLLED_BY
Indicates an object is controlled by other objects.
See Also:
CONTROLLED_BY_PROPERTY
public static final String CONTROLLED_BY_PROPERTY
Indicates that the controlling objects have changed.
CONTROLLER_FOR
public static final String CONTROLLER_FOR
Indicates an object is a controller for other objects.
See Also:
CONTROLLER_FOR_PROPERTY
public static final String CONTROLLER_FOR_PROPERTY
Indicates that the controller target group has changed.
LABELED_BY
public static final String LABELED_BY
Indicates the object is labeled by other objects.
See Also:
LABELED_BY_PROPERTY
public static final String LABELED_BY_PROPERTY
Indicates that the labelling objects have changed.
LABEL_FOR
public static final String LABEL_FOR
Indicates the object labels other objects.
See Also:
LABEL_FOR_PROPERTY
public static final String LABEL_FOR_PROPERTY
Indicates that the label target group has changed.
MEMBER_OF
public static final String MEMBER_OF
Indicates an object is a member of a group of target objects.
See Also:
MEMBER_OF_PROPERTY
public static final String MEMBER_OF_PROPERTY
Indicates that group membership has changed.
AccessibleRelation
public AccessibleRelation(java.lang.String key)
Create a new relation with a locale independent key, and no related
objects.
Parameters:
See Also:
AccessibleRelation
public AccessibleRelation(java.lang.String key, java.lang.Object target)
Create a new relation with a locale independent key, and a single related
object.
Parameters:
See Also:
AccessibleRelation
public AccessibleRelation(java.lang.String key, java.lang.Object[] targets)
Create a new relation with a locale independent key, and the given
related objects.
Parameters:
See Also:
getKey
public String getKey()
Return the key for this relation.
Returns:
See Also:
getTarget
public Object[] getTarget()
Return the targets of this relation.
Returns:
- the targets, may be empty, but never null
setTarget
public void setTarget(java.lang.Object target)
Set the target to a single object.
Parameters:
setTarget
public void setTarget(java.lang.Object[] targets)
Set the target to an array of objects.
Parameters: