Outputable
, Timeoutable
public class TextFieldOperator extends TextComponentOperator implements Timeoutable, Outputable
Timeouts
Modifier and Type | Class | Description |
---|---|---|
static class |
TextFieldOperator.TextFieldByTextFinder |
Allows to find component by text.
|
static class |
TextFieldOperator.TextFieldFinder |
Checks component type.
|
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
TextComponentOperator.TextComponentByTextFinder, TextComponentOperator.TextComponentFinder
Modifier and Type | Field | 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 | Description |
---|---|
TextFieldOperator(java.awt.TextField b) |
Constructor.
|
TextFieldOperator(ContainerOperator cont) |
Constructor.
|
TextFieldOperator(ContainerOperator cont,
int index) |
Constructor.
|
TextFieldOperator(ContainerOperator cont,
java.lang.String text) |
Constructor.
|
TextFieldOperator(ContainerOperator cont,
java.lang.String text,
int index) |
Constructor.
|
TextFieldOperator(ContainerOperator cont,
ComponentChooser chooser) |
Constructs a TextFieldOperator object.
|
TextFieldOperator(ContainerOperator cont,
ComponentChooser chooser,
int index) |
Constructs a TextFieldOperator object.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addActionListener(java.awt.event.ActionListener actionListener) |
Maps
TextField.addActionListener(ActionListener) through queue |
boolean |
echoCharIsSet() |
Maps
TextField.echoCharIsSet() through queue |
static java.awt.TextField |
findTextField(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs) |
Searches TextField by text.
|
static java.awt.TextField |
findTextField(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index) |
Searches TextField by text.
|
static java.awt.TextField |
findTextField(java.awt.Container cont,
ComponentChooser chooser) |
Searches for the first TextField in a container.
|
static java.awt.TextField |
findTextField(java.awt.Container cont,
ComponentChooser chooser,
int index) |
Searches TextField in a container.
|
int |
getColumns() |
Maps
TextField.getColumns() through queue |
java.util.Hashtable |
getDump() |
Returns information about component.
|
char |
getEchoChar() |
Maps
TextField.getEchoChar() through queue |
java.awt.Dimension |
getMinimumSize(int i) |
Maps
TextField.getMinimumSize(int) through queue |
TestOut |
getOutput() |
Returns print output streams or writers.
|
java.awt.Dimension |
getPreferredSize(int i) |
Maps
TextField.getPreferredSize(int) through queue |
Timeouts |
getTimeouts() |
Return current timeouts.
|
void |
removeActionListener(java.awt.event.ActionListener actionListener) |
Maps
TextField.removeActionListener(ActionListener) through queue |
void |
setColumns(int i) |
Maps
TextField.setColumns(int) through queue |
void |
setOutput(TestOut out) |
Defines print output streams or writers.
|
void |
setTimeouts(Timeouts timeouts) |
Defines current timeouts.
|
static java.awt.TextField |
waitTextField(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs) |
Waits TextField by text.
|
static java.awt.TextField |
waitTextField(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index) |
Waits TextField by text.
|
static java.awt.TextField |
waitTextField(java.awt.Container cont,
ComponentChooser chooser) |
Waits 0'th TextField in container.
|
static java.awt.TextField |
waitTextField(java.awt.Container cont,
ComponentChooser chooser,
int index) |
Waits TextField in container.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
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
public static final java.lang.String TEXT_DPROP
getDump()
,
Constant Field Valuespublic TextFieldOperator(java.awt.TextField b)
b
- The java.awt.TextField
managed by
this instance.public TextFieldOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public TextFieldOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public TextFieldOperator(ContainerOperator cont, java.lang.String text, int index)
index+1
'th
java.awt.TextField
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 textField.text
- TextField text.index
- Ordinal component index. The first component has index
0.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextFieldOperator(ContainerOperator cont, java.lang.String text)
java.awt.TextField
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 textField.text
- TextField text.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextFieldOperator(ContainerOperator cont, int index)
cont
- The operator for a container containing the sought for textField.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public TextFieldOperator(ContainerOperator cont)
cont
- The operator for a container containing the sought for textField.Operator.isCaptionEqual(String, String, boolean, boolean)
public static java.awt.TextField findTextField(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.TextField findTextField(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.TextField findTextField(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- TextField 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.TextField findTextField(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- TextField 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.TextField waitTextField(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.TextField waitTextField(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.TextField waitTextField(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- TextField 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.TextField waitTextField(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- TextField 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 void addActionListener(java.awt.event.ActionListener actionListener)
TextField.addActionListener(ActionListener)
through queuepublic boolean echoCharIsSet()
TextField.echoCharIsSet()
through queuepublic int getColumns()
TextField.getColumns()
through queuepublic char getEchoChar()
TextField.getEchoChar()
through queuepublic java.awt.Dimension getMinimumSize(int i)
TextField.getMinimumSize(int)
through queuepublic java.awt.Dimension getPreferredSize(int i)
TextField.getPreferredSize(int)
through queuepublic void removeActionListener(java.awt.event.ActionListener actionListener)
TextField.removeActionListener(ActionListener)
through queuepublic void setColumns(int i)
TextField.setColumns(int)
through queue