javax.swing
protected abstract class AbstractButton.AccessibleAbstractButton extends AccessibleJComponent implements AccessibleAction, AccessibleValue, AccessibleText
| Constructor Summary | |
|---|---|
| protected | AccessibleAbstractButton() |
| Method Summary | |
|---|---|
| boolean | doAccessibleAction(int actionIndex)
Performs the acccessible action with the specified index on this object.
|
| AccessibleAction | getAccessibleAction()
Returns the accessible action associated with this object. |
| int | getAccessibleActionCount()
Returns the number of accessible actions that are supported by this
object. |
| String | getAccessibleActionDescription(int actionIndex)
Returns a description for the action with the specified index or
null if such action does not exist.
|
| AccessibleIcon[] | getAccessibleIcon()
Returns the accessible icons of this object. |
| String | getAccessibleName()
Returns the accessible name for the button. |
| AccessibleRelationSet | getAccessibleRelationSet()
Returns the accessible relations of this AccessibleAbstractButton.
|
| AccessibleStateSet | getAccessibleStateSet()
Returns the accessible state set of this object. |
| AccessibleText | getAccessibleText()
Returns the accessible text for this AccessibleAbstractButton. |
| AccessibleValue | getAccessibleValue()
Returns the accessible value of this AccessibleAbstractButton, which
is always this.
|
| String | getAfterIndex(int part, int index)
Returns the character, word or sentence after the specified index. |
| String | getAtIndex(int part, int index)
Returns the character, word or sentence at the specified index. |
| String | getBeforeIndex(int part, int index)
Returns the character, word or sentence before the specified index. |
| int | getCaretPosition()
This always returns -1 since there is no caret in a button.
|
| AttributeSet | getCharacterAttribute(int i)
Returns the text attribute for the character at the specified character
index.
|
| Rectangle | getCharacterBounds(int i)
Returns the bounds of the character at the specified index of the
button's label. |
| int | getCharCount()
Returns the number of characters in the button's label.
|
| Number | getCurrentAccessibleValue()
Returns the current value of this object as a number. |
| int | getIndexAtPoint(Point p)
Returns the index of the label's character at the specified point,
relative to the local bounds of the button. |
| Number | getMaximumAccessibleValue()
Returns the maximum accessible value for the AccessibleAbstractButton,
which is 1.
|
| Number | getMinimumAccessibleValue()
Returns the minimum accessible value for the AccessibleAbstractButton,
which is 0.
|
| String | getSelectedText()
Returns the selected text. |
| int | getSelectionEnd()
This always returns -1 since
button labels can't be selected.
|
| int | getSelectionStart()
This always returns -1 since
button labels can't be selected.
|
| boolean | setCurrentAccessibleValue(Number value)
Sets the current accessible value as object. |
0 and nothing otherwise.
Parameters: actionIndex a zero based index into the actions of this button
Returns: true if the specified action has been performed
successfully, false otherwise
this.
Returns: this
1.
Returns: 1, the number of supported accessible actions
null if such action does not exist.
Parameters: actionIndex the zero based index to the actions
Returns: a description for the action with the specified index or
null if such action does not exist
null.
Returns: the accessible icons of this object, or null if
there is no accessible icon
Returns: the accessible relations of this AccessibleAbstractButton
AccessibleAbstractButton
supports the following states: {@link AccessibleState#ARMED},
{@link AccessibleState#FOCUSED}, {@link AccessibleState#PRESSED} and
{@link AccessibleState#CHECKED}.
Returns: the current state of this accessible object
null if the button has a non-HTML label, otherwise
this.
Returns: the accessible text for this AccessibleAbstractButton
this.
Returns: the accessible value of this AccessibleAbstractButton, which
is always this
part parameter determines what is returned, the character,
word or sentence after the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence after index
part parameter determines what is returned, the character,
word or sentence after the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence after index
part parameter determines what is returned, the character,
word or sentence before the index.
Parameters: part one of {@link AccessibleText#CHARACTER}, {@link AccessibleText#WORD} or {@link AccessibleText#SENTENCE}, specifying what is returned index the index
Returns: the character, word or sentence before index
-1 since there is no caret in a button.
Returns: -1 since there is no caret in a button
Parameters: i the character index
Returns: the character attributes for the specified character or
null if the character has no attributes
Parameters: i the index of the character of the label
Returns: the bounds of the character at the specified index of the button's label
Returns: the bounds of the character at the specified index of the button's label
Integer(1) if the button is
selected, Integer(0) if the button is not selected.
Returns: the current value of this object as a number
Parameters: p the point, relative to the buttons local bounds
Returns: the index of the label's character at the specified point
1.
Returns: the maximum accessible value for the AccessibleAbstractButton,
which is 1
0.
Returns: the minimimum accessible value for the AccessibleAbstractButton,
which is 0
null since
button labels can't be selected.
Returns: null, button labels can't be selected
-1 since
button labels can't be selected.
Returns: -1, button labels can't be selected
-1 since
button labels can't be selected.
Returns: -1, button labels can't be selected
Parameters: value 0 for deselected button, other for selected button
Returns: true if the value has been set, false
otherwise