Class AccessibleContext
java.lang.Object
javax.accessibility.AccessibleContext
- Direct Known Subclasses:
Component.AccessibleAWTComponent
,ImageIcon.AccessibleImageIcon
,JList.AccessibleJList.AccessibleJListChild
,JTable.AccessibleJTable.AccessibleJTableCell
,JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry
,JTree.AccessibleJTree.AccessibleJTreeNode
,MenuComponent.AccessibleAWTMenuComponent
,ProgressMonitor.AccessibleProgressMonitor
,Translator
@JavaBean(description="Minimal information that all accessible objects return")
public abstract class AccessibleContext
extends Object
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant used to indicate that the supported set of actions has changed.static final String
Constant used to determine when the active descendant of a component has changed.static final String
Constant used to determine when theaccessibleText
caret has changed.static final String
Constant used to determine whenAccessible
children are added/removed from the object.static final String
PropertyChangeEvent
which indicates that a change has occurred in a component's bounds.static final String
Constant used to determine when theaccessibleDescription
property has changed.static final String
Constant used to indicate that a hypertext element has received focus.static final String
PropertyChangeEvent
which indicates that a significant change has occurred to the children of a component like a tree or text.static final String
Constant used to determine when theaccessibleName
property has changed.static final String
Constant used to determine when theaccessibleSelection
has changed.static final String
Constant used to determine when theaccessibleStateSet
property has changed.static final String
Constant used to indicate that the table caption has changed.static final String
Constant used to indicate that the column description has changed.static final String
Constant used to indicate that the column header has changed.static final String
Constant used to indicate that table data has changed.static final String
Constant used to indicate that the row description has changed.static final String
Constant used to indicate that the row header has changed.static final String
Constant used to indicate that the table summary has changed.static final String
PropertyChangeEvent
which indicates that text attributes have changed.static final String
PropertyChangeEvent
which indicates that text has changed.static final String
Constant used to determine when theaccessibleValue
property has changed.static final String
Constant used to determine when the visual appearance of the object has changed.protected String
A localized String containing the description of the object.protected String
A localized String containing the name of the object.protected Accessible
The accessible parent of this object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds aPropertyChangeListener
to the listener list.void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes.Gets theAccessibleAction
associated with this object that supports one or more actions.abstract Accessible
getAccessibleChild
(int i) Returns the specifiedAccessible
child of the object.abstract int
Returns the number of accessible children of the object.Gets theAccessibleComponent
associated with this object that has a graphical representation.Gets theaccessibleDescription
property of this object.Gets theAccessibleEditableText
associated with this object presenting editable text on the display.Gets theAccessibleIcons
associated with an object that has one or more associated icons.abstract int
Gets the 0-based index of this object in its accessible parent.Gets theaccessibleName
property of this object.Gets theAccessible
parent of this object.Gets theAccessibleRelationSet
associated with an object.abstract AccessibleRole
Gets the role of this object.Gets theAccessibleSelection
associated with this object which allows itsAccessible
children to be selected.abstract AccessibleStateSet
Gets the state set of this object.Gets theAccessibleTable
associated with an object.Gets theAccessibleText
associated with this object presenting text on the display.Gets theAccessibleValue
associated with this object that supports aNumerical
value.abstract Locale
Gets the locale of the component.void
Removes aPropertyChangeListener
from the listener list.void
Sets the accessible description of this object.void
Sets the localized accessible name of this object.void
Sets theAccessible
parent of this object.Methods declared in class java.lang.Object