Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.accessibility

Interface AccessibleEditableText

java.lang.Object
|
+--javax.accessibility.AccessibleText
   |
   +--javax.accessibility.AccessibleEditableText

All Implemented Interfaces:

AccessibleText


public interface AccessibleEditableText

implements AccessibleText

Objects which present editable textual information on the display should implement this interface. Accessibility software can use the implementations of this interface to change the content, attributes, and spacial location of the text.

The AccessibleContext.getAccessibleEditableText() method should return null if an object does not implement this interface.

Since:Author:See Also:

Method Summary

voidcut(int start, int end)

Cut the text between two points to the system clipboard.
voiddelete(int start, int end)

Delete the text between two points.
java.lang.StringgetTextRange(int start, int end)

Return the text between two points.
voidinsertTextAtIndex(int index, java.lang.String s)

Inserts the given string at the specified location.
voidpaste(int start)

Paste the text from the system clipboard at the given index.
voidreplaceText(int start, int end, java.lang.String s)

Replace the text between two points with the given string.
voidselectText(int start, int stop)

Select the text between two points.
voidsetAttributes(int start, int end, javax.swing.text.AttributeSet s)

Set the attributes of text between two points.
voidsetTextContents(java.lang.String s)

Set the text contents to the given string.

Method Details

cut

public void cut(int start, int end)

Cut the text between two points to the system clipboard.

Parameters:


delete

public void delete(int start, int end)

Delete the text between two points.

Parameters:


getTextRange

public String getTextRange(int start, int end)

Return the text between two points.

Parameters:


insertTextAtIndex

public void insertTextAtIndex(int index, java.lang.String s)

Inserts the given string at the specified location.

Parameters:


paste

public void paste(int start)

Paste the text from the system clipboard at the given index.

Parameters:


replaceText

public void replaceText(int start, int end, java.lang.String s)

Replace the text between two points with the given string.

Parameters:


selectText

public void selectText(int start, int stop)

Select the text between two points.

Parameters:


setAttributes

public void setAttributes(int start, int end, javax.swing.text.AttributeSet s)

Set the attributes of text between two points.

Parameters:


setTextContents

public void setTextContents(java.lang.String s)

Set the text contents to the given string.

Parameters: