Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.accessibility

Class AccessibleRelation

java.lang.Object
|
+--javax.accessibility.AccessibleBundle
   |
   +--javax.accessibility.AccessibleRelation


public class AccessibleRelation

extends AccessibleBundle

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:

Field Summary

static java.lang.StringCONTROLLED_BY

Indicates an object is controlled by other objects.
static java.lang.StringCONTROLLED_BY_PROPERTY

Indicates that the controlling objects have changed.
static java.lang.StringCONTROLLER_FOR

Indicates an object is a controller for other objects.
static java.lang.StringCONTROLLER_FOR_PROPERTY

Indicates that the controller target group has changed.
static java.lang.StringLABELED_BY

Indicates the object is labeled by other objects.
static java.lang.StringLABELED_BY_PROPERTY

Indicates that the labelling objects have changed.
static java.lang.StringLABEL_FOR

Indicates the object labels other objects.
static java.lang.StringLABEL_FOR_PROPERTY

Indicates that the label target group has changed.
static java.lang.StringMEMBER_OF

Indicates an object is a member of a group of target objects.
static java.lang.StringMEMBER_OF_PROPERTY

Indicates that group membership has changed.

Constructor Summary

AccessibleRelation(java.lang.String key)

Create a new relation with a locale independent key, and no related objects.
AccessibleRelation(java.lang.String key, java.lang.Object target)

Create a new relation with a locale independent key, and a single related object.
AccessibleRelation(java.lang.String key, java.lang.Object[] targets)

Create a new relation with a locale independent key, and the given related objects.

Method Summary

java.lang.StringgetKey()

Return the key for this relation.
java.lang.Object[]getTarget()

Return the targets of this relation.
voidsetTarget(java.lang.Object target)

Set the target to a single object.
voidsetTarget(java.lang.Object[] targets)

Set the target to an array of objects.

Field Details

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.


Constructor Details

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:


Method Details

getKey

public String getKey()

Return the key for this relation.

Returns:

See Also:


getTarget

public Object[] getTarget()

Return the targets of this relation.

Returns:


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: