public interface AccessibleEditableText extends AccessibleText
The AccessibleContext.getAccessibleEditableText() method
should return null if an object does not implement this
interface.
CHARACTER, SENTENCE, WORD| Modifier and Type | Method and Description |
|---|---|
void |
cut(int start,
int end)
Cut the text between two points to the system clipboard.
|
void |
delete(int start,
int end)
Delete the text between two points.
|
java.lang.String |
getTextRange(int start,
int end)
Return the text between two points.
|
void |
insertTextAtIndex(int index,
java.lang.String s)
Inserts the given string at the specified location.
|
void |
paste(int start)
Paste the text from the system clipboard at the given index.
|
void |
replaceText(int start,
int end,
java.lang.String s)
Replace the text between two points with the given string.
|
void |
selectText(int start,
int stop)
Select the text between two points.
|
void |
setAttributes(int start,
int end,
javax.swing.text.AttributeSet s)
Set the attributes of text between two points.
|
void |
setTextContents(java.lang.String s)
Set the text contents to the given string.
|
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStartvoid setTextContents(java.lang.String s)
s - the new textvoid insertTextAtIndex(int index, java.lang.String s)
index - the index for insertions - the new textjava.lang.String getTextRange(int start, int end)
start - the start position, inclusiveend - the end position, exclusivevoid delete(int start, int end)
start - the start position, inclusiveend - the end position, exclusivevoid cut(int start, int end)
start - the start position, inclusiveend - the end position, exclusivevoid paste(int start)
start - the start positionvoid replaceText(int start, int end, java.lang.String s)
start - the start position, inclusiveend - the end position, exclusives - the string to pastevoid selectText(int start, int stop)
start - the start position, inclusivestop - the end position, exclusivevoid setAttributes(int start, int end, javax.swing.text.AttributeSet s)
start - the start position, inclusiveend - the end position, exclusives - the new attribute set for the range