java.lang.Object | |||||
↳ | javax.accessibility.AccessibleContext | ||||
↳ | java.awt.Component.AccessibleAWTComponent | ||||
↳ | java.awt.Container.AccessibleAWTContainer | ||||
↳ | javax.swing.JComponent.AccessibleJComponent | ||||
↳ | javax.swing.AbstractButton.AccessibleAbstractButton |
![]() |
![]() |
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 JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform the specified Action on the object
| |||||||||||
Get the AccessibleAction associated with this object.
| |||||||||||
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 object
| |||||||||||
Returns the accessible name of this object.
| |||||||||||
Get the AccessibleRelationSet associated with this object if one
exists.
| |||||||||||
Get the state set of this object.
| |||||||||||
Gets the AccessibleText associated with this object presenting
text on the display.
| |||||||||||
Get the AccessibleValue associated with this object.
| |||||||||||
Returns the String after a given index.
| |||||||||||
Returns the String at a given index.
| |||||||||||
Returns the String before a given index.
| |||||||||||
Return the zero-based offset of the caret.
| |||||||||||
Return the number of characters (valid indicies)
| |||||||||||
Return the AttributeSet for a given character at a given index
| |||||||||||
Determine the bounding box of the character at the given
index into the string.
| |||||||||||
Get the value of this object as a Number.
| |||||||||||
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.
| |||||||||||
Returns the end offset within the selected text.
| |||||||||||
Returns the start offset within the selected text.
| |||||||||||
Returns the titled border text
| |||||||||||
Returns the tool tip text
| |||||||||||
Set the value of this object as a Number.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Perform the specified Action on the object
i | zero-based index of actions |
---|
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.
Returns the number of Actions available in this object. The default behavior of a button is to have one action - toggle the button.
Return a description of the specified action of the object.
i | zero-based index of the actions |
---|
Get the AccessibleIcons associated with this object if one or more exist. Otherwise return null.
Returns key bindings associated with this object
Returns the accessible name of this object.
null
if this
object does not have a name
Get the AccessibleRelationSet associated with this object if one exists. Otherwise return null.
Get the state set of this object.
Gets the AccessibleText associated with this object presenting text on the display.
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.
Returns the String after a given index.
part | the AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCE to retrieve |
---|---|
index | an index within the text >= 0 |
Returns the String at a given index.
part | the AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCE to retrieve |
---|---|
index | an index within the text >= 0 |
Returns the String before a given index.
part | the AccessibleText.CHARACTER, AccessibleText.WORD, or AccessibleText.SENTENCE to retrieve |
---|---|
index | an index within the text >= 0 |
Return the zero-based offset of the caret. Note: That to the right of the caret will have the same index value as the offset (the caret is between two characters).
Return the number of characters (valid indicies)
Return the AttributeSet for a given character at a given index
i | the zero-based index into the text |
---|
Determine the bounding box of the character at the given index into the string. The bounds are returned in local coordinates. If the index is invalid an empty rectangle is returned. Note: the AbstractButton must have a valid size (e.g. have been added to a parent container whose ancestor container is a valid top-level window) for this method to be able to return a meaningful value.
i | the index into the String |
---|
Get the value of this object as a Number.
Given a point in local coordinates, return the zero-based index of the character under that Point. If the point is invalid, this method returns -1. Note: the AbstractButton must have a valid size (e.g. have been added to a parent container whose ancestor container is a valid top-level window) for this method to be able to return a meaningful value.
p | the Point in local coordinates |
---|
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.
Returns the end offset within the selected text. If there is no selection, but there is a caret, the start and end offsets will be the same.
Returns the start offset within the selected text. If there is no selection, but there is a caret, the start and end offsets will be the same.
Returns the titled border text
Returns the tool tip text
Set the value of this object as a Number.