javax.swing
public abstract class JComponent.AccessibleJComponent extends AccessibleAWTContainer implements AccessibleExtendedComponent
JComponent
derived
widgets.
Nested Class Summary | |
---|---|
protected class | JComponent.AccessibleJComponent.AccessibleContainerHandler
Receives notification if there are child components are added or removed
from the JComponent and fires appropriate PropertyChangeEvents to
interested listeners on the AccessibleJComponent. |
protected class | JComponent.AccessibleJComponent.AccessibleFocusHandler
Receives notification if the focus on the JComponent changes and
fires appropriate PropertyChangeEvents to listeners registered with
the AccessibleJComponent. |
Field Summary | |
---|---|
protected ContainerListener | accessibleContainerHandler
Receives notification when a child component is added to the
JComponent and fires a PropertyChangeEvent on listeners registered
with the AccessibleJComponent.
|
protected FocusListener | accessibleFocusHandler
Receives notification if the focus on the JComponent changes and
fires appropriate PropertyChangeEvents to listeners registered with
the AccessibleJComponent.
|
Constructor Summary | |
---|---|
protected | AccessibleJComponent()
Creates a new AccessibleJComponent. |
Method Summary | |
---|---|
void | addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to the list of registered listeners.
|
Accessible | getAccessibleChild(int i)
Returns the accessible child component at index i .
|
int | getAccessibleChildrenCount()
Returns the number of accessible children of this object.
|
String | getAccessibleDescription()
Returns the localized description of this object.
|
AccessibleKeyBinding | getAccessibleKeyBinding()
Returns the keybindings associated with this accessible component or
null if the component does not support key bindings.
|
String | getAccessibleName()
Returns the localized name for this object. |
AccessibleRole | getAccessibleRole()
Returns the accessible role of this component.
|
AccessibleStateSet | getAccessibleStateSet()
Returns the accessible state set of this component.
|
protected String | getBorderTitle(Border border)
Recursivly searches a border hierarchy (starting at border) for
a titled border and returns the title if one is found, |
String | getTitledBorderText()
Returns the title of the border of this accessible component if
this component has a titled border, otherwise returns null .
|
String | getToolTipText()
Returns the tooltip text for this accessible component.
|
void | removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener from the list of registered listeners.
|
UNKNOWN: AccessibleAWTContainer has a protected field with the same name. Looks like a bug or nasty misdesign to me.
UNKNOWN: AccessibleAWTComponent has a protected field accessibleAWTFocusHandler. Looks like a bug or nasty misdesign to me.
super.addPropertyChangeListener(listener)
.
Parameters: listener the listener to add
i
.
Parameters: i the index of the accessible child to return
Returns: the accessible child component at index i
Returns: the number of accessible children of this object
Returns: the localized description of this object or null
if this object has no description
null
if the component does not support key bindings.
Returns: the keybindings associated with this accessible component
Returns: the localized name for this object or null
if this
object has no name
Returns: the accessible role of this component
See Also: AccessibleRole
Returns: the accessible state set of this component
border) for
a titled border and returns the title if one is found, null
otherwise.
Parameters: border the border to start search from
Returns: the border title of a possibly found titled border
null
.
Returns: the title of the border of this accessible component if
this component has a titled border, otherwise returns
null
Returns: the tooltip text for this accessible component
super.removePropertyChangeListener(listener)
.
Parameters: listener the listener to remove