|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.accservice.javapp.JavaAccessibleText
public class JavaAccessibleText
implementation of the IAccessibleTextElement
object for the Java Accesibility API's AccessibleText
.
AccessibleText
Constructor Summary | |
---|---|
JavaAccessibleText(AccessibleText text)
Constructor used to create an accessible text object. |
Method Summary | |
---|---|
Object |
getAttributes(long offset)
get the attributes at the specified offset of the text |
long |
getCaretOffset()
get the offset of the caret for the accessible text object |
String |
getSelectedText(long index)
get the text of the selected object |
long |
getSelectedTextEnd(long index)
get the ending index of the selected text |
long |
getSelectedTextStart(long index)
get the starting index of the selected text |
long |
getSelectionCount()
get number of active non-contiguous selections |
String |
getText()
get the text for the accessible text object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaAccessibleText(AccessibleText text)
JavaAccessible
and is not typically called by clients.
text
- -
AccessibleText objectMethod Detail |
---|
public String getText() throws InvalidComponentException
getText
in interface IAccessibleTextElement
InvalidComponentException
public long getCaretOffset() throws InvalidComponentException
getCaretOffset
in interface IAccessibleTextElement
InvalidComponentException
public Object getAttributes(long offset) throws InvalidComponentException
getAttributes
in interface IAccessibleTextElement
offset
- zero index of caret offset
InvalidComponentException
public long getSelectionCount() throws InvalidComponentException
getSelectionCount
in interface IAccessibleTextElement
InvalidComponentException
public String getSelectedText(long index) throws InvalidComponentException
getSelectedText
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
public long getSelectedTextStart(long index) throws InvalidComponentException
getSelectedTextStart
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
public long getSelectedTextEnd(long index) throws InvalidComponentException
getSelectedTextEnd
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |