| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer |
---|
Container.AccessibleAWTContainer.AccessibleContainerHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
accessibleContainerHandler, accessibleFocusHandler |
Fields inherited from class java.awt.Container.AccessibleAWTContainer |
---|
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Constructor Summary | |
---|---|
protected |
|
Method Summary | |
---|---|
boolean |
doAccessibleAction(int i) Perform the specified Action on the object |
AccessibleAction |
Get the AccessibleAction associated with this object. |
int |
Returns the number of Actions available in this object. |
String |
Return a description of the specified action of the object. |
AccessibleIcon[] |
Get the AccessibleIcons associated with this object if one or more exist. |
AccessibleKeyBinding |
Returns key bindings associated with this object |
String |
Returns the accessible name of this object. |
AccessibleRelationSet |
Get the AccessibleRelationSet associated with this object if one exists. |
AccessibleStateSet |
Get the state set of this object. |
AccessibleText |
Gets the AccessibleText associated with this object presenting text on the display. |
AccessibleValue |
Get the AccessibleValue associated with this object. |
String |
getAfterIndex(int part, int index) Returns the String after a given index. |
String |
getAtIndex(int part, int index) Returns the String at a given index. |
String |
getBeforeIndex(int part, int index) Returns the String before a given index. |
int |
Return the zero-based offset of the caret. |
AttributeSet |
getCharacterAttribute(int i) Return the AttributeSet for a given character at a given index |
Rectangle |
getCharacterBounds(int i) Determine the bounding box of the character at the given index into the string. |
int |
Return the number of characters (valid indicies) |
Number |
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. |
Number |
Get the maximum value of this object as a Number. |
Number |
Get the minimum value of this object as a Number. |
String |
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. |
String |
Returns the titled border text |
String |
Returns the tool tip text |
boolean |
Set the value of this object as a Number. |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
---|
addPropertyChangeListener, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractButton.AccessibleAbstractButton()
Method Detail |
---|
public boolean doAccessibleAction(int i)
i
- zero-based index of actionspublic AccessibleAction getAccessibleAction()
getAccessibleAction
in class AccessibleContext
public int getAccessibleActionCount()
public String getAccessibleActionDescription(int i)
i
- zero-based index of the actionspublic AccessibleIcon[] getAccessibleIcon()
getAccessibleIcon
in class AccessibleContext
public AccessibleKeyBinding getAccessibleKeyBinding()
getAccessibleKeyBinding
in class JComponent.AccessibleJComponent
public String getAccessibleName()
getAccessibleName
in class JComponent.AccessibleJComponent
null
if this
object does not have a namepublic AccessibleRelationSet getAccessibleRelationSet()
getAccessibleRelationSet
in class AccessibleContext
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class JComponent.AccessibleJComponent
public AccessibleText getAccessibleText()
getAccessibleText
in class AccessibleContext
public AccessibleValue getAccessibleValue()
getAccessibleValue
in class AccessibleContext
public String getAfterIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public String getAtIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public String getBeforeIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public int getCaretPosition()
public AttributeSet getCharacterAttribute(int i)
i
- the zero-based index into the textpublic Rectangle getCharacterBounds(int i)
i
- the index into the Stringpublic int getCharCount()
public Number getCurrentAccessibleValue()
public int getIndexAtPoint(Point p)
p
- the Point in local coordinatespublic Number getMaximumAccessibleValue()
public Number getMinimumAccessibleValue()
public String getSelectedText()
public int getSelectionEnd()
public int getSelectionStart()
public String getTitledBorderText()
getTitledBorderText
in class JComponent.AccessibleJComponent
public String getToolTipText()
getToolTipText
in class JComponent.AccessibleJComponent
public boolean setCurrentAccessibleValue(Number n)
n
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |