|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.text.TextKeyboardDriver
public abstract class TextKeyboardDriver
Superclass for all TextDrivers using keyboard.
Constructor Summary | |
---|---|
TextKeyboardDriver(String[] supported)
Constructs a TextKeyboardDriver. |
Method Summary | |
---|---|
void |
changeCaretPosition(ComponentOperator oper,
int position)
Moves caret. |
protected void |
changeCaretPosition(ComponentOperator oper,
int position,
int preModifiers)
Changes current caret position to specifyed. |
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. |
abstract Timeout |
getBetweenTimeout(ComponentOperator oper)
Returns a timeout to sleep between text typing and caret operations. |
abstract int |
getCaretPosition(ComponentOperator oper)
Returns current caret position. |
abstract org.netbeans.jemmy.drivers.text.NavigationKey[] |
getKeys(ComponentOperator oper)
Returns an array of navigation keys. |
abstract int |
getSelectionEnd(ComponentOperator oper)
Returns a caret position of selection end. |
abstract int |
getSelectionStart(ComponentOperator oper)
Returns a caret position of selection start. |
abstract String |
getText(ComponentOperator oper)
Returns operator's text. |
void |
selectText(ComponentOperator oper,
int startPosition,
int finalPosition)
Selects text. |
void |
typeText(ComponentOperator oper,
String text,
int caretPosition)
Types new text. |
Methods inherited from class org.netbeans.jemmy.drivers.LightSupportiveDriver |
---|
checkSupported, getSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextKeyboardDriver(String[] supported)
supported
- an array of supported class namesMethod Detail |
---|
public void changeCaretPosition(ComponentOperator oper, int position)
TextDriver
changeCaretPosition
in interface TextDriver
oper
- Text component operator.position
- Position to move caret to.public void selectText(ComponentOperator oper, int startPosition, int finalPosition)
TextDriver
selectText
in interface TextDriver
oper
- Text component operator.startPosition
- a posistion of selction startfinalPosition
- a posistion of selction endpublic void clearText(ComponentOperator oper)
TextDriver
clearText
in interface TextDriver
oper
- Text component operator.public void typeText(ComponentOperator oper, String text, int caretPosition)
TextDriver
typeText
in interface TextDriver
oper
- Text component operator.text
- New text to type.caretPosition
- Type text at that position.public void changeText(ComponentOperator oper, String text)
TextDriver
changeText
in interface TextDriver
oper
- Text component operator.text
- New text to type.public void enterText(ComponentOperator oper, String text)
TextDriver
enterText
in interface TextDriver
oper
- Text component operator.text
- New text to type.public abstract String getText(ComponentOperator oper)
oper
- an operator.
public abstract int getCaretPosition(ComponentOperator oper)
oper
- an operator.
public abstract int getSelectionStart(ComponentOperator oper)
oper
- an operator.
public abstract int getSelectionEnd(ComponentOperator oper)
oper
- an operator.
public abstract org.netbeans.jemmy.drivers.text.NavigationKey[] getKeys(ComponentOperator oper)
oper
- an operator.
public abstract Timeout getBetweenTimeout(ComponentOperator oper)
oper
- an operator.
protected void changeCaretPosition(ComponentOperator oper, int position, int preModifiers)
oper
- an operator.position
- new caret positionpreModifiers
- a modifiers (combination of InputEvent.*_MASK
fields)
pushed before caret moving (like shift during text selection).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |