public class LabelOperator extends ComponentOperator
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
LabelOperator.LabelByLabelFinder
Allows to find component by LabelByLabelFinder.
|
static class |
LabelOperator.LabelFinder
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
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 |
---|
LabelOperator(ContainerOperator cont)
Constructor.
|
LabelOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a LabelOperator object.
|
LabelOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a LabelOperator object.
|
LabelOperator(ContainerOperator cont,
int index)
Constructor.
|
LabelOperator(ContainerOperator cont,
java.lang.String text)
Constructor.
|
LabelOperator(ContainerOperator cont,
java.lang.String text,
int index)
Constructor.
|
LabelOperator(java.awt.Label b)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Label |
findLabel(java.awt.Container cont,
ComponentChooser chooser)
Searches Label in container.
|
static java.awt.Label |
findLabel(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches Label in container.
|
static java.awt.Label |
findLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Searches Label by text.
|
static java.awt.Label |
findLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Searches Label by text.
|
int |
getAlignment()
Maps
Label.getAlignment() through queue |
java.util.Hashtable |
getDump()
Returns information about component.
|
java.lang.String |
getText()
Maps
Label.getText() through queue |
void |
setAlignment(int i)
Maps
Label.setAlignment(int) through queue |
void |
setText(java.lang.String string)
Maps
Label.setText(String) through queue |
static java.awt.Label |
waitLabel(java.awt.Container cont,
ComponentChooser chooser)
Waits Label in container.
|
static java.awt.Label |
waitLabel(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits Label in container.
|
static java.awt.Label |
waitLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs)
Waits Label by text.
|
static java.awt.Label |
waitLabel(java.awt.Container cont,
java.lang.String text,
boolean ce,
boolean ccs,
int index)
Waits Label by text.
|
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, copyEnvironment, 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, getOutput, getParent, getPreferredSize, getSize, getSize, getSource, getTimeouts, 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, setOutput, setSize, setSize, setTimeouts, 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 LabelOperator(java.awt.Label b)
b
- a componentpublic LabelOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public LabelOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public LabelOperator(ContainerOperator cont, java.lang.String text, int index)
cont
- a containertext
- Button text.index
- Ordinal component index.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public LabelOperator(ContainerOperator cont, java.lang.String text)
cont
- a containertext
- Button text.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public LabelOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.TimeoutExpiredException
public LabelOperator(ContainerOperator cont)
cont
- a containerTimeoutExpiredException
public static java.awt.Label findLabel(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.public static java.awt.Label findLabel(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.public static java.awt.Label findLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
public static java.awt.Label findLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.Operator.isCaptionEqual(String, String, boolean, boolean)
public static java.awt.Label waitLabel(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.index
- Ordinal component index.TimeoutExpiredException
public static java.awt.Label waitLabel(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- a component chooser specifying searching criteria.TimeoutExpiredException
public static java.awt.Label waitLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int index)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.index
- Ordinal component index.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public static java.awt.Label waitLabel(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs)
cont
- Container to search component in.text
- Component text.ce
- Compare text exactly.ccs
- Compare text case sensitively.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public java.util.Hashtable getDump()
ComponentOperator
getDump
in class ComponentOperator
public int getAlignment()
Label.getAlignment()
through queuepublic java.lang.String getText()
Label.getText()
through queuepublic void setAlignment(int i)
Label.setAlignment(int)
through queuepublic void setText(java.lang.String string)
Label.setText(String)
through queue