public class AWTTextAPIDriver extends TextAPIDriver
Constructor and Description |
---|
AWTTextAPIDriver()
Constructs a AWTTextAPIDriver.
|
Modifier and Type | Method and Description |
---|---|
int |
getCaretPosition(ComponentOperator oper)
Returns current caret position.
|
int |
getSelectionEnd(ComponentOperator oper)
Returns a caret position of selection end.
|
int |
getSelectionStart(ComponentOperator oper)
Returns a caret position of selection start.
|
java.lang.String |
getText(ComponentOperator oper)
Returns operator's text.
|
changeCaretPosition, changeText, clearText, enterText, selectText, typeText
checkSupported, getSupported
public java.lang.String getText(ComponentOperator oper)
TextAPIDriver
getText
in class TextAPIDriver
oper
- an operator.public int getCaretPosition(ComponentOperator oper)
TextAPIDriver
getCaretPosition
in class TextAPIDriver
oper
- an operator.public int getSelectionStart(ComponentOperator oper)
TextAPIDriver
getSelectionStart
in class TextAPIDriver
oper
- an operator.public int getSelectionEnd(ComponentOperator oper)
TextAPIDriver
getSelectionEnd
in class TextAPIDriver
oper
- an operator.