java.lang.Object
javax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.AbstractButton.AccessibleAbstractButton
- All Implemented Interfaces:
Serializable
,AccessibleAction
,AccessibleComponent
,AccessibleExtendedComponent
,AccessibleText
,AccessibleValue
- Direct Known Subclasses:
JButton.AccessibleJButton
,JMenuItem.AccessibleJMenuItem
,JToggleButton.AccessibleJToggleButton
- Enclosing class:
AbstractButton
protected abstract class AbstractButton.AccessibleAbstractButton
extends JComponent.AccessibleJComponent
implements AccessibleAction, AccessibleValue, AccessibleText, AccessibleExtendedComponent
This class implements accessibility support for the
AbstractButton
class. It provides an implementation of the
Java Accessibility API appropriate to button and menu item
user-interface elements.
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 JavaBeans
has been added to the java.beans
package.
Please see XMLEncoder
.
- Since:
- 1.4
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.JComponent.AccessibleJComponent
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler
Nested classes/interfaces declared in class java.awt.Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
-
Field Summary
Fields declared in class javax.swing.JComponent.AccessibleJComponent
accessibleFocusHandler
Fields declared in class java.awt.Container.AccessibleAWTContainer
accessibleContainerHandler
Fields declared in class java.awt.Component.AccessibleAWTComponent
accessibleAWTComponentHandler, accessibleAWTFocusHandler
Fields declared in class javax.accessibility.AccessibleContext
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
Fields declared in interface javax.accessibility.AccessibleAction
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP
Fields declared in interface javax.accessibility.AccessibleText
CHARACTER, SENTENCE, WORD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor for subclasses to call. -
Method Summary
Modifier and TypeMethodDescriptionboolean
doAccessibleAction
(int i) Perform the specified Action on the objectGet the AccessibleAction associated with this object.int
Returns the number of Actions available in this object.Return a description of the specified action of the object.Get the AccessibleIcons associated with this object if one or more exist.Returns key bindings associated with this objectReturns the accessible name of this object.Get the AccessibleRelationSet associated with this object if one exists.Get the state set of this object.Get the AccessibleValue associated with this object.getAfterIndex
(int part, int index) Returns the String after a given index.getAtIndex
(int part, int index) Returns the String at a given index.getBeforeIndex
(int part, int index) Returns the String before a given index.int
Return the zero-based offset of the caret.getCharacterAttribute
(int i) Return the AttributeSet for a given character at a given indexgetCharacterBounds
(int i) Determine the bounding box of the character at the given index into the string.int
Return the number of characters (valid indicies)Get the value of this object as a Number.int
Given a point in local coordinates, return the zero-based index of the character under that Point.Get the maximum value of this object as a Number.Get the minimum value of this object as a Number.Returns the portion of the text that is selected.int
Returns the end offset within the selected text.int
Returns the start offset within the selected text.Returns the titled border textReturns the tool tip textboolean
Set the value of this object as a Number.Methods declared in class javax.swing.JComponent.AccessibleJComponent
addPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleDescription, getAccessibleRole, getBorderTitle, removePropertyChangeListener
Methods declared in class java.awt.Container.AccessibleAWTContainer
getAccessibleAt
Methods declared in 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 declared in class javax.accessibility.AccessibleContext
firePropertyChange, getAccessibleEditableText, getAccessibleSelection, getAccessibleTable, getAccessibleText, setAccessibleDescription, setAccessibleName, setAccessibleParent
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in 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
-
Constructor Details
-
AccessibleAbstractButton
protected AccessibleAbstractButton()Constructor for subclasses to call.
-
-
Method Details
-
getAccessibleName
Returns the accessible name of this object.- Overrides:
getAccessibleName
in classJComponent.AccessibleJComponent
- Returns:
- the localized name of the object -- can be
null
if this object does not have a name - See Also:
-
getAccessibleIcon
Get the AccessibleIcons associated with this object if one or more exist. Otherwise return null.- Overrides:
getAccessibleIcon
in classAccessibleContext
- Returns:
- an array of
AccessibleIcon
if supported by object; otherwise returnnull
- Since:
- 1.3
- See Also:
-
getAccessibleStateSet
Get the state set of this object.- Overrides:
getAccessibleStateSet
in classJComponent.AccessibleJComponent
- Returns:
- an instance of AccessibleState containing the current state of the object
- See Also:
-
getAccessibleRelationSet
Get the AccessibleRelationSet associated with this object if one exists. Otherwise return null.- Overrides:
getAccessibleRelationSet
in classAccessibleContext
- Returns:
- an
AccessibleRelationSet
if supported by object; otherwise returnnull
- Since:
- 1.3
- See Also:
-
getAccessibleAction
Get the AccessibleAction associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleAction interface on behalf of itself.- Overrides:
getAccessibleAction
in classAccessibleContext
- Returns:
- this object
- See Also:
-
getAccessibleValue
Get the AccessibleValue associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleValue interface on behalf of itself.- Overrides:
getAccessibleValue
in classAccessibleContext
- Returns:
- this object
- See Also:
-
-