public abstract class AccessibleContext extends Object
AccessibleAction
- the object can perform actionsAccessibleComponent
- the object has a graphical
representationAccessibleSelection
- the object allows its children to be
selectedAccessibleText
- the object represents editable textAccessibleValue
- the object represents a numerical valueModifier and Type | Field and Description |
---|---|
static String |
ACCESSIBLE_ACTION_PROPERTY
Constant used when supported set of actions has changed.
|
static String |
ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY
Constant used when active descendent of a component has changed.
|
static String |
ACCESSIBLE_CARET_PROPERTY
Constant used when the accessibleText caret has changed.
|
static String |
ACCESSIBLE_CHILD_PROPERTY
Constant used when children are added or removed.
|
static String |
ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
Constant used when a component's bounds have changed.
|
static String |
ACCESSIBLE_DESCRIPTION_PROPERTY
Constant used when the accessible description has changed.
|
static String |
ACCESSIBLE_HYPERTEXT_OFFSET
Constant used when a hypertext element received focus.
|
static String |
ACCESSIBLE_INVALIDATE_CHILDREN
Constant used when the state of child objects changes.
|
static String |
ACCESSIBLE_NAME_PROPERTY
Constant used when the accessible name has changed.
|
static String |
ACCESSIBLE_SELECTION_PROPERTY
Constant used when the accessibleSelection has changed.
|
static String |
ACCESSIBLE_STATE_PROPERTY
Constant used when the accessibleStateSet has changed.
|
static String |
ACCESSIBLE_TABLE_CAPTION_CHANGED
Constant used when the accessible table caption has changed.
|
static String |
ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED
Constant used when the accessible table column description has changed.
|
static String |
ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED
Constant used when the accessible table column header has changed.
|
static String |
ACCESSIBLE_TABLE_MODEL_CHANGED
Constant used when the accessible table model has changed.
|
static String |
ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED
Constant used when the accessible table row description has changed.
|
static String |
ACCESSIBLE_TABLE_ROW_HEADER_CHANGED
Constant used when the accessible table row header has changed.
|
static String |
ACCESSIBLE_TABLE_SUMMARY_CHANGED
Constant used when the accessible table summary has changed.
|
static String |
ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
Constant used when the attributes of some text have changed.
|
static String |
ACCESSIBLE_TEXT_PROPERTY
Constant used when the accessibleText has changed.
|
static String |
ACCESSIBLE_VALUE_PROPERTY
Constant used when the accessibleValue has changed.
|
static String |
ACCESSIBLE_VISIBLE_DATA_PROPERTY
Constant used when the visible data has changed.
|
protected String |
accessibleDescription
A localized string describing this object.
|
protected String |
accessibleName
A localized string naming this object.
|
protected Accessible |
accessibleParent
The accessible parent of this object.
|
Constructor and Description |
---|
AccessibleContext()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to the listener list.
|
void |
firePropertyChange(String name,
Object oldValue,
Object newValue)
Fire an event to report property changes.
|
AccessibleAction |
getAccessibleAction()
Get any supported accessible actions.
|
abstract Accessible |
getAccessibleChild(int i)
Returns the specified accessible chile.
|
abstract int |
getAccessibleChildrenCount()
Returns the number of accessible children of this object.
|
AccessibleComponent |
getAccessibleComponent()
Get any supported accessible component.
|
String |
getAccessibleDescription()
Get the localized description of the object.
|
AccessibleEditableText |
getAccessibleEditableText()
Get any supported accessible editable text.
|
AccessibleIcon[] |
getAccessibleIcon()
Get all supported accessible icons.
|
abstract int |
getAccessibleIndexInParent()
Gets the index of this object within its accessible parent.
|
String |
getAccessibleName()
Get the localized name of the object.
|
Accessible |
getAccessibleParent()
Return the accessible parent of this object.
|
AccessibleRelationSet |
getAccessibleRelationSet()
Get any supported accessible relation set.
|
abstract AccessibleRole |
getAccessibleRole()
Gets the role of this object.
|
AccessibleSelection |
getAccessibleSelection()
Get any supported accessible selection.
|
abstract AccessibleStateSet |
getAccessibleStateSet()
Gets the state set of this object.
|
AccessibleTable |
getAccessibleTable()
Get any supported accessible table.
|
AccessibleText |
getAccessibleText()
Get any supported accessible text.
|
AccessibleValue |
getAccessibleValue()
Get any supported accessible value.
|
abstract Locale |
getLocale()
Gets the component locale, deferring to the parent if one is not declared.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list.
|
void |
setAccessibleDescription(String s)
Set the localized name of the object.
|
void |
setAccessibleName(String s)
Set the localized name of the object.
|
void |
setAccessibleParent(Accessible a)
Sets the accessible parent of this object.
|
public static final String ACCESSIBLE_NAME_PROPERTY
public static final String ACCESSIBLE_DESCRIPTION_PROPERTY
public static final String ACCESSIBLE_STATE_PROPERTY
public static final String ACCESSIBLE_VALUE_PROPERTY
public static final String ACCESSIBLE_SELECTION_PROPERTY
public static final String ACCESSIBLE_TEXT_PROPERTY
public static final String ACCESSIBLE_CARET_PROPERTY
public static final String ACCESSIBLE_VISIBLE_DATA_PROPERTY
public static final String ACCESSIBLE_CHILD_PROPERTY
public static final String ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY
public static final String ACCESSIBLE_TABLE_CAPTION_CHANGED
Accessible
,
AccessibleTable
,
Constant Field Valuespublic static final String ACCESSIBLE_TABLE_SUMMARY_CHANGED
Accessible
,
AccessibleTable
,
Constant Field Valuespublic static final String ACCESSIBLE_TABLE_MODEL_CHANGED
public static final String ACCESSIBLE_TABLE_ROW_HEADER_CHANGED
public static final String ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED
AccessibleTable
,
Constant Field Valuespublic static final String ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED
public static final String ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED
AccessibleTable
,
Constant Field Valuespublic static final String ACCESSIBLE_ACTION_PROPERTY
AccessibleAction
,
Constant Field Valuespublic static final String ACCESSIBLE_HYPERTEXT_OFFSET
AccessibleHyperlink
,
Constant Field Valuespublic static final String ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
public static final String ACCESSIBLE_INVALIDATE_CHILDREN
public static final String ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
AccessibleAttributeSequence
describing the insertion.
On deletion, the old value is an AccessibleAttributeSequence
and the new value is null. For replacement, both the old
and new values are AccessibleAttributeSequence
objects.protected Accessible accessibleParent
protected String accessibleName
getAccessibleName()
,
setAccessibleName(String)
protected String accessibleDescription
public AccessibleContext()
public String getAccessibleName()
setAccessibleName(String)
public void setAccessibleName(String s)
s
- the new namegetAccessibleName()
,
addPropertyChangeListener(PropertyChangeListener)
public String getAccessibleDescription()
setAccessibleDescription(String)
public void setAccessibleDescription(String s)
s
- the new descriptiongetAccessibleDescription()
,
addPropertyChangeListener(PropertyChangeListener)
public abstract AccessibleRole getAccessibleRole()
AccessibleRole
public abstract AccessibleStateSet getAccessibleStateSet()
AccessibleState
,
AccessibleStateSet
,
addPropertyChangeListener(PropertyChangeListener)
public Accessible getAccessibleParent()
public void setAccessibleParent(Accessible a)
a
- the new parentpublic abstract int getAccessibleIndexInParent()
getAccessibleParent()
,
getAccessibleChildrenCount()
,
getAccessibleChild(int)
public abstract int getAccessibleChildrenCount()
getAccessibleChild(int)
public abstract Accessible getAccessibleChild(int i)
i
- the 0-based index to getgetAccessibleChildrenCount()
public abstract Locale getLocale()
IllegalComponentStateException
- if there is no locale
or parentpublic void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to removeaddPropertyChangeListener(PropertyChangeListener)
public AccessibleAction getAccessibleAction()
AccessibleAction
public AccessibleComponent getAccessibleComponent()
AccessibleComponent
public AccessibleSelection getAccessibleSelection()
AccessibleSelection
public AccessibleText getAccessibleText()
AccessibleText
public AccessibleEditableText getAccessibleEditableText()
AccessibleEditableText
public AccessibleValue getAccessibleValue()
AccessibleValue
public AccessibleIcon[] getAccessibleIcon()
AccessibleIcon
public AccessibleRelationSet getAccessibleRelationSet()
null
AccessibleRelationSet
public AccessibleTable getAccessibleTable()
AccessibleTable
public void firePropertyChange(String name, Object oldValue, Object newValue)
name
- the property nameoldValue
- the prior valuenewValue
- the updated valuePropertyChangeSupport
,
addPropertyChangeListener(PropertyChangeListener)
,
removePropertyChangeListener(PropertyChangeListener)
,
ACCESSIBLE_NAME_PROPERTY
,
ACCESSIBLE_DESCRIPTION_PROPERTY
,
ACCESSIBLE_STATE_PROPERTY
,
ACCESSIBLE_VALUE_PROPERTY
,
ACCESSIBLE_SELECTION_PROPERTY
,
ACCESSIBLE_TEXT_PROPERTY
,
ACCESSIBLE_VISIBLE_DATA_PROPERTY