javax.accessibility
Class AccessibleRelation

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.accessibility.AccessibleBundle sample code for javax.accessibility.AccessibleBundle definition code for javax.accessibility.AccessibleBundle 
      extended by javax.accessibility.AccessibleRelation

public class AccessibleRelation
extends AccessibleBundle sample code for javax.accessibility.AccessibleBundle definition code for javax.accessibility.AccessibleBundle

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 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.


Field Summary
static String sample code for java.lang.String definition code for java.lang.String CHILD_NODE_OF sample code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF definition code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF
          Indicates that an object is a child node of one or more objects.
static String sample code for java.lang.String definition code for java.lang.String CHILD_NODE_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF_PROPERTY definition code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF_PROPERTY
          Indicates the CHILD_NODE_OF relation between two or more objects has changed.
static String sample code for java.lang.String definition code for java.lang.String CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY
          Indicates an object is controlled by one or more target objects.
static String sample code for java.lang.String definition code for java.lang.String CONTROLLED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY_PROPERTY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY_PROPERTY
          Identifies that the target object that is doing the controlling has changed
static String sample code for java.lang.String definition code for java.lang.String CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR
          Indicates an object is a controller for one or more target objects.
static String sample code for java.lang.String definition code for java.lang.String CONTROLLER_FOR_PROPERTY sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR_PROPERTY definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR_PROPERTY
          Identifies that the controller for the target object has changed
static String sample code for java.lang.String definition code for java.lang.String EMBEDDED_BY sample code for javax.accessibility.AccessibleRelation.EMBEDDED_BY definition code for javax.accessibility.AccessibleRelation.EMBEDDED_BY
          Indicates that an object is embedded in one or more objects.
static String sample code for java.lang.String definition code for java.lang.String EMBEDDED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.EMBEDDED_BY_PROPERTY definition code for javax.accessibility.AccessibleRelation.EMBEDDED_BY_PROPERTY
          Indicates the EMBEDDED_BY relation between two or more objects has changed.
static String sample code for java.lang.String definition code for java.lang.String EMBEDS sample code for javax.accessibility.AccessibleRelation.EMBEDS definition code for javax.accessibility.AccessibleRelation.EMBEDS
          Indicates that an object has one or more objects embedded in it.
static String sample code for java.lang.String definition code for java.lang.String EMBEDS_PROPERTY sample code for javax.accessibility.AccessibleRelation.EMBEDS_PROPERTY definition code for javax.accessibility.AccessibleRelation.EMBEDS_PROPERTY
          Indicates the EMBEDS relation between two or more objects has changed.
static String sample code for java.lang.String definition code for java.lang.String FLOWS_FROM sample code for javax.accessibility.AccessibleRelation.FLOWS_FROM definition code for javax.accessibility.AccessibleRelation.FLOWS_FROM
          Indicates an object is logically contiguous with a second object where the second object occurs before the object.
static String sample code for java.lang.String definition code for java.lang.String FLOWS_FROM_PROPERTY sample code for javax.accessibility.AccessibleRelation.FLOWS_FROM_PROPERTY definition code for javax.accessibility.AccessibleRelation.FLOWS_FROM_PROPERTY
          Indicates the FLOWS_FROM relation between two objects has changed.
static String sample code for java.lang.String definition code for java.lang.String FLOWS_TO sample code for javax.accessibility.AccessibleRelation.FLOWS_TO definition code for javax.accessibility.AccessibleRelation.FLOWS_TO
          Indicates an object is logically contiguous with a second object where the second object occurs after the object.
static String sample code for java.lang.String definition code for java.lang.String FLOWS_TO_PROPERTY sample code for javax.accessibility.AccessibleRelation.FLOWS_TO_PROPERTY definition code for javax.accessibility.AccessibleRelation.FLOWS_TO_PROPERTY
          Indicates the FLOWS_TO relation between two objects has changed.
static String sample code for java.lang.String definition code for java.lang.String LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR
          Indicates an object is a label for one or more target objects.
static String sample code for java.lang.String definition code for java.lang.String LABEL_FOR_PROPERTY sample code for javax.accessibility.AccessibleRelation.LABEL_FOR_PROPERTY definition code for javax.accessibility.AccessibleRelation.LABEL_FOR_PROPERTY
          Identifies that the target group for a label has changed
static String sample code for java.lang.String definition code for java.lang.String LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY
          Indicates an object is labeled by one or more target objects.
static String sample code for java.lang.String definition code for java.lang.String LABELED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.LABELED_BY_PROPERTY definition code for javax.accessibility.AccessibleRelation.LABELED_BY_PROPERTY
          Identifies that the objects that are doing the labeling have changed
static String sample code for java.lang.String definition code for java.lang.String MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF
          Indicates an object is a member of a group of one or more target objects.
static String sample code for java.lang.String definition code for java.lang.String MEMBER_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.MEMBER_OF_PROPERTY definition code for javax.accessibility.AccessibleRelation.MEMBER_OF_PROPERTY
          Identifies that group membership has changed.
static String sample code for java.lang.String definition code for java.lang.String PARENT_WINDOW_OF sample code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF definition code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF
          Indicates that an object is a parent window of one or more objects.
static String sample code for java.lang.String definition code for java.lang.String PARENT_WINDOW_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF_PROPERTY definition code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF_PROPERTY
          Indicates the PARENT_WINDOW_OF relation between two or more objects has changed.
static String sample code for java.lang.String definition code for java.lang.String SUBWINDOW_OF sample code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF definition code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF
          Indicates that an object is a subwindow of one or more objects.
static String sample code for java.lang.String definition code for java.lang.String SUBWINDOW_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF_PROPERTY definition code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF_PROPERTY
          Indicates the SUBWINDOW_OF relation between two or more objects has changed.
 
Fields inherited from class javax.accessibility.AccessibleBundle sample code for javax.accessibility.AccessibleBundle definition code for javax.accessibility.AccessibleBundle
key sample code for javax.accessibility.AccessibleBundle.key definition code for javax.accessibility.AccessibleBundle.key
 
Constructor Summary
AccessibleRelation sample code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String) definition code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  key)
          Create a new AccessibleRelation using the given locale independent key.
AccessibleRelation sample code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String, java.lang.Object) definition code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  key, Object sample code for java.lang.Object definition code for java.lang.Object  target)
          Creates a new AccessibleRelation using the given locale independent key.
AccessibleRelation sample code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String, java.lang.Object[]) definition code for javax.accessibility.AccessibleRelation.AccessibleRelation(java.lang.String, java.lang.Object[]) (String sample code for java.lang.String definition code for java.lang.String  key, Object sample code for java.lang.Object definition code for java.lang.Object [] target)
          Creates a new AccessibleRelation using the given locale independent key.
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String getKey sample code for javax.accessibility.AccessibleRelation.getKey() definition code for javax.accessibility.AccessibleRelation.getKey() ()
          Returns the key for this relation
 Object sample code for java.lang.Object definition code for java.lang.Object [] getTarget sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() ()
          Returns the target objects for this relation
 void setTarget sample code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object) definition code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  target)
          Sets the target object for this relation
 void setTarget sample code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object[]) definition code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object[]) (Object sample code for java.lang.Object definition code for java.lang.Object [] target)
          Sets the target objects for this relation
 
Methods inherited from class javax.accessibility.AccessibleBundle sample code for javax.accessibility.AccessibleBundle definition code for javax.accessibility.AccessibleBundle
toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString() definition code for javax.accessibility.AccessibleBundle.toDisplayString() , toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.util.Locale) , toDisplayString sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) , toString sample code for javax.accessibility.AccessibleBundle.toString() definition code for javax.accessibility.AccessibleBundle.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR

public static final String sample code for java.lang.String definition code for java.lang.String  LABEL_FOR
Indicates an object is a label for one or more target objects.

See Also:
getTarget() sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() , CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR , CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY , LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY , MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF

LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY

public static final String sample code for java.lang.String definition code for java.lang.String  LABELED_BY
Indicates an object is labeled by one or more target objects.

See Also:
getTarget() sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() , CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR , CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY , LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR , MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF

MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF

public static final String sample code for java.lang.String definition code for java.lang.String  MEMBER_OF
Indicates an object is a member of a group of one or more target objects.

See Also:
getTarget() sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() , CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR , CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY , LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR , LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY

CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR

public static final String sample code for java.lang.String definition code for java.lang.String  CONTROLLER_FOR
Indicates an object is a controller for one or more target objects.

See Also:
getTarget() sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() , CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY , LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR , LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY , MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF

CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY

public static final String sample code for java.lang.String definition code for java.lang.String  CONTROLLED_BY
Indicates an object is controlled by one or more target objects.

See Also:
getTarget() sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget() , CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR , LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR , LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY , MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF

FLOWS_TO sample code for javax.accessibility.AccessibleRelation.FLOWS_TO

public static final String sample code for java.lang.String definition code for java.lang.String  FLOWS_TO
Indicates 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:
Constant Field Values

FLOWS_FROM sample code for javax.accessibility.AccessibleRelation.FLOWS_FROM

public static final String sample code for java.lang.String definition code for java.lang.String  FLOWS_FROM
Indicates 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:
Constant Field Values

SUBWINDOW_OF sample code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF

public static final String sample code for java.lang.String definition code for java.lang.String  SUBWINDOW_OF
Indicates that an object is a subwindow of one or more objects.

Since:
1.5
See Also:
Constant Field Values

PARENT_WINDOW_OF sample code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF

public static final String sample code for java.lang.String definition code for java.lang.String  PARENT_WINDOW_OF
Indicates that an object is a parent window of one or more objects.

Since:
1.5
See Also:
Constant Field Values

EMBEDS sample code for javax.accessibility.AccessibleRelation.EMBEDS

public static final String sample code for java.lang.String definition code for java.lang.String  EMBEDS
Indicates that an object has one or more objects embedded in it.

Since:
1.5
See Also:
Constant Field Values

EMBEDDED_BY sample code for javax.accessibility.AccessibleRelation.EMBEDDED_BY

public static final String sample code for java.lang.String definition code for java.lang.String  EMBEDDED_BY
Indicates that an object is embedded in one or more objects.

Since:
1.5
See Also:
Constant Field Values

CHILD_NODE_OF sample code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF

public static final String sample code for java.lang.String definition code for java.lang.String  CHILD_NODE_OF
Indicates that an object is a child node of one or more objects.

Since:
1.5
See Also:
Constant Field Values

LABEL_FOR_PROPERTY sample code for javax.accessibility.AccessibleRelation.LABEL_FOR_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  LABEL_FOR_PROPERTY
Identifies that the target group for a label has changed

See Also:
Constant Field Values

LABELED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.LABELED_BY_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  LABELED_BY_PROPERTY
Identifies that the objects that are doing the labeling have changed

See Also:
Constant Field Values

MEMBER_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.MEMBER_OF_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  MEMBER_OF_PROPERTY
Identifies that group membership has changed.

See Also:
Constant Field Values

CONTROLLER_FOR_PROPERTY sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  CONTROLLER_FOR_PROPERTY
Identifies that the controller for the target object has changed

See Also:
Constant Field Values

CONTROLLED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  CONTROLLED_BY_PROPERTY
Identifies that the target object that is doing the controlling has changed

See Also:
Constant Field Values

FLOWS_TO_PROPERTY sample code for javax.accessibility.AccessibleRelation.FLOWS_TO_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FLOWS_TO_PROPERTY
Indicates the FLOWS_TO relation between two objects has changed.

Since:
1.5
See Also:
Constant Field Values

FLOWS_FROM_PROPERTY sample code for javax.accessibility.AccessibleRelation.FLOWS_FROM_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FLOWS_FROM_PROPERTY
Indicates the FLOWS_FROM relation between two objects has changed.

Since:
1.5
See Also:
Constant Field Values

SUBWINDOW_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.SUBWINDOW_OF_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  SUBWINDOW_OF_PROPERTY
Indicates the SUBWINDOW_OF relation between two or more objects has changed.

Since:
1.5
See Also:
Constant Field Values

PARENT_WINDOW_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.PARENT_WINDOW_OF_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  PARENT_WINDOW_OF_PROPERTY
Indicates the PARENT_WINDOW_OF relation between two or more objects has changed.

Since:
1.5
See Also:
Constant Field Values

EMBEDS_PROPERTY sample code for javax.accessibility.AccessibleRelation.EMBEDS_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  EMBEDS_PROPERTY
Indicates the EMBEDS relation between two or more objects has changed.

Since:
1.5
See Also:
Constant Field Values

EMBEDDED_BY_PROPERTY sample code for javax.accessibility.AccessibleRelation.EMBEDDED_BY_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  EMBEDDED_BY_PROPERTY
Indicates the EMBEDDED_BY relation between two or more objects has changed.

Since:
1.5
See Also:
Constant Field Values

CHILD_NODE_OF_PROPERTY sample code for javax.accessibility.AccessibleRelation.CHILD_NODE_OF_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  CHILD_NODE_OF_PROPERTY
Indicates the CHILD_NODE_OF relation between two or more objects has changed.

Since:
1.5
See Also:
Constant Field Values
Constructor Detail

AccessibleRelation sample code for javax.accessibility.AccessibleRelation(java.lang.String) definition code for javax.accessibility.AccessibleRelation(java.lang.String)

public AccessibleRelation(String sample code for java.lang.String definition code for java.lang.String  key)
Create a new AccessibleRelation using the given locale independent key. The key String should be a locale independent key for the relation. It is not intended to be used as the actual String to display to the user. To get the localized string, use toDisplayString.

Parameters:
key - the locale independent name of the relation.
See Also:
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)

AccessibleRelation sample code for javax.accessibility.AccessibleRelation(java.lang.String, java.lang.Object) definition code for javax.accessibility.AccessibleRelation(java.lang.String, java.lang.Object)

public AccessibleRelation(String sample code for java.lang.String definition code for java.lang.String  key,
                          Object sample code for java.lang.Object definition code for java.lang.Object  target)
Creates a new AccessibleRelation using the given locale independent key. The key String should be a locale independent key for the relation. It is not intended to be used as the actual String to display to the user. To get the localized string, use toDisplayString.

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) sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)

AccessibleRelation sample code for javax.accessibility.AccessibleRelation(java.lang.String, java.lang.Object[]) definition code for javax.accessibility.AccessibleRelation(java.lang.String, java.lang.Object[])

public AccessibleRelation(String sample code for java.lang.String definition code for java.lang.String  key,
                          Object sample code for java.lang.Object definition code for java.lang.Object [] target)
Creates a new AccessibleRelation using the given locale independent key. The key String should be a locale independent key for the relation. It is not intended to be used as the actual String to display to the user. To get the localized string, use toDisplayString.

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) sample code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) definition code for javax.accessibility.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)
Method Detail

getKey sample code for javax.accessibility.AccessibleRelation.getKey() definition code for javax.accessibility.AccessibleRelation.getKey()

public String sample code for java.lang.String definition code for java.lang.String  getKey()
Returns the key for this relation

Returns:
the key for this relation
See Also:
CONTROLLER_FOR sample code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR definition code for javax.accessibility.AccessibleRelation.CONTROLLER_FOR , CONTROLLED_BY sample code for javax.accessibility.AccessibleRelation.CONTROLLED_BY definition code for javax.accessibility.AccessibleRelation.CONTROLLED_BY , LABEL_FOR sample code for javax.accessibility.AccessibleRelation.LABEL_FOR definition code for javax.accessibility.AccessibleRelation.LABEL_FOR , LABELED_BY sample code for javax.accessibility.AccessibleRelation.LABELED_BY definition code for javax.accessibility.AccessibleRelation.LABELED_BY , MEMBER_OF sample code for javax.accessibility.AccessibleRelation.MEMBER_OF definition code for javax.accessibility.AccessibleRelation.MEMBER_OF

getTarget sample code for javax.accessibility.AccessibleRelation.getTarget() definition code for javax.accessibility.AccessibleRelation.getTarget()

public Object sample code for java.lang.Object definition code for java.lang.Object [] getTarget()
Returns the target objects for this relation

Returns:
an array containing the target objects for this relation

setTarget sample code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object) definition code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object)

public void setTarget(Object sample code for java.lang.Object definition code for java.lang.Object  target)
Sets the target object for this relation

Parameters:
target - the target object for this relation

setTarget sample code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object[]) definition code for javax.accessibility.AccessibleRelation.setTarget(java.lang.Object[])

public void setTarget(Object sample code for java.lang.Object definition code for java.lang.Object [] target)
Sets the target objects for this relation

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