Package org.netbeans.jemmy.drivers
Interface TextDriver
-
- All Known Implementing Classes:
AWTTextAPIDriver,AWTTextKeyboardDriver,SwingTextAPIDriver,SwingTextKeyboardDriver,TextAPIDriver,TextKeyboardDriver
public interface TextDriverDefines how to work with text components.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeCaretPosition(ComponentOperator oper, int position)Moves caret.voidchangeText(ComponentOperator oper, java.lang.String text)Replace component text.voidclearText(ComponentOperator oper)Clears component text.voidenterText(ComponentOperator oper, java.lang.String text)Type text and push enter.voidselectText(ComponentOperator oper, int startPosition, int finalPosition)Selects text.voidtypeText(ComponentOperator oper, java.lang.String text, int caretPosition)Types new text.
-
-
-
Method Detail
-
changeCaretPosition
void changeCaretPosition(ComponentOperator oper, int position)
Moves caret.- Parameters:
oper- Text component operator.position- Position to move caret to.
-
selectText
void selectText(ComponentOperator oper, int startPosition, int finalPosition)
Selects text.- Parameters:
oper- Text component operator.startPosition- a posistion of selction startfinalPosition- a posistion of selction end
-
clearText
void clearText(ComponentOperator oper)
Clears component text.- Parameters:
oper- Text component operator.
-
typeText
void typeText(ComponentOperator oper, java.lang.String text, int caretPosition)
Types new text.- Parameters:
oper- Text component operator.text- New text to type.caretPosition- Type text at that position.
-
changeText
void changeText(ComponentOperator oper, java.lang.String text)
Replace component text.- Parameters:
oper- Text component operator.text- New text to type.
-
enterText
void enterText(ComponentOperator oper, java.lang.String text)
Type text and push enter.- Parameters:
oper- Text component operator.text- New text to type.
-
-