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, typeTextcheckSupported, getSupportedpublic SwingTextKeyboardDriver()
public void clearText(ComponentOperator oper)
TextDriverclearText in interface TextDriverclearText in class TextKeyboardDriveroper - Text component operator.public java.lang.String getText(ComponentOperator oper)
TextKeyboardDrivergetText in class TextKeyboardDriveroper - an operator.public int getCaretPosition(ComponentOperator oper)
TextKeyboardDrivergetCaretPosition in class TextKeyboardDriveroper - an operator.public int getSelectionStart(ComponentOperator oper)
TextKeyboardDrivergetSelectionStart in class TextKeyboardDriveroper - an operator.public int getSelectionEnd(ComponentOperator oper)
TextKeyboardDrivergetSelectionEnd in class TextKeyboardDriveroper - an operator.public org.netbeans.jemmy.drivers.text.NavigationKey[] getKeys(ComponentOperator oper)
TextKeyboardDrivergetKeys in class TextKeyboardDriveroper - an operator.public Timeout getBetweenTimeout(ComponentOperator oper)
TextKeyboardDrivergetBetweenTimeout in class TextKeyboardDriveroper - an operator.