org.eclipse.actf.accservice.core
Interface IAccessibleEditableTextElement

All Known Implementing Classes:
IA2AccessibleEditableText, JavaAccessibleEditableText

public interface IAccessibleEditableTextElement

Interface for exposing accessibility-related properties of images to the validation engine.

Author:
Kavitha Teegala
See Also:
IAccessibleElement2

Method Summary
 void copyText(int startIndex, int endIndex)
          Copies the text range into the clipboard.
 void cutText(int startIndex, int endIndex)
          Deletes a range of text and copies it to the clipboard.
 void deleteText(int startIndex, int endIndex)
          Deletes the text between two indices
 void insertText(int index, String s)
          Inserts the specified string at the given index/
 void pasteText(int startIndex)
          Pastes the text from the system clipboard into the text starting at the specified index.
 void replaceText(int startIndex, int endIndex, String s)
          Replaces the text between two indices with the specified string.
 void setAttributes(int startIndex, int endIndex, String[] as)
          Sets attributes for the text between two indices.
 

Method Detail

copyText

void copyText(int startIndex,
              int endIndex)
              throws InvalidComponentException
Copies the text range into the clipboard.

Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

deleteText

void deleteText(int startIndex,
                int endIndex)
                throws InvalidComponentException
Deletes the text between two indices

Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

insertText

void insertText(int index,
                String s)
                throws InvalidComponentException
Inserts the specified string at the given index/

Parameters:
index - the index in the text where the string will be inserted
s - the string to insert in the text
Throws:
InvalidComponentException

cutText

void cutText(int startIndex,
             int endIndex)
             throws InvalidComponentException
Deletes a range of text and copies it to the clipboard.

Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

pasteText

void pasteText(int startIndex)
               throws InvalidComponentException
Pastes the text from the system clipboard into the text starting at the specified index.

Parameters:
startIndex - the starting index in the text
Throws:
InvalidComponentException

replaceText

void replaceText(int startIndex,
                 int endIndex,
                 String s)
                 throws InvalidComponentException
Replaces the text between two indices with the specified string.

Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
s - the string to replace the text between two indices
Throws:
InvalidComponentException

setAttributes

void setAttributes(int startIndex,
                   int endIndex,
                   String[] as)
                   throws InvalidComponentException
Sets attributes for the text between two indices.

Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
as - -atrributes in a String array
Throws:
InvalidComponentException