javax.accessibility.AccessibleExtendedText |
![]() |
The 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 getAccessibleText()
method of
AccessibleContext. If the return value is an instance of
AccessibleExtendedText, the object supports this interface.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. | |||||||||
int | LINE | Constant used to indicate that the part of the text that should be retrieved is a line of text. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the bounding rectangle of the text between two indices.
| |||||||||||
Returns the text between two indices
| |||||||||||
Returns the
AccessibleTextSequence after a given index. | |||||||||||
Returns the
AccessibleTextSequence at a given index. | |||||||||||
Returns the
AccessibleTextSequence before a given index. |
Constant used to indicate that the part of the text that should be retrieved is contiguous text with the same text attributes.
Constant used to indicate that the part of the text that should be retrieved is a line of text.
Returns the bounding rectangle of the text between two indices.
startIndex | the start index in the text |
---|---|
endIndex | the end index in the text |
Returns the text between two indices
startIndex | the start index in the text |
---|---|
endIndex | the end index in the text |
Returns the AccessibleTextSequence
after a given index.
part | the CHARACTER , WORD ,
SENTENCE , LINE or ATTRIBUTE_RUN
to retrieve |
---|---|
index | an index within the text |
AccessibleTextSequence
specifying the text
if part and index are valid. Otherwise, null is returned.Returns the AccessibleTextSequence
at a given index.
part | the CHARACTER , WORD ,
SENTENCE , LINE or ATTRIBUTE_RUN
to retrieve |
---|---|
index | an index within the text |
AccessibleTextSequence
specifying the text
if part and index are valid. Otherwise, null is returned.Returns the AccessibleTextSequence
before a given index.
part | the CHARACTER , WORD ,
SENTENCE , LINE or ATTRIBUTE_RUN
to retrieve |
---|---|
index | an index within the text |
AccessibleTextSequence
specifying the text
if part and index are valid. Otherwise, null is returned.