public class TextAreaOperator extends TextComponentOperator implements Timeoutable, Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
TextAreaOperator.TextAreaByTextFinder
Allows to find component by text.
|
static class |
TextAreaOperator.TextAreaFinder
Checks component type.
|
TextComponentOperator.TextComponentByTextFinder, TextComponentOperator.TextComponentFinder
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEXT_DPROP
Identifier for a "text" property.
|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
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,
java.lang.String text)
Constructor.
|
TextAreaOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor.
|
TextAreaOperator(java.awt.TextArea b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.TextArea |
findTextArea(java.awt.Container cont,
ComponentChooser chooser)
Searches for the first TextArea in a container.
|
static java.awt.TextArea |
findTextArea(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches TextArea in a container.
|
static java.awt.TextArea |
findTextArea(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Searches TextArea by text.
|
static java.awt.TextArea |
findTextArea(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Searches TextArea by text.
|
int |
getColumns()
Maps
TextArea.getColumns() through queue |
java.util.Hashtable |
getDump()
Returns information about component.
|
java.awt.Dimension |
getMinimumSize(int i,
int i1)
Maps
TextArea.getMinimumSize(int, int) through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
java.awt.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(java.lang.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 java.awt.TextArea |
waitTextArea(java.awt.Container cont,
ComponentChooser chooser)
Waits 0'th TextArea in container.
|
static java.awt.TextArea |
waitTextArea(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits TextArea in container.
|
static java.awt.TextArea |
waitTextArea(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Waits TextArea by text.
|
static java.awt.TextArea |
waitTextArea(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Waits TextArea by text.
|
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
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterXForClick, getCenterY, getCenterYForClick, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
public static final java.lang.String TEXT_DPROP
getDump()
,
Constant Field Valuespublic TextAreaOperator(java.awt.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, java.lang.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, java.lang.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)
public static java.awt.TextArea findTextArea(java.awt.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 java.awt.TextArea findTextArea(java.awt.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 java.awt.TextArea findTextArea(java.awt.Container cont, java.lang.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 java.awt.TextArea findTextArea(java.awt.Container cont, java.lang.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 java.awt.TextArea waitTextArea(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.public static java.awt.TextArea waitTextArea(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.TextArea waitTextArea(java.awt.Container cont, java.lang.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 java.awt.TextArea waitTextArea(java.awt.Container cont, java.lang.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 java.util.Hashtable getDump()
ComponentOperator
getDump
in class TextComponentOperator
public int getColumns()
TextArea.getColumns()
through queuepublic java.awt.Dimension getMinimumSize(int i, int i1)
TextArea.getMinimumSize(int, int)
through queuepublic java.awt.Dimension getPreferredSize(int i, int i1)
TextArea.getPreferredSize(int, int)
through queuepublic int getRows()
TextArea.getRows()
through queuepublic int getScrollbarVisibility()
TextArea.getScrollbarVisibility()
through queuepublic void replaceRange(java.lang.String string, int i, int i1)
TextArea.replaceRange(String, int, int)
through queuepublic void setColumns(int i)
TextArea.setColumns(int)
through queuepublic void setRows(int i)
TextArea.setRows(int)
through queue