AccessibleContext
represents the minimum information all accessible
objects return. This information includes the accessible name, description,
role, and state of the object, as well as information about its parent and
children. AccessibleContext
also contains methods for obtaining more
specific accessibility information about a component. If the component
supports them, these methods will return an object that implements one or
more of the following interfaces:
AccessibleAction
- the object can perform one or more actions.
This interface provides the standard mechanism for an assistive technology
to determine what those actions are and tell the object to perform them.
Any object that can be manipulated should support this interface.
AccessibleComponent
- the object has a graphical
representation. This interface provides the standard mechanism for an
assistive technology to determine and set the graphical representation of
the object. Any object that is rendered on the screen should support this
interface.
AccessibleSelection
- the object allows its children to be
selected. This interface provides the standard mechanism for an assistive
technology to determine the currently selected children of the object as
well as modify its selection set. Any object that has children that can be
selected should support this interface.
AccessibleText
- the object presents editable textual
information on the display. This interface provides the standard mechanism
for an assistive technology to access that text via its content,
attributes, and spatial location. Any object that contains editable text
should support this interface.
AccessibleValue
- the object supports a numerical value. This
interface provides the standard mechanism for an assistive technology to
determine and set the current value of the object, as well as obtain its
minimum and maximum values. Any object that supports a numerical value
should support this interface.
Modifier and Type | Field and Description |
---|---|
public static final String | ACCESSIBLE_ACTION_PROPERTY
Constant used to indicate that the supported set of actions has changed. |
public static final String | ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY
Constant used to determine when the active descendant of a component has changed. |
public static final String | ACCESSIBLE_CARET_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_CHILD_PROPERTY
Constant used to determine when |
public static final String | ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
|
public static final String | ACCESSIBLE_DESCRIPTION_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_HYPERTEXT_OFFSET
Constant used to indicate that a hypertext element has received focus. |
public static final String | ACCESSIBLE_INVALIDATE_CHILDREN
|
public static final String | ACCESSIBLE_NAME_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_SELECTION_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_STATE_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_TABLE_CAPTION_CHANGED
Constant used to indicate that the table caption has changed. |
public static final String | ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED
Constant used to indicate that the column description has changed. |
public static final String | ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED
Constant used to indicate that the column header has changed. |
public static final String | ACCESSIBLE_TABLE_MODEL_CHANGED
Constant used to indicate that table data has changed. |
public static final String | ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED
Constant used to indicate that the row description has changed. |
public static final String | ACCESSIBLE_TABLE_ROW_HEADER_CHANGED
Constant used to indicate that the row header has changed. |
public static final String | ACCESSIBLE_TABLE_SUMMARY_CHANGED
Constant used to indicate that the table summary has changed. |
public static final String | ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
|
public static final String | ACCESSIBLE_TEXT_PROPERTY
|
public static final String | ACCESSIBLE_VALUE_PROPERTY
Constant used to determine when the |
public static final String | ACCESSIBLE_VISIBLE_DATA_PROPERTY
Constant used to determine when the visual appearance of the object has changed. |
private PropertyChangeSupport | accessibleChangeSupport
Used to handle the listener list for property change events. |
protected String | accessibleDescription
A localized String containing the description of the object. |
protected String | accessibleName
A localized String containing the name of the object. |
protected Accessible | accessibleParent
The accessible parent of this object. |
private Object | |
private AccessibleRelationSet | relationSet
Used to represent the context's relation set. |
private volatile AppContext | targetAppContext
The |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public void | addPropertyChangeListener(PropertyChangeListener
The PropertyChangeListener to be added listener)Adds a |
public void | firePropertyChange(String
The programmatic name of the property that was
changed propertyName, Object The old value of the property oldValue, Object The new value of the property newValue)Support for reporting bound property changes. |
public AccessibleAction | Returns: AccessibleAction if supported by object; else return
null Gets the |
public abstract Accessible | Returns: theAccessible child of the objectzero-based index of child i)Returns the specified |
public abstract int | Returns: the number of accessible children of the object.Returns the number of accessible children of the object. |
public AccessibleComponent | Returns: AccessibleComponent if supported by object; else return
null Gets the |
public String | Returns: the localized description of the object;null if this
object does not have a descriptionGets the |
public AccessibleEditableText | Returns: AccessibleEditableText if supported by object; else
return null Gets the |
public AccessibleIcon[] | Returns: an array ofAccessibleIcon if supported by object;
otherwise return null Gets the |
public abstract int | Returns: the 0-based index of this object in its parent; -1 if this object does not have an accessible parent.Gets the 0-based index of this object in its accessible parent. |
public String | Returns: the localized name of the object;null if this object
does not have a nameGets the |
public Accessible | Returns: theAccessible parent of this object; null if
this object does not have an Accessible parentGets the |
public AccessibleRelationSet | Returns: anAccessibleRelationSet if supported by object;
otherwise return null Gets the |
public abstract AccessibleRole | Returns: an instance ofAccessibleRole describing the role of the
objectGets the role of this object. |
public AccessibleSelection | Returns: AccessibleSelection if supported by object; else return
null Gets the |
public abstract AccessibleStateSet | Returns: an instance ofAccessibleStateSet containing the current
state set of the objectGets the state set of this object. |
public AccessibleTable | Returns: anAccessibleTable if supported by object; otherwise return
null Gets the |
public AccessibleText | Returns: AccessibleText if supported by object; else return
null Gets the |
public AccessibleValue | Returns: AccessibleValue if supported by object; else return
null Gets the |
public abstract Locale | Returns: this component's locale. If this component does not have a locale, the locale of its parent is returned.Gets the locale of the component. |
public void | removePropertyChangeListener(PropertyChangeListener
The PropertyChangeListener to be removed listener)Removes a |
public void | setAccessibleDescription(String
the new localized description of the object s)Sets the accessible description of this object. |
public void | setAccessibleName(String
the new localized name of the object s)Sets the localized accessible name of this object. |
public void | setAccessibleParent(Accessible
Accessible to be set as the parentSets the |
ACCESSIBLE_ACTION_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_ACTION_PROPERTY Constant used to indicate that the supported set of actions has changed.
The old value in the
|
ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY Constant used to determine when the active descendant of a component has
changed. The active descendant is used for objects such as list, tree,
and table, which may have transient children. When the active descendant
has changed, the old value of the property change event will be the
|
ACCESSIBLE_CARET_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_CARET_PROPERTY Constant used to determine when the
|
ACCESSIBLE_CHILD_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_CHILD_PROPERTY Constant used to determine when
|
ACCESSIBLE_COMPONENT_BOUNDS_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
|
ACCESSIBLE_DESCRIPTION_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_DESCRIPTION_PROPERTY Constant used to determine when the |
ACCESSIBLE_HYPERTEXT_OFFSET | back to summary |
---|---|
public static final String ACCESSIBLE_HYPERTEXT_OFFSET Constant used to indicate that a hypertext element has received focus.
The old value in the
|
ACCESSIBLE_INVALIDATE_CHILDREN | back to summary |
---|---|
public static final String ACCESSIBLE_INVALIDATE_CHILDREN
|
ACCESSIBLE_NAME_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_NAME_PROPERTY Constant used to determine when the
|
ACCESSIBLE_SELECTION_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_SELECTION_PROPERTY Constant used to determine when the |
ACCESSIBLE_STATE_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_STATE_PROPERTY Constant used to determine when the |
ACCESSIBLE_TABLE_CAPTION_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_CAPTION_CHANGED Constant used to indicate that the table caption has changed. The old
value in the
|
ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED Constant used to indicate that the column description has changed. The
old value in the
|
ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED Constant used to indicate that the column header has changed. The old
value in the
|
ACCESSIBLE_TABLE_MODEL_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_MODEL_CHANGED Constant used to indicate that table data has changed. The old value in
the
|
ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED Constant used to indicate that the row description has changed. The old
value in the
|
ACCESSIBLE_TABLE_ROW_HEADER_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_ROW_HEADER_CHANGED Constant used to indicate that the row header has changed. The old value
in the
|
ACCESSIBLE_TABLE_SUMMARY_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TABLE_SUMMARY_CHANGED Constant used to indicate that the table summary has changed. The old
value in the
|
ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED | back to summary |
---|---|
public static final String ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
|
ACCESSIBLE_TEXT_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_TEXT_PROPERTY
|
ACCESSIBLE_VALUE_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_VALUE_PROPERTY Constant used to determine when the
|
ACCESSIBLE_VISIBLE_DATA_PROPERTY | back to summary |
---|---|
public static final String ACCESSIBLE_VISIBLE_DATA_PROPERTY Constant used to determine when the visual appearance of the object has
changed. The old and new values in the
|
accessibleChangeSupport | back to summary |
---|---|
private PropertyChangeSupport accessibleChangeSupport Used to handle the listener list for property change events. |
accessibleDescription | back to summary |
---|---|
protected String accessibleDescription A localized String containing the description of the object. |
accessibleName | back to summary |
---|---|
protected String accessibleName A localized String containing the name of the object.
|
accessibleParent | back to summary |
---|---|
protected Accessible accessibleParent The accessible parent of this object.
|
nativeAXResource | back to summary |
---|---|
private Object nativeAXResource |
relationSet | back to summary |
---|---|
private AccessibleRelationSet relationSet Used to represent the context's relation set.
|
targetAppContext | back to summary |
---|---|
private volatile AppContext targetAppContext The |
AccessibleContext | back to summary |
---|---|
protected AccessibleContext() Constructor for subclasses to call. |
addPropertyChangeListener | back to summary |
---|---|
public void addPropertyChangeListener(PropertyChangeListener listener) Adds a
|
firePropertyChange | back to summary |
---|---|
public void firePropertyChange(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes. If
|
getAccessibleAction | back to summary |
---|---|
public AccessibleAction getAccessibleAction() Gets the
|
getAccessibleChild | back to summary |
---|---|
public abstract Accessible getAccessibleChild(int i) Returns the specified
|
getAccessibleChildrenCount | back to summary |
---|---|
public abstract int getAccessibleChildrenCount() Returns the number of accessible children of the object.
|
getAccessibleComponent | back to summary |
---|---|
public AccessibleComponent getAccessibleComponent() Gets the
|
getAccessibleDescription | back to summary |
---|---|
public String getAccessibleDescription() Gets the
|
getAccessibleEditableText | back to summary |
---|---|
public AccessibleEditableText getAccessibleEditableText() Gets the
|
getAccessibleIcon | back to summary |
---|---|
public AccessibleIcon[] getAccessibleIcon() Gets the
|
getAccessibleIndexInParent | back to summary |
---|---|
public abstract int getAccessibleIndexInParent() Gets the 0-based index of this object in its accessible parent.
|
getAccessibleName | back to summary |
---|---|
public String getAccessibleName() Gets the
|
getAccessibleParent | back to summary |
---|---|
public Accessible getAccessibleParent() Gets the
|
getAccessibleRelationSet | back to summary |
---|---|
public AccessibleRelationSet getAccessibleRelationSet() Gets the
|
getAccessibleRole | back to summary |
---|---|
public abstract AccessibleRole getAccessibleRole() Gets the role of this object. The role of the object is the generic
purpose or use of the class of this object. For example, the role of a
push button is
Note that the
|
getAccessibleSelection | back to summary |
---|---|
public AccessibleSelection getAccessibleSelection() Gets the
|
getAccessibleStateSet | back to summary |
---|---|
public abstract AccessibleStateSet getAccessibleStateSet() Gets the state set of this object. The
|
getAccessibleTable | back to summary |
---|---|
public AccessibleTable getAccessibleTable() Gets the
|
getAccessibleText | back to summary |
---|---|
public AccessibleText getAccessibleText() Gets the
|
getAccessibleValue | back to summary |
---|---|
public AccessibleValue getAccessibleValue() Gets the
|
getLocale | back to summary |
---|---|
public abstract Locale getLocale() throws IllegalComponentStateException Gets the locale of the component. If the component does not have a locale, then the locale of its parent is returned.
|
removePropertyChangeListener | back to summary |
---|---|
public void removePropertyChangeListener(PropertyChangeListener listener) Removes a
|
setAccessibleDescription | back to summary |
---|---|
public void setAccessibleDescription(String s) Sets the accessible description of this object. Changing the name will
cause a
|
setAccessibleName | back to summary |
---|---|
public void setAccessibleName(String s) Sets the localized accessible name of this object. Changing the name will
cause a
|
setAccessibleParent | back to summary |
---|---|
public void setAccessibleParent(Accessible a) Sets the
|