public interface TextDriver
Modifier and Type | Method and Description |
---|---|
void |
changeCaretPosition(ComponentOperator oper,
int position)
Moves caret.
|
void |
changeText(ComponentOperator oper,
java.lang.String text)
Replace component text.
|
void |
clearText(ComponentOperator oper)
Clears component text.
|
void |
enterText(ComponentOperator oper,
java.lang.String text)
Type text and push enter.
|
void |
selectText(ComponentOperator oper,
int startPosition,
int finalPosition)
Selects text.
|
void |
typeText(ComponentOperator oper,
java.lang.String text,
int caretPosition)
Types new text.
|
void changeCaretPosition(ComponentOperator oper, int position)
oper
- Text component operator.position
- Position to move caret to.void selectText(ComponentOperator oper, int startPosition, int finalPosition)
oper
- Text component operator.startPosition
- a posistion of selction startfinalPosition
- a posistion of selction endvoid clearText(ComponentOperator oper)
oper
- Text component operator.void typeText(ComponentOperator oper, java.lang.String text, int caretPosition)
oper
- Text component operator.text
- New text to type.caretPosition
- Type text at that position.void changeText(ComponentOperator oper, java.lang.String text)
oper
- Text component operator.text
- New text to type.void enterText(ComponentOperator oper, java.lang.String text)
oper
- Text component operator.text
- New text to type.