public abstract class JComponent.AccessibleJComponent extends Container.AccessibleAWTContainer implements AccessibleExtendedComponent
JComponent
derived
widgets.Modifier and Type | Class and Description |
---|---|
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.
|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
Modifier and Type | Field and Description |
---|---|
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.
|
accessibleAWTComponentHandler, accessibleAWTFocusHandler
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, 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_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
Modifier | Constructor and Description |
---|---|
protected |
JComponent.AccessibleJComponent()
Creates a new AccessibleJComponent.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAccessibleAt
addFocusListener, contains, getAccessibleComponent, getAccessibleIndexInParent, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected ContainerListener accessibleContainerHandler
protected FocusListener accessibleFocusHandler
protected JComponent.AccessibleJComponent()
public void addPropertyChangeListener(PropertyChangeListener listener)
accessibleContainerHandler
and
accessibleFocusHandler
fields and calls
super.addPropertyChangeListener(listener)
.addPropertyChangeListener
in class Component.AccessibleAWTComponent
listener
- the listener to addAccessibleContext.ACCESSIBLE_NAME_PROPERTY
,
AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY
,
AccessibleContext.ACCESSIBLE_STATE_PROPERTY
,
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY
,
AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY
,
AccessibleContext.ACCESSIBLE_TEXT_PROPERTY
,
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
public void removePropertyChangeListener(PropertyChangeListener listener)
accessibleContainerHandler
and
accessibleFocusHandler
fields and calls
super.removePropertyChangeListener(listener)
.removePropertyChangeListener
in class Component.AccessibleAWTComponent
listener
- the listener to removeAccessibleContext.addPropertyChangeListener(PropertyChangeListener)
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class Container.AccessibleAWTContainer
AccessibleContext.getAccessibleChild(int)
public Accessible getAccessibleChild(int i)
i
.getAccessibleChild
in class Container.AccessibleAWTContainer
i
- the index of the accessible child to returni
Component.AccessibleAWTComponent.getAccessibleChildrenCount()
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class Component.AccessibleAWTComponent
AccessibleState
public String getAccessibleName()
Component.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.getAccessibleName
in class Component.AccessibleAWTComponent
null
if this
object has no nameAccessibleContext.setAccessibleName(String)
public String getAccessibleDescription()
getAccessibleDescription
in class Component.AccessibleAWTComponent
null
if this object has no descriptionAccessibleContext.setAccessibleDescription(String)
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class Component.AccessibleAWTComponent
AccessibleRole
protected String getBorderTitle(Border border)
border) for
a titled border and returns the title if one is found, null
otherwise.
border
- the border to start search frompublic String getToolTipText()
getToolTipText
in interface AccessibleExtendedComponent
public String getTitledBorderText()
null
.getTitledBorderText
in interface AccessibleExtendedComponent
null
public AccessibleKeyBinding getAccessibleKeyBinding()
null
if the component does not support key bindings.getAccessibleKeyBinding
in interface AccessibleExtendedComponent