public class SwingTextKeyboardDriver extends TextKeyboardDriver
Constructor and Description |
---|
SwingTextKeyboardDriver()
Constructs a SwingTextKeyboardDriver.
|
Modifier and Type | Method and Description |
---|---|
void |
clearText(ComponentOperator oper)
Clears component text.
|
Timeout |
getBetweenTimeout(ComponentOperator oper)
Returns a timeout to sleep between text typing and caret operations.
|
int |
getCaretPosition(ComponentOperator oper)
Returns current caret position.
|
org.netbeans.jemmy.drivers.text.NavigationKey[] |
getKeys(ComponentOperator oper)
Returns an array of navigation keys.
|
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, changeCaretPosition, changeText, enterText, selectText, typeText
checkSupported, getSupported
public SwingTextKeyboardDriver()
public void clearText(ComponentOperator oper)
TextDriver
clearText
in interface TextDriver
clearText
in class TextKeyboardDriver
oper
- Text component operator.public java.lang.String getText(ComponentOperator oper)
TextKeyboardDriver
getText
in class TextKeyboardDriver
oper
- an operator.public int getCaretPosition(ComponentOperator oper)
TextKeyboardDriver
getCaretPosition
in class TextKeyboardDriver
oper
- an operator.public int getSelectionStart(ComponentOperator oper)
TextKeyboardDriver
getSelectionStart
in class TextKeyboardDriver
oper
- an operator.public int getSelectionEnd(ComponentOperator oper)
TextKeyboardDriver
getSelectionEnd
in class TextKeyboardDriver
oper
- an operator.public org.netbeans.jemmy.drivers.text.NavigationKey[] getKeys(ComponentOperator oper)
TextKeyboardDriver
getKeys
in class TextKeyboardDriver
oper
- an operator.public Timeout getBetweenTimeout(ComponentOperator oper)
TextKeyboardDriver
getBetweenTimeout
in class TextKeyboardDriver
oper
- an operator.