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