AccessibleExtendedText interface contains additional methods not
provided by the AccessibleText interface.
Applications can determine if an object supports the
AccessibleExtendedText interface by first obtaining its
AccessibleContext (see Accessible) and then calling the
AccessibleContext#getAccessibleText method of
AccessibleContext. If the return value is an instance of
AccessibleExtendedText, the object supports this interface.
Accessible, Accessible#getAccessibleContext, AccessibleContext, AccessibleContext#getAccessibleText
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ATTRIBUTE_RUN
Constant used to indicate that the part of the text that should be retrieved is contiguous text with the same text attributes. |
| public static final int | LINE
Constant used to indicate that the part of the text that should be retrieved is a line of text. |
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | Returns: the bounding rectangle of the text if the indices are valid. Otherwise,null is returned.the start index in the text startIndex, int the end index in the text endIndex)Returns the bounding rectangle of the text between two indices. |
| public String | Returns: the text string if the indices are valid. Otherwise,null
is returned.the start index in the text startIndex, int the end index in the text endIndex)Returns the text between two indices. |
| public AccessibleTextSequence | Returns: anAccessibleTextSequence specifying the text if
part and index are valid. Otherwise, null
is returned.the part, int CHARACTER, WORD, SENTENCE,
LINE or ATTRIBUTE_RUN to retrievean index within the text index)Returns the |
| public AccessibleTextSequence | Returns: anAccessibleTextSequence specifying the text if
part and index are valid. Otherwise, null
is returned.the part, int CHARACTER, WORD, SENTENCE,
LINE or ATTRIBUTE_RUN to retrievean index within the text index)Returns the |
| public AccessibleTextSequence | Returns: anAccessibleTextSequence specifying the text if
part and index are valid. Otherwise, null
is returned.the part, int CHARACTER, WORD, SENTENCE,
LINE or ATTRIBUTE_RUN to retrievean index within the text index)Returns the |
| ATTRIBUTE_RUN | back to summary |
|---|---|
| public static final int ATTRIBUTE_RUN Constant used to indicate that the part of the text that should be retrieved is contiguous text with the same text attributes. | |
| LINE | back to summary |
|---|---|
| public static final int LINE Constant used to indicate that the part of the text that should be retrieved is a line of text. | |
| getTextBounds | back to summary |
|---|---|
| public Rectangle getTextBounds(int startIndex, int endIndex) Returns the bounding rectangle of the text between two indices.
| |
| getTextRange | back to summary |
|---|---|
| public String getTextRange(int startIndex, int endIndex) Returns the text between two indices.
| |
| getTextSequenceAfter | back to summary |
|---|---|
| public AccessibleTextSequence getTextSequenceAfter(int part, int index) Returns the
| |
| getTextSequenceAt | back to summary |
|---|---|
| public AccessibleTextSequence getTextSequenceAt(int part, int index) Returns the
| |
| getTextSequenceBefore | back to summary |
|---|---|
| public AccessibleTextSequence getTextSequenceBefore(int part, int index) Returns the
| |