|
||||||||||
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.IA2AccessibleText
public class IA2AccessibleText
implementation of IAccessibleTextElement
for GUI controls that implement IAccessible2/IBM interfaces.
This class is a wrapper for an IAccessible2 pointer, a pointer that Provides access to a native Windows object that provides assistive technologies (ATs) with properties of GUI components that allow the AT to offer an alternative interface to the control. This class relies upon JCAccessible.dll for most of its implementation. The documentation for the Microsoft COM library and, in particular, for IAccessible2/IBM will be helpful.
Constructor Summary | |
---|---|
IA2AccessibleText(int accRef,
IA2Accessible parent)
Constructor used to create an accessible text object |
Method Summary | |
---|---|
boolean |
addSelection(int startOffset,
int endOffset)
Adds a text selection. |
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 |
Rectangle |
getCharacterBounds(int offset,
int coordType)
Returns the bounding box of the specified position. |
int |
getCharacterCount()
|
IA2TextSegment |
getNewText()
|
int |
getOffsetAtPoint(Point point,
int coordType)
|
IA2TextSegment |
getOldText()
|
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 |
IA2TextSegment |
getTextAfterOffset(int offset,
int boundaryType)
|
IA2TextSegment |
getTextAtOffset(int offset,
int boundaryType)
|
IA2TextSegment |
getTextBeforeOffset(int offset,
int boundaryType)
|
String |
getTextRange(int startOffset,
int endOffset)
|
protected boolean |
internalAddSelection(int startOffset,
int endOffset)
|
protected IA2TextSegment |
internalGetAttributes(long offset)
|
protected long |
internalGetCaretOffset()
|
protected int[] |
internalGetCharacterBounds(int offset,
int coordType)
|
protected int |
internalGetCharacterCount()
|
protected IA2TextSegment |
internalGetNewText()
|
protected int |
internalGetOffsetAtPoint(int x,
int y,
int coordType)
|
protected IA2TextSegment |
internalGetOldText()
|
protected String |
internalGetSelectedText(long index)
|
protected long |
internalGetSelectedTextEnd(long index)
|
protected long |
internalGetSelectedTextStart(long index)
|
protected long |
internalGetSelectionCount()
|
protected String |
internalGetText()
|
protected IA2TextSegment |
internalGetTextAfterOffset(int offset,
int boundaryType)
|
protected IA2TextSegment |
internalGetTextAtOffset(int offset,
int boundaryType)
|
protected IA2TextSegment |
internalGetTextBeforeOffset(int offset,
int boundaryType)
|
protected String |
internalGetTextRange(int startOffset,
int endOffset)
|
int |
internalRef()
used by native code only. |
protected boolean |
internalRemoveSelection(int selIndex)
|
protected boolean |
internalScrollSubstringToPoint(int startOffset,
int endOffset,
int scrollType,
int x,
int y)
|
protected boolean |
internalScrollToSubstring(int startOffset,
int endOffset,
int scrollType)
|
protected boolean |
internalSetCaretOffset(int offset)
|
protected boolean |
internalSetSelection(int sel,
int startOffset,
int endOffset)
|
boolean |
removeSelection(int selIndex)
|
boolean |
scrollSubstringToPoint(int startOffset,
int endOffset,
int scrollType,
int x,
int y)
|
boolean |
scrollToSubstring(int startOffset,
int endOffset,
int scrollType)
|
boolean |
setCaretOffset(int offset)
|
boolean |
setSelection(int selIndex,
int startOffset,
int endOffset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IA2AccessibleText(int accRef, IA2Accessible parent)
accRef
- reference pointer to the IA2Accessible text objectparent
- IA2Accessible parent of this objectMethod Detail |
---|
public int internalRef()
public String getText() throws InvalidComponentException
getText
in interface IAccessibleTextElement
InvalidComponentException
protected String internalGetText()
public long getCaretOffset() throws InvalidComponentException
getCaretOffset
in interface IAccessibleTextElement
InvalidComponentException
protected long internalGetCaretOffset()
public Object getAttributes(long offset) throws InvalidComponentException
getAttributes
in interface IAccessibleTextElement
offset
- zero index of caret offset
InvalidComponentException
protected IA2TextSegment internalGetAttributes(long offset)
public long getSelectionCount() throws InvalidComponentException
getSelectionCount
in interface IAccessibleTextElement
InvalidComponentException
protected long internalGetSelectionCount()
public String getSelectedText(long index) throws InvalidComponentException
getSelectedText
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
protected String internalGetSelectedText(long index)
public long getSelectedTextStart(long index) throws InvalidComponentException
getSelectedTextStart
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
protected long internalGetSelectedTextStart(long index)
public long getSelectedTextEnd(long index) throws InvalidComponentException
getSelectedTextEnd
in interface IAccessibleTextElement
index
- zero index of selected text objects
InvalidComponentException
protected long internalGetSelectedTextEnd(long index)
public boolean addSelection(int startOffset, int endOffset) throws InvalidComponentException
startOffset
- -Starting offset ( 0-based).endOffset
- - Offset of first character after new selection (0-based).
InvalidComponentException
protected boolean internalAddSelection(int startOffset, int endOffset)
public Rectangle getCharacterBounds(int offset, int coordType) throws InvalidComponentException
offset
- -Index of the character for which to return its bounding box. The valid range is 0..length.coordType
- -Specifies if the coordinates are relative to the screen or to the parent window.
InvalidComponentException
protected int[] internalGetCharacterBounds(int offset, int coordType)
public int getOffsetAtPoint(Point point, int coordType) throws InvalidComponentException
InvalidComponentException
protected int internalGetOffsetAtPoint(int x, int y, int coordType)
public String getTextRange(int startOffset, int endOffset) throws InvalidComponentException
InvalidComponentException
protected String internalGetTextRange(int startOffset, int endOffset)
public IA2TextSegment getTextBeforeOffset(int offset, int boundaryType) throws InvalidComponentException
InvalidComponentException
protected IA2TextSegment internalGetTextBeforeOffset(int offset, int boundaryType)
public IA2TextSegment getTextAfterOffset(int offset, int boundaryType) throws InvalidComponentException
InvalidComponentException
protected IA2TextSegment internalGetTextAfterOffset(int offset, int boundaryType)
public IA2TextSegment getTextAtOffset(int offset, int boundaryType) throws InvalidComponentException
InvalidComponentException
protected IA2TextSegment internalGetTextAtOffset(int offset, int boundaryType)
public boolean removeSelection(int selIndex) throws InvalidComponentException
InvalidComponentException
protected boolean internalRemoveSelection(int selIndex)
public boolean setCaretOffset(int offset) throws InvalidComponentException
InvalidComponentException
protected boolean internalSetCaretOffset(int offset)
public boolean setSelection(int selIndex, int startOffset, int endOffset) throws InvalidComponentException
InvalidComponentException
protected boolean internalSetSelection(int sel, int startOffset, int endOffset)
public int getCharacterCount() throws InvalidComponentException
InvalidComponentException
protected int internalGetCharacterCount()
public boolean scrollToSubstring(int startOffset, int endOffset, int scrollType) throws InvalidComponentException
InvalidComponentException
protected boolean internalScrollToSubstring(int startOffset, int endOffset, int scrollType)
public boolean scrollSubstringToPoint(int startOffset, int endOffset, int scrollType, int x, int y) throws InvalidComponentException
InvalidComponentException
protected boolean internalScrollSubstringToPoint(int startOffset, int endOffset, int scrollType, int x, int y)
public IA2TextSegment getNewText() throws InvalidComponentException
InvalidComponentException
protected IA2TextSegment internalGetNewText()
public IA2TextSegment getOldText() throws InvalidComponentException
InvalidComponentException
protected IA2TextSegment internalGetOldText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |