org.eclipse.actf.accservice.javapp
Class JavaAccessibleEditableText

java.lang.Object
  extended by org.eclipse.actf.accservice.javapp.JavaAccessibleEditableText
All Implemented Interfaces:
IAccessibleEditableTextElement

public class JavaAccessibleEditableText
extends Object
implements IAccessibleEditableTextElement

implementation of the IAccessibleEditableTextElement object for the Java Accesibility API's AccessibleIcon.

Author:
Kavitha Teegala
See Also:
AccessibleIcon

Constructor Summary
JavaAccessibleEditableText(AccessibleEditableText text)
          Constructor used to create an accessible image object.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAccessibleEditableText

public JavaAccessibleEditableText(AccessibleEditableText text)
Constructor used to create an accessible image object. This constructor will usually be invoked from JavaAccessible and is not typically called by clients.

Parameters:
text -
Method Detail

copyText

public void copyText(int startIndex,
                     int endIndex)
              throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Copies the text range into the clipboard.

Specified by:
copyText in interface IAccessibleEditableTextElement
Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

cutText

public void cutText(int startIndex,
                    int endIndex)
             throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Deletes a range of text and copies it to the clipboard.

Specified by:
cutText in interface IAccessibleEditableTextElement
Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

deleteText

public void deleteText(int startIndex,
                       int endIndex)
                throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Deletes the text between two indices

Specified by:
deleteText in interface IAccessibleEditableTextElement
Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
Throws:
InvalidComponentException

insertText

public void insertText(int index,
                       String s)
                throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Inserts the specified string at the given index/

Specified by:
insertText in interface IAccessibleEditableTextElement
Parameters:
index - the index in the text where the string will be inserted
s - the string to insert in the text
Throws:
InvalidComponentException

pasteText

public void pasteText(int startIndex)
               throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Pastes the text from the system clipboard into the text starting at the specified index.

Specified by:
pasteText in interface IAccessibleEditableTextElement
Parameters:
startIndex - the starting index in the text
Throws:
InvalidComponentException

replaceText

public void replaceText(int startIndex,
                        int endIndex,
                        String s)
                 throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Replaces the text between two indices with the specified string.

Specified by:
replaceText in interface IAccessibleEditableTextElement
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

public void setAttributes(int startIndex,
                          int endIndex,
                          String[] as)
                   throws InvalidComponentException
Description copied from interface: IAccessibleEditableTextElement
Sets attributes for the text between two indices.

Specified by:
setAttributes in interface IAccessibleEditableTextElement
Parameters:
startIndex - the starting index in the text
endIndex - the ending index in the text
as - -atrributes in a String array
Throws:
InvalidComponentException