|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing
Class JComponent.AccessibleJComponent

java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
- All Implemented Interfaces:
- javax.accessibility.AccessibleComponent, javax.accessibility.AccessibleExtendedComponent, java.io.Serializable
- Direct Known Subclasses:
- AbstractButton.AccessibleAbstractButton, JColorChooser.AccessibleJColorChooser, JComboBox.AccessibleJComboBox, JDesktopPane.AccessibleJDesktopPane, JFileChooser.AccessibleJFileChooser, JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon, JLabel.AccessibleJLabel, JLayeredPane.AccessibleJLayeredPane, JList.AccessibleJList, JMenuBar.AccessibleJMenuBar, JOptionPane.AccessibleJOptionPane, JPanel.AccessibleJPanel, JPopupMenu.AccessibleJPopupMenu, JProgressBar.AccessibleJProgressBar, JRootPane.AccessibleJRootPane, JScrollBar.AccessibleJScrollBar, JScrollPane.AccessibleJScrollPane, JSeparator.AccessibleJSeparator, JSlider.AccessibleJSlider, JSplitPane.AccessibleJSplitPane, JTabbedPane.AccessibleJTabbedPane, JTable.AccessibleJTable, javax.swing.text.JTextComponent.AccessibleJTextComponent, JToolBar.AccessibleJToolBar, JToolTip.AccessibleJToolTip, JTree.AccessibleJTree, JViewport.AccessibleJViewport
- Enclosing class:
- JComponent
- public abstract class JComponent.AccessibleJComponent
- extends java.awt.Container.AccessibleAWTContainer
- implements javax.accessibility.AccessibleExtendedComponent
- extends java.awt.Container.AccessibleAWTContainer
Basic accessibility support for 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. |
| Nested classes inherited from class java.awt.Component.AccessibleAWTComponent |
java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
| Field Summary | |
protected java.awt.event.ContainerListener |
accessibleContainerHandler
Receives notification when a child component is added to the JComponent and fires a PropertyChangeEvent on listeners registered with the AccessibleJComponent. |
protected java.awt.event.FocusListener |
accessibleFocusHandler
Receives notification if the focus on the JComponent changes and fires appropriate PropertyChangeEvents to listeners registered with the AccessibleJComponent. |
private static long |
serialVersionUID
|
| Fields inherited from class java.awt.Component.AccessibleAWTComponent |
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
| Constructor Summary | |
protected |
JComponent.AccessibleJComponent()
Creates a new AccessibleJComponent. |
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to the list of registered listeners. |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the accessible child component at index i. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children of this object. |
java.lang.String |
getAccessibleDescription()
Returns the localized description of this object. |
javax.accessibility.AccessibleKeyBinding |
getAccessibleKeyBinding()
Returns the keybindings associated with this accessible component or null if the component does not support key bindings. |
java.lang.String |
getAccessibleName()
Returns the localized name for this object. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the accessible role of this component. |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Returns the accessible state set of this component. |
protected java.lang.String |
getBorderTitle(javax.swing.border.Border border)
Recursivly searches a border hierarchy (starting at border) for
a titled border and returns the title if one is found, |
java.lang.String |
getTitledBorderText()
Returns the title of the border of this accessible component if this component has a titled border, otherwise returns null. |
java.lang.String |
getToolTipText()
Returns the tooltip text for this accessible component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from the list of registered listeners. |
| Methods inherited from class java.awt.Container.AccessibleAWTContainer |
getAccessibleAt |
| Methods inherited from class java.awt.Component.AccessibleAWTComponent |
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 |
| 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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
accessibleContainerHandler
protected java.awt.event.ContainerListener accessibleContainerHandler
- Receives notification when a child component is added to the
JComponent and fires a PropertyChangeEvent on listeners registered
with the AccessibleJComponent.
accessibleFocusHandler
protected java.awt.event.FocusListener accessibleFocusHandler
- Receives notification if the focus on the JComponent changes and
fires appropriate PropertyChangeEvents to listeners registered with
the AccessibleJComponent.
| Constructor Detail |
JComponent.AccessibleJComponent
protected JComponent.AccessibleJComponent()
- Creates a new AccessibleJComponent.
| Method Detail |
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Adds a property change listener to the list of registered listeners.
This sets up the
accessibleContainerHandler55 andaccessibleFocusHandler55 fields and callssuper.addPropertyChangeListener(listener).
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Removes a property change listener from the list of registered listeners.
This uninstalls the
accessibleContainerHandler55 andaccessibleFocusHandler55 fields and callssuper.removePropertyChangeListener(listener).
getAccessibleChildrenCount
public int getAccessibleChildrenCount()
- Returns the number of accessible children of this object.
getAccessibleChild
public javax.accessibility.Accessible getAccessibleChild(int i)
- Returns the accessible child component at index
i.
getAccessibleStateSet
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
- Returns the accessible state set of this component.
getAccessibleName
public java.lang.String getAccessibleName()
- Returns the localized name for this object. Generally this should
almost never return Component.getName()>
Component.getName()55 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.
getAccessibleDescription
public java.lang.String getAccessibleDescription()
- Returns the localized description of this object.
getAccessibleRole
public javax.accessibility.AccessibleRole getAccessibleRole()
- Returns the accessible role of this component.
getBorderTitle
protected java.lang.String getBorderTitle(javax.swing.border.Border border)
- Recursivly searches a border hierarchy (starting at
border) for a titled border and returns the title if one is found,nullotherwise.
getToolTipText
public java.lang.String getToolTipText()
- Returns the tooltip text for this accessible component.
- Specified by:
getToolTipTextin interfacejavax.accessibility.AccessibleExtendedComponent
getTitledBorderText
public java.lang.String getTitledBorderText()
- Returns the title of the border of this accessible component if
this component has a titled border, otherwise returns
null.- Specified by:
getTitledBorderTextin interfacejavax.accessibility.AccessibleExtendedComponent
getAccessibleKeyBinding
public javax.accessibility.AccessibleKeyBinding getAccessibleKeyBinding()
- Returns the keybindings associated with this accessible component or
nullif the component does not support key bindings.- Specified by:
getAccessibleKeyBindingin interfacejavax.accessibility.AccessibleExtendedComponent
|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC