|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.core.win32.ia2.IA2AccessibleEditableText
public class IA2AccessibleEditableText
implementation of IAccessibleEditableTextElement
for GUI controls that implement IAccessible2/IBM interfaces.
This interface gives write access to a text representation.
This interface is typically used in conjunction with the
AccessibleText interface and complements that interface
with the additional ability to modify text.
The substrings used with this interface are specified as
follows: If startOffset is less than endOffset, the
substring starts with the character at startOffset and
ends with the character just before endOffset. If endOffset
is lower than startOffset, the result is the same as a call
with the two arguments exchanged. The whole text can be
defined by passing the indices zero and
IAccessibleText::nCharacters. If both indices have the
same value, an empty string is defined.
Constructor Summary | |
---|---|
IA2AccessibleEditableText(int accRef,
IA2Accessible parent)
Constructor used to create an accessible text 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/ |
protected boolean |
internalCopyText(int startIndex,
int endIndex)
|
protected boolean |
internalCutText(int startIndex,
int endIndex)
|
protected boolean |
internalDeleteText(int startIndex,
int endIndex)
|
protected boolean |
internalInsertText(int index,
String s)
|
protected boolean |
internalPasteText(int startIndex)
|
int |
internalRef()
used by native code only. |
protected boolean |
internalReplaceText(int startIndex,
int endIndex,
String s)
|
protected boolean |
internalSetAttributes(int startIndex,
int endIndex,
String as)
|
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 |
---|
public IA2AccessibleEditableText(int accRef, IA2Accessible parent)
accRef
- reference pointer to the IA2Accessible text objectparent
- IA2Accessible parent of this objectMethod Detail |
---|
public int internalRef()
public void copyText(int startIndex, int endIndex) throws InvalidComponentException
IAccessibleEditableTextElement
copyText
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the textendIndex
- the ending index in the text
InvalidComponentException
protected boolean internalCopyText(int startIndex, int endIndex)
public void cutText(int startIndex, int endIndex) throws InvalidComponentException
IAccessibleEditableTextElement
cutText
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the textendIndex
- the ending index in the text
InvalidComponentException
protected boolean internalCutText(int startIndex, int endIndex)
public void deleteText(int startIndex, int endIndex) throws InvalidComponentException
IAccessibleEditableTextElement
deleteText
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the textendIndex
- the ending index in the text
InvalidComponentException
protected boolean internalDeleteText(int startIndex, int endIndex)
public void insertText(int index, String s) throws InvalidComponentException
IAccessibleEditableTextElement
insertText
in interface IAccessibleEditableTextElement
index
- the index in the text where the string will
be inserteds
- the string to insert in the text
InvalidComponentException
protected boolean internalInsertText(int index, String s)
public void pasteText(int startIndex) throws InvalidComponentException
IAccessibleEditableTextElement
pasteText
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the text
InvalidComponentException
protected boolean internalPasteText(int startIndex)
public void replaceText(int startIndex, int endIndex, String s) throws InvalidComponentException
IAccessibleEditableTextElement
replaceText
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the textendIndex
- the ending index in the texts
- the string to replace the text between two indices
InvalidComponentException
protected boolean internalReplaceText(int startIndex, int endIndex, String s)
public void setAttributes(int startIndex, int endIndex, String[] as) throws InvalidComponentException
IAccessibleEditableTextElement
setAttributes
in interface IAccessibleEditableTextElement
startIndex
- the starting index in the textendIndex
- the ending index in the textas
- -atrributes in a String array
InvalidComponentException
AttributeSet
protected boolean internalSetAttributes(int startIndex, int endIndex, String as)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |