public class AccessibleRelation extends AccessibleBundle
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.
Modifier and Type | Field | Description |
---|---|---|
static final String |
CHILD_NODE_OF |
Indicates that an object is a child node of one or more objects. |
static final String |
CHILD_NODE_OF_PROPERTY |
Indicates the CHILD_NODE_OF relation between two or more objects has changed. |
static final String |
CONTROLLED_BY |
Indicates an object is controlled by one or more target objects. |
static final String |
CONTROLLED_BY_PROPERTY |
Identifies that the target object that is doing the controlling has changed. |
static final String |
CONTROLLER_FOR |
Indicates an object is a controller for one or more target objects. |
static final String |
CONTROLLER_FOR_PROPERTY |
Identifies that the controller for the target object has changed. |
static final String |
EMBEDDED_BY |
Indicates that an object is embedded in one or more objects. |
static final String |
EMBEDDED_BY_PROPERTY |
Indicates the EMBEDDED_BY relation between two or more objects has changed. |
static final String |
EMBEDS |
Indicates that an object has one or more objects embedded in it. |
static final String |
EMBEDS_PROPERTY |
Indicates the EMBEDS relation between two or more objects has changed. |
static final String |
FLOWS_FROM |
Indicates an object is logically contiguous with a second object where the second object occurs before the object. |
static final String |
FLOWS_FROM_PROPERTY |
Indicates the FLOWS_FROM relation between two objects has changed. |
static final String |
FLOWS_TO |
Indicates an object is logically contiguous with a second object where the second object occurs after the object. |
static final String |
FLOWS_TO_PROPERTY |
Indicates the FLOWS_TO relation between two objects has changed. |
static final String |
LABEL_FOR |
Indicates an object is a label for one or more target objects. |
static final String |
LABEL_FOR_PROPERTY |
Identifies that the target group for a label has changed. |
static final String |
LABELED_BY |
Indicates an object is labeled by one or more target objects. |
static final String |
LABELED_BY_PROPERTY |
Identifies that the objects that are doing the labeling have changed. |
static final String |
MEMBER_OF |
Indicates an object is a member of a group of one or more target objects. |
static final String |
MEMBER_OF_PROPERTY |
Identifies that group membership has changed. |
static final String |
PARENT_WINDOW_OF |
Indicates that an object is a parent window of one or more objects. |
static final String |
PARENT_WINDOW_OF_PROPERTY |
Indicates the PARENT_WINDOW_OF relation between two or more objects has changed. |
static final String |
SUBWINDOW_OF |
Indicates that an object is a subwindow of one or more objects. |
static final String |
SUBWINDOW_OF_PROPERTY |
Indicates the SUBWINDOW_OF relation between two or more objects has changed. |
key
Constructor | Description |
---|---|
AccessibleRelation |
Create a new AccessibleRelation using the given locale independent key. |
AccessibleRelation |
Creates a new AccessibleRelation using the given locale independent key. |
AccessibleRelation |
Creates a new AccessibleRelation using the given locale independent key. |
Modifier and Type | Method | Description |
---|---|---|
String |
getKey() |
Returns the key for this relation. |
Object[] |
getTarget() |
Returns the target objects for this relation. |
void |
setTarget |
Sets the target object for this relation. |
void |
setTarget |
Sets the target objects for this relation. |
toDisplayString, toDisplayString, toDisplayString, toString
public static final String LABEL_FOR
public static final String LABELED_BY
public static final String MEMBER_OF
public static final String CONTROLLER_FOR
public static final String CONTROLLED_BY
public static final String FLOWS_TO
public static final String FLOWS_FROM
public static final String SUBWINDOW_OF
public static final String PARENT_WINDOW_OF
public static final String EMBEDS
public static final String EMBEDDED_BY
public static final String CHILD_NODE_OF
public static final String LABEL_FOR_PROPERTY
public static final String LABELED_BY_PROPERTY
public static final String MEMBER_OF_PROPERTY
public static final String CONTROLLER_FOR_PROPERTY
public static final String CONTROLLED_BY_PROPERTY
public static final String FLOWS_TO_PROPERTY
FLOWS_TO
relation between two objects has changed.public static final String FLOWS_FROM_PROPERTY
FLOWS_FROM
relation between two objects has changed.public static final String SUBWINDOW_OF_PROPERTY
SUBWINDOW_OF
relation between two or more objects has changed.public static final String PARENT_WINDOW_OF_PROPERTY
PARENT_WINDOW_OF
relation between two or more objects has changed.public static final String EMBEDS_PROPERTY
EMBEDS
relation between two or more objects has changed.public static final String EMBEDDED_BY_PROPERTY
EMBEDDED_BY
relation between two or more objects has changed.public static final String CHILD_NODE_OF_PROPERTY
CHILD_NODE_OF
relation between two or more objects has changed.public AccessibleRelation(String key)
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 AccessibleBundle.toDisplayString()
.key
- the locale independent name of the relationpublic AccessibleRelation(String key, Object target)
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 AccessibleBundle.toDisplayString()
.key
- the locale independent name of the relationtarget
- the target object for this relationpublic AccessibleRelation(String key, Object[] target)
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 AccessibleBundle.toDisplayString()
.key
- the locale independent name of the relationtarget
- the target object(s) for this relationpublic String getKey()
public Object[] getTarget()
public void setTarget(Object target)
target
- the target object for this relationpublic void setTarget(Object[] target)
target
- an array containing the target objects for this relation
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/accessibility/AccessibleRelation.html