javax.accessibility
Class AccessibleRelation

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

public class AccessibleRelation
extends AccessibleBundle

Untamed:


Field Summary
static String CONTROLLED_BY
          Enabled: Indicates an object is controlled by one or more target objects.
static String CONTROLLED_BY_PROPERTY
          Enabled: Identifies that the target object that is doing the controlling has changed
static String CONTROLLER_FOR
          Enabled: Indicates an object is a controller for one or more target objects.
static String CONTROLLER_FOR_PROPERTY
          Enabled: Identifies that the controller for the target object has changed
static String LABEL_FOR
          Enabled: Indicates an object is a label for one or more target objects.
static String LABEL_FOR_PROPERTY
          Enabled: Identifies that the target group for a label has changed
static String LABELED_BY
          Enabled: Indicates an object is labeled by one or more target objects.
static String LABELED_BY_PROPERTY
          Enabled: Identifies that the objects that are doing the labeling have changed
static String MEMBER_OF
          Enabled: Indicates an object is a member of a group of one or more target objects.
static String MEMBER_OF_PROPERTY
          Enabled: Identifies that group membership has changed.
private  Object[] target
           
 
Fields inherited from class javax.accessibility.AccessibleBundle
key
 
Constructor Summary
AccessibleRelation(String key)
          Enabled: Create a new AccessibleRelation using the given locale independent key.
AccessibleRelation(String key, Object target)
          Enabled: Creates a new AccessibleRelation using the given locale independent key.
AccessibleRelation(String key, Object[] target)
          Enabled: Creates a new AccessibleRelation using the given locale independent key.
 
Method Summary
 String getKey()
          Enabled: Returns the key for this relation
 Object[] getTarget()
          Enabled: Returns the target objects for this relation
 void setTarget(Object target)
          Enabled: Sets the target object for this relation
 void setTarget(Object[] target)
          Enabled: Sets the target objects for this relation
 
Methods inherited from class javax.accessibility.AccessibleBundle
toDisplayString, toDisplayString, toDisplayString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

private Object[] target

LABEL_FOR

public static final String LABEL_FOR
Enabled: Indicates an object is a label for one or more target objects.

See Also:
getTarget(), CONTROLLER_FOR, CONTROLLED_BY, LABELED_BY, MEMBER_OF

LABELED_BY

public static final String LABELED_BY
Enabled: Indicates an object is labeled by one or more target objects.

See Also:
getTarget(), CONTROLLER_FOR, CONTROLLED_BY, LABEL_FOR, MEMBER_OF

MEMBER_OF

public static final String MEMBER_OF
Enabled: Indicates an object is a member of a group of one or more target objects.

See Also:
getTarget(), CONTROLLER_FOR, CONTROLLED_BY, LABEL_FOR, LABELED_BY

CONTROLLER_FOR

public static final String CONTROLLER_FOR
Enabled: Indicates an object is a controller for one or more target objects.

See Also:
getTarget(), CONTROLLED_BY, LABEL_FOR, LABELED_BY, MEMBER_OF

CONTROLLED_BY

public static final String CONTROLLED_BY
Enabled: Indicates an object is controlled by one or more target objects.

See Also:
getTarget(), CONTROLLER_FOR, LABEL_FOR, LABELED_BY, MEMBER_OF

LABEL_FOR_PROPERTY

public static final String LABEL_FOR_PROPERTY
Enabled: Identifies that the target group for a label has changed


LABELED_BY_PROPERTY

public static final String LABELED_BY_PROPERTY
Enabled: Identifies that the objects that are doing the labeling have changed


MEMBER_OF_PROPERTY

public static final String MEMBER_OF_PROPERTY
Enabled: Identifies that group membership has changed.


CONTROLLER_FOR_PROPERTY

public static final String CONTROLLER_FOR_PROPERTY
Enabled: Identifies that the controller for the target object has changed


CONTROLLED_BY_PROPERTY

public static final String CONTROLLED_BY_PROPERTY
Enabled: Identifies that the target object that is doing the controlling has changed

Constructor Detail

AccessibleRelation

public AccessibleRelation(String key)
Enabled: Create a new AccessibleRelation using the given locale independent key.

Parameters:
key - the locale independent name of the relation.
See Also:
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)

AccessibleRelation

public AccessibleRelation(String key,
                          Object target)
Enabled: Creates a new AccessibleRelation using the given locale independent key.

Parameters:
key - the locale independent name of the relation.
target - the target object for this relation
See Also:
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)

AccessibleRelation

public AccessibleRelation(String key,
                          Object[] target)
Enabled: Creates a new AccessibleRelation using the given locale independent key.

Parameters:
key - the locale independent name of the relation.
target - the target object(s) for this relation
See Also:
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)
Method Detail

getKey

public String getKey()
Enabled: Returns the key for this relation

Returns:
the key for this relation
See Also:
CONTROLLER_FOR, CONTROLLED_BY, LABEL_FOR, LABELED_BY, MEMBER_OF

getTarget

public Object[] getTarget()
Enabled: Returns the target objects for this relation

Returns:
an array containing the target objects for this relation

setTarget

public void setTarget(Object target)
Enabled: Sets the target object for this relation

Parameters:
target - the target object for this relation

setTarget

public void setTarget(Object[] target)
Enabled: Sets the target objects for this relation

Parameters:
target - an array containing the target objects for this relation


comments?