java.lang.Object | |||
↳ | javax.accessibility.AccessibleContext | ||
↳ | java.awt.Component.AccessibleAWTComponent | ||
↳ | java.awt.TextComponent.AccessibleAWTTextComponent |
Known Direct Subclasses |
This class implements accessibility support for the
TextComponent
class. It provides an implementation of the
Java Accessibility API appropriate to text component user-interface
elements.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.accessibility.AccessibleContext
| |||||||||||
From interface
javax.accessibility.AccessibleText
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.Component.AccessibleAWTComponent
| |||||||||||
From class
javax.accessibility.AccessibleContext
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an AccessibleAWTTextComponent.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the role of this object.
| |||||||||||
Gets the state set of the TextComponent.
| |||||||||||
Get the AccessibleText 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.
| |||||||||||
Returns the zero-based offset of the caret.
| |||||||||||
Returns the number of characters (valid indicies)
| |||||||||||
Returns the AttributeSet for a given character (at a given index).
| |||||||||||
Determines the bounding box of the character at the given
index into the string.
| |||||||||||
Given a point in local coordinates, return the zero-based index
of the character under that Point.
| |||||||||||
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.
| |||||||||||
TextListener notification of a text value change.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.Component.AccessibleAWTComponent
| |||||||||||
From class
javax.accessibility.AccessibleContext
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.awt.event.TextListener
| |||||||||||
From interface
javax.accessibility.AccessibleComponent
| |||||||||||
From interface
javax.accessibility.AccessibleText
|
Constructs an AccessibleAWTTextComponent. Adds a listener to track caret change.
Gets the role of this object.
Gets the state set of the TextComponent. The AccessibleStateSet of an object is composed of a set of unique AccessibleStates. A change in the AccessibleStateSet of an object will cause a PropertyChangeEvent to be fired for the AccessibleContext.ACCESSIBLE_STATE_PROPERTY property.
Get the AccessibleText associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleText 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 |
Returns the zero-based offset of the caret. Note: The character to the right of the caret will have the same index value as the offset (the caret is between two characters).
Returns the number of characters (valid indicies)
Returns the AttributeSet for a given character (at a given index).
i | the zero-based index into the text |
---|
Determines 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 a null rectangle is returned.
i | the index into the String >= 0 |
---|
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.
p | the Point in local coordinates |
---|
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. Return 0 if the text is empty, or the caret position if no selection.
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. Return 0 if the text is empty, or the caret position if no selection.
TextListener notification of a text value change.