|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.accessibility.AccessibleContext java.awt.Component.AccessibleAWTComponent java.awt.Container.AccessibleAWTContainer javax.swing.JComponent.AccessibleJComponent
Inner class of JComponent used to provide default support for accessibility. This class is not meant to be used directly by application developers, but is instead meant only to be subclassed by component developers.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Class Summary | |
protected class |
JComponent.AccessibleJComponent.AccessibleContainerHandler
Fire PropertyChange listener, if one is registered, when children added/removed. |
protected class |
JComponent.AccessibleJComponent.AccessibleFocusHandler
Fire PropertyChange listener, if one is registered, when focus events happen |
Nested classes inherited from class java.awt.Component.AccessibleAWTComponent |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary | |
protected ContainerListener |
accessibleContainerHandler
|
protected FocusListener |
accessibleFocusHandler
|
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Fields inherited from class javax.accessibility.AccessibleContext |
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent |
Constructor Summary | |
protected |
JComponent.AccessibleJComponent()
Though the class is abstract, this should be called by all sub-classes. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the nth Accessible child of the object. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children in the object. |
String |
getAccessibleDescription()
Gets the accessible description of this object. |
(package private) javax.accessibility.AccessibleExtendedComponent |
getAccessibleExtendedComponent()
Returns the AccessibleExtendedComponent |
javax.accessibility.AccessibleKeyBinding |
getAccessibleKeyBinding()
Returns key bindings associated with this object |
String |
getAccessibleName()
Gets the accessible name of this object. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Gets the role of this object. |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Gets the state of this object. |
protected String |
getBorderTitle(Border b)
Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title. |
String |
getTitledBorderText()
Returns the titled border text |
String |
getToolTipText()
Returns the tool tip text |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
getAccessibleAt |
Methods inherited from class javax.accessibility.AccessibleContext |
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.accessibility.AccessibleComponent |
addFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
Field Detail |
protected ContainerListener accessibleContainerHandler
protected FocusListener accessibleFocusHandler
Constructor Detail |
protected JComponent.AccessibleJComponent()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in class Component.AccessibleAWTComponent
listener
- the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in class Component.AccessibleAWTComponent
listener
- the PropertyChangeListener to be removedprotected String getBorderTitle(Border b)
public String getAccessibleName()
getAccessibleName
in class Component.AccessibleAWTComponent
AccessibleContext.setAccessibleName(java.lang.String)
public String getAccessibleDescription()
getAccessibleDescription
in class Component.AccessibleAWTComponent
AccessibleContext.setAccessibleDescription(java.lang.String)
public javax.accessibility.AccessibleRole getAccessibleRole()
getAccessibleRole
in class Component.AccessibleAWTComponent
AccessibleRole
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class Component.AccessibleAWTComponent
AccessibleState
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class Container.AccessibleAWTContainer
public javax.accessibility.Accessible getAccessibleChild(int i)
getAccessibleChild
in class Container.AccessibleAWTContainer
i
- zero-based index of child
javax.accessibility.AccessibleExtendedComponent getAccessibleExtendedComponent()
public String getToolTipText()
getToolTipText
in interface javax.accessibility.AccessibleExtendedComponent
public String getTitledBorderText()
getTitledBorderText
in interface javax.accessibility.AccessibleExtendedComponent
public javax.accessibility.AccessibleKeyBinding getAccessibleKeyBinding()
getAccessibleKeyBinding
in interface javax.accessibility.AccessibleExtendedComponent
AccessibleKeyBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |