javax.accessibility.AccessibleEditableText |
![]() |
The AccessibleEditableText interface should be implemented by all
classes that present editable textual information on the display.
Along with the AccessibleText interface, this interface provides
the standard mechanism for an assistive technology to access
that text via its content, attributes, and spatial location.
Applications can determine if an object supports the AccessibleEditableText
interface by first obtaining its AccessibleContext (see Accessible
)
and then calling the getAccessibleEditableText()
method of AccessibleContext. If the return value is not null, the object
supports this interface.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Cuts the text between two indices into the system clipboard.
| |||||||||||
Deletes the text between two indices
| |||||||||||
Returns the text string between two indices.
| |||||||||||
Inserts the specified string at the given index/
| |||||||||||
Pastes the text from the system clipboard into the text
starting at the specified index.
| |||||||||||
Replaces the text between two indices with the specified
string.
| |||||||||||
Selects the text between two indices.
| |||||||||||
Sets attributes for the text between two indices.
| |||||||||||
Sets the text contents to the specified string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Cuts the text between two indices into the system clipboard.
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
Deletes the text between two indices
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
Returns the text string between two indices.
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
Inserts the specified string at the given index/
index | the index in the text where the string will be inserted |
---|---|
s | the string to insert in the text |
Pastes the text from the system clipboard into the text starting at the specified index.
startIndex | the starting index in the text |
---|
Replaces the text between two indices with the specified string.
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
s | the string to replace the text between two indices |
Selects the text between two indices.
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
Sets attributes for the text between two indices.
startIndex | the starting index in the text |
---|---|
endIndex | the ending index in the text |
as | the attribute set |
Sets the text contents to the specified string.
s | the string to set the text contents |
---|