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 Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JComponent.AccessibleJComponent.AccessibleContainerHandler | Fire PropertyChange listener, if one is registered, when children added/removed. | ||||||||||
JComponent.AccessibleJComponent.AccessibleFocusHandler | Fire PropertyChange listener, if one is registered, when focus events happen |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
accessibleContainerHandler | |||||||||||
accessibleFocusHandler |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Though the class is abstract, this should be called by
all sub-classes.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a PropertyChangeListener to the listener list.
| |||||||||||
Returns the nth Accessible child of the object.
| |||||||||||
Returns the number of accessible children in the object.
| |||||||||||
Gets the accessible description of this object.
| |||||||||||
Returns key bindings associated with this object
| |||||||||||
Gets the accessible name of this object.
| |||||||||||
Gets the role of this object.
| |||||||||||
Gets the state of this object.
| |||||||||||
Returns the titled border text
| |||||||||||
Returns the tool tip text
| |||||||||||
Removes a PropertyChangeListener from the listener list.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Recursively search through the border hierarchy (if it exists)
for a TitledBorder with a non-null title.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Though the class is abstract, this should be called by all sub-classes.
Adds a PropertyChangeListener to the listener list.
listener | the PropertyChangeListener to be added |
---|
Returns the nth Accessible child of the object.
i | zero-based index of child |
---|
Returns the number of accessible children in the object. If all of the children of this object implement Accessible, than this method should return the number of children of this object.
Gets the accessible description of this object. This should be a concise, localized description of what this object is - what is its meaning to the user. If the object has a tooltip, the tooltip text may be an appropriate string to return, assuming it contains a concise description of the object (instead of just the name of the object - for example a "Save" icon on a toolbar that had "save" as the tooltip text shouldn't return the tooltip text as the description, but something like "Saves the current text document" instead).
Returns key bindings associated with this object
Gets the accessible name of this object. This should almost never return java.awt.Component.getName(), as that generally isn't a localized name, and doesn't have meaning for the user. If the object is fundamentally a text object (such as a menu item), the accessible name should be the text of the object (for example, "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.
Gets the role of this object.
Gets the state of this object.
Returns the titled border text
Returns the tool tip text
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
listener | the PropertyChangeListener to be removed |
---|
Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title. This does a depth first search on first the inside borders then the outside borders. The assumption is that titles make really pretty inside borders but not very pretty outside borders in compound border situations. It's rather arbitrary, but hopefully decent UI programmers will not create multiple titled borders for the same component.