|
|||||||||
| 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.TextAPIDriver
public abstract class TextAPIDriver
Superclass for all TextDrivers using API calls.
| Constructor Summary | |
|---|---|
TextAPIDriver(java.lang.String[] supported)
Constructs a ChoiceDriver. |
|
| Method Summary | |
|---|---|
void |
clearText(ComponentOperator oper)
Clears component text. |
void |
enterText(ComponentOperator oper,
java.lang.String text)
Type text and push enter. |
abstract int |
getCaretPosition(ComponentOperator oper)
Returns current caret position. |
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 java.lang.String |
getText(ComponentOperator oper)
Returns operator's text. |
void |
changeCaretPosition(ComponentOperator oper,
int position)
Moves caret. |
void |
changeText(ComponentOperator oper,
java.lang.String text)
Replace component text. |
void |
selectText(ComponentOperator oper,
int startPosition,
int finalPosition)
Selects text. |
void |
typeText(ComponentOperator oper,
java.lang.String text,
int caretPosition)
Types new text. |
| Methods inherited from class org.netbeans.jemmy.drivers.LightSupportiveDriver |
|---|
getSupported, checkSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAPIDriver(java.lang.String[] supported)
supported - an array of supported class names| Method Detail |
|---|
public void changeCaretPosition(ComponentOperator oper,
int position)
TextDriver
changeCaretPosition in interface TextDriveroper - Text component operator.position - Position to move caret to.
public void selectText(ComponentOperator oper,
int startPosition,
int finalPosition)
TextDriver
selectText in interface TextDriveroper - Text component operator.startPosition - a posistion of selction startfinalPosition - a posistion of selction endpublic void clearText(ComponentOperator oper)
TextDriver
clearText in interface TextDriveroper - Text component operator.
public void typeText(ComponentOperator oper,
java.lang.String text,
int caretPosition)
TextDriver
typeText in interface TextDriveroper - Text component operator.text - New text to type.caretPosition - Type text at that position.
public void changeText(ComponentOperator oper,
java.lang.String text)
TextDriver
changeText in interface TextDriveroper - Text component operator.text - New text to type.
public void enterText(ComponentOperator oper,
java.lang.String text)
TextDriver
enterText in interface TextDriveroper - Text component operator.text - New text to type.public abstract java.lang.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||