|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.TextComponentOperator
org.netbeans.jemmy.operators.TextAreaOperator
public class TextAreaOperator
This operator type covers java.awt.textArea component.
Timeouts
Nested Class Summary | |
---|---|
static class |
TextAreaOperator.TextAreaByTextFinder
Allows to find component by text. |
static class |
TextAreaOperator.TextAreaFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.TextComponentOperator |
---|
TextComponentOperator.TextComponentByTextFinder, TextComponentOperator.TextComponentFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator |
---|
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
static String |
TEXT_DPROP
Identifier for a "text" property. |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
TextAreaOperator(ContainerOperator cont)
Constructor. |
|
TextAreaOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a TextAreaOperator object. |
|
TextAreaOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a TextAreaOperator object. |
|
TextAreaOperator(ContainerOperator cont,
int index)
Constructor. |
|
TextAreaOperator(ContainerOperator cont,
String text)
Constructor. |
|
TextAreaOperator(ContainerOperator cont,
String text,
int index)
Constructor. |
|
TextAreaOperator(TextArea b)
Constructor. |
Method Summary | |
---|---|
static TextArea |
findTextArea(Container cont,
ComponentChooser chooser)
Searches for the first TextArea in a container. |
static TextArea |
findTextArea(Container cont,
ComponentChooser chooser,
int index)
Searches TextArea in a container. |
static TextArea |
findTextArea(Container cont,
String text,
boolean ce,
boolean ccs)
Searches TextArea by text. |
static TextArea |
findTextArea(Container cont,
String text,
boolean ce,
boolean ccs,
int index)
Searches TextArea by text. |
int |
getColumns()
Maps TextArea.getColumns() through queue |
Hashtable |
getDump()
Returns information about component. |
Dimension |
getMinimumSize(int i,
int i1)
Maps TextArea.getMinimumSize(int, int) through queue |
TestOut |
getOutput()
Returns print output streams or writers. |
Dimension |
getPreferredSize(int i,
int i1)
Maps TextArea.getPreferredSize(int, int) through queue |
int |
getRows()
Maps TextArea.getRows() through queue |
int |
getScrollbarVisibility()
Maps TextArea.getScrollbarVisibility() through queue |
Timeouts |
getTimeouts()
Return current timeouts. |
void |
replaceRange(String string,
int i,
int i1)
Maps TextArea.replaceRange(String, int, int) through queue |
void |
setColumns(int i)
Maps TextArea.setColumns(int) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers. |
void |
setRows(int i)
Maps TextArea.setRows(int) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts. |
static TextArea |
waitTextArea(Container cont,
ComponentChooser chooser)
Waits 0'th TextArea in container. |
static TextArea |
waitTextArea(Container cont,
ComponentChooser chooser,
int index)
Waits TextArea in container. |
static TextArea |
waitTextArea(Container cont,
String text,
boolean ce,
boolean ccs)
Waits TextArea by text. |
static TextArea |
waitTextArea(Container cont,
String text,
boolean ce,
boolean ccs,
int index)
Waits TextArea by text. |
Methods inherited from class org.netbeans.jemmy.operators.TextComponentOperator |
---|
addTextListener, changeCaretPosition, clearText, copyEnvironment, enterText, findTextComponent, findTextComponent, findTextComponent, findTextComponent, getCaretPosition, getPositionByText, getPositionByText, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextDriver, isEditable, removeTextListener, select, selectAll, selectText, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText, typeText, typeText, waitTextComponent, waitTextComponent, waitTextComponent, waitTextComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEXT_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public TextAreaOperator(TextArea b)
b
- The java.awt.TextArea
managed by
this instance.public TextAreaOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public TextAreaOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public TextAreaOperator(ContainerOperator cont, String text, int index)
index+1
'th
java.awt.TextArea
that shows, lies below
the container in the display containment hierarchy,
and that has the desired text. Uses cont's timeout and output
for waiting and to init this operator.
cont
- The operator for a container containing the sought for textArea.text
- TextArea text.index
- Ordinal component index. The first component has index
0.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextAreaOperator(ContainerOperator cont, String text)
java.awt.TextArea
that shows, lies below
the container in the display containment hierarchy,
and that has the desired text. Uses cont's timeout and output
for waiting and to init this operator.
cont
- The operator for a container containing the sought for textArea.text
- TextArea text.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextAreaOperator(ContainerOperator cont, int index)
cont
- The operator for a container containing the sought for textArea.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextAreaOperator(ContainerOperator cont)
cont
- The operator for a container containing the sought for textArea.Operator.isCaptionEqual(String, String, boolean, boolean)
Method Detail |
---|
public static TextArea findTextArea(Container cont, ComponentChooser chooser, int index)
cont
- Container in which to search for the component. The container
lies above the component in the display containment hierarchy. The containment
need not be direct.chooser
- org.netbeans.jemmy.ComponentChooser implementation, defining and
applying search criteria.index
- Ordinal component index. The first index
is 0.
public static TextArea findTextArea(Container cont, ComponentChooser chooser)
cont
- Container in which to search for the component. The container
lies above the component in the display containment hierarchy. The containment
need not be direct.chooser
- org.netbeans.jemmy.ComponentChooser implementation, defining and
applying search criteria.
public static TextArea findTextArea(Container cont, String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- TextArea text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static TextArea findTextArea(Container cont, String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- TextArea text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static TextArea waitTextArea(Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
public static TextArea waitTextArea(Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
public static TextArea waitTextArea(Container cont, String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- TextArea text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static TextArea waitTextArea(Container cont, String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- TextArea text. If null, contents is not checked.ce
- Compare text exactly.ccs
- Compare text case sensitively.
Operator.isCaptionEqual(String, String, boolean, boolean)
public void setTimeouts(Timeouts timeouts)
Timeoutable
setTimeouts
in interface Timeoutable
setTimeouts
in class TextComponentOperator
timeouts
- A collection of timeout assignments.Timeoutable.getTimeouts()
public Timeouts getTimeouts()
Timeoutable
getTimeouts
in interface Timeoutable
getTimeouts
in class TextComponentOperator
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class TextComponentOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class TextComponentOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public Hashtable getDump()
ComponentOperator
getDump
in class TextComponentOperator
public int getColumns()
TextArea.getColumns()
through queue
public Dimension getMinimumSize(int i, int i1)
TextArea.getMinimumSize(int, int)
through queue
public Dimension getPreferredSize(int i, int i1)
TextArea.getPreferredSize(int, int)
through queue
public int getRows()
TextArea.getRows()
through queue
public int getScrollbarVisibility()
TextArea.getScrollbarVisibility()
through queue
public void replaceRange(String string, int i, int i1)
TextArea.replaceRange(String, int, int)
through queue
public void setColumns(int i)
TextArea.setColumns(int)
through queue
public void setRows(int i)
TextArea.setRows(int)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |