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 AccessibleContext.getAccessibleEditableText() method of AccessibleContext. If the return value is not null, the object supports this interface.
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 AccessibleContext.getAccessibleEditableText() method of AccessibleContext. If the return value is not null, the object supports this interface.
(cut this start-index end-index)
Cuts the text between two indices into the system clipboard.
start-index - the starting index in the text - int
end-index - the ending index in the text - int
Cuts the text between two indices into the system clipboard. start-index - the starting index in the text - `int` end-index - the ending index in the text - `int`
(delete this start-index end-index)
Deletes the text between two indices
start-index - the starting index in the text - int
end-index - the ending index in the text - int
Deletes the text between two indices start-index - the starting index in the text - `int` end-index - the ending index in the text - `int`
(get-text-range this start-index end-index)
Returns the text string between two indices.
start-index - the starting index in the text - int
end-index - the ending index in the text - int
returns: the text string between the indices - java.lang.String
Returns the text string between two indices. start-index - the starting index in the text - `int` end-index - the ending index in the text - `int` returns: the text string between the indices - `java.lang.String`
(insert-text-at-index this index s)
Inserts the specified string at the given index/
index - the index in the text where the string will be inserted - int
s - the string to insert in the text - java.lang.String
Inserts the specified string at the given index/ index - the index in the text where the string will be inserted - `int` s - the string to insert in the text - `java.lang.String`
(paste this start-index)
Pastes the text from the system clipboard into the text starting at the specified index.
start-index - the starting index in the text - int
Pastes the text from the system clipboard into the text starting at the specified index. start-index - the starting index in the text - `int`
(replace-text this start-index end-index s)
Replaces the text between two indices with the specified string.
start-index - the starting index in the text - int
end-index - the ending index in the text - int
s - the string to replace the text between two indices - java.lang.String
Replaces the text between two indices with the specified string. start-index - the starting index in the text - `int` end-index - the ending index in the text - `int` s - the string to replace the text between two indices - `java.lang.String`
(select-text this start-index end-index)
Selects the text between two indices.
start-index - the starting index in the text - int
end-index - the ending index in the text - int
Selects the text between two indices. start-index - the starting index in the text - `int` end-index - the ending index in the text - `int`
(set-attributes this start-index end-index as)
Sets attributes for the text between two indices.
start-index - the starting index in the text - int
end-index - the ending index in the text - int
as - the attribute set - javax.swing.text.AttributeSet
Sets attributes for the text between two indices. start-index - the starting index in the text - `int` end-index - the ending index in the text - `int` as - the attribute set - `javax.swing.text.AttributeSet`
(set-text-contents this s)
Sets the text contents to the specified string.
s - the string to set the text contents - java.lang.String
Sets the text contents to the specified string. s - the string to set the text contents - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close