Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
public abstract class JComponent.AccessibleJComponent
extends Container.AccessibleAWTContainer
implements AccessibleExtendedComponent
JComponent
derived
widgets.
Nested Class Summary | |
protected class |
|
protected class |
|
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer | |
Container.AccessibleAWTContainer.AccessibleContainerHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent | |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary | |
protected ContainerListener |
|
protected FocusListener |
|
Fields inherited from class java.awt.Container.AccessibleAWTContainer | |
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Constructor Summary | |
|
Method Summary | |
void |
|
Accessible |
|
int |
|
String |
|
AccessibleKeyBinding |
|
String |
|
AccessibleRole |
|
AccessibleStateSet |
|
protected String |
|
String |
|
String |
|
void |
|
Methods inherited from class java.awt.Container.AccessibleAWTContainer | |
getAccessibleAt , getAccessibleChild , getAccessibleChildrenCount |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
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.
public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to the list of registered listeners. This sets up theaccessibleContainerHandler
andaccessibleFocusHandler
fields and callssuper.addPropertyChangeListener(listener)
.
- Overrides:
- addPropertyChangeListener in interface Component.AccessibleAWTComponent
- Parameters:
listener
- the listener to add
public Accessible getAccessibleChild(int i)
Returns the accessible child component at indexi
.
- Overrides:
- getAccessibleChild in interface Container.AccessibleAWTContainer
- Parameters:
i
- the index of the accessible child to return
- Returns:
- the accessible child component at index
i
public int getAccessibleChildrenCount()
Returns the number of accessible children of this object.
- Overrides:
- getAccessibleChildrenCount in interface Container.AccessibleAWTContainer
- Returns:
- the number of accessible children of this object
public String getAccessibleDescription()
Returns the localized description of this object.
- Overrides:
- getAccessibleDescription in interface Component.AccessibleAWTComponent
- Returns:
- the localized description of this object or
null
if this object has no description
public AccessibleKeyBinding getAccessibleKeyBinding()
Returns the keybindings associated with this accessible component ornull
if the component does not support key bindings.
- Specified by:
- getAccessibleKeyBinding in interface AccessibleExtendedComponent
- Returns:
- the keybindings associated with this accessible component
public String getAccessibleName()
Returns the localized name for this object. Generally this should almost never returnComponent.getName()
since that is not a localized name. If the object is some kind of text component (like a menu item), then the value of the object may be returned. Also, if the object has a tooltip, the value of the tooltip may also be appropriate.
- Overrides:
- getAccessibleName in interface Component.AccessibleAWTComponent
- Returns:
- the localized name for this object or
null
if this object has no name
public AccessibleRole getAccessibleRole()
Returns the accessible role of this component.
- Overrides:
- getAccessibleRole in interface Component.AccessibleAWTComponent
- Returns:
- the accessible role of this component
- See Also:
AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
Returns the accessible state set of this component.
- Overrides:
- getAccessibleStateSet in interface Component.AccessibleAWTComponent
- Returns:
- the accessible state set of this component
protected String getBorderTitle(Border border)
Recursivly searches a border hierarchy (starting atborder) 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
public String getTitledBorderText()
Returns the title of the border of this accessible component if this component has a titled border, otherwise returnsnull
.
- Specified by:
- getTitledBorderText in interface AccessibleExtendedComponent
- Returns:
- the title of the border of this accessible component if this component has a titled border, otherwise returns
null
public String getToolTipText()
Returns the tooltip text for this accessible component.
- Specified by:
- getToolTipText in interface AccessibleExtendedComponent
- Returns:
- the tooltip text for this accessible component
public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener from the list of registered listeners. This uninstalls theaccessibleContainerHandler
andaccessibleFocusHandler
fields and callssuper.removePropertyChangeListener(listener)
.
- Overrides:
- removePropertyChangeListener in interface Component.AccessibleAWTComponent
- Parameters:
listener
- the listener to remove