public class LabelWidgetOperator extends WidgetOperator
Usage:
TopComponentOperator tco = new TopComponentOperator("My scene"); LabelWidgetOperator lwo0 = new LabelWidgetOperator(tco, "Label 0"); lwo0.performPopupAction("An action"); LabelWidgetOperator lwo1 = new LabelWidgetOperator(tco, "Label 1"); // drag from one widget to another lwo0.dragNDrop(lwo1);
WidgetOperator
WidgetOperator.WidgetChooser
org.netbeans.jemmy.operators.Operator.ComponentVisualizer, org.netbeans.jemmy.operators.Operator.DefaultPathParser, org.netbeans.jemmy.operators.Operator.DefaultStringComparator, org.netbeans.jemmy.operators.Operator.Finder, org.netbeans.jemmy.operators.Operator.MapAction, org.netbeans.jemmy.operators.Operator.MapBooleanAction, org.netbeans.jemmy.operators.Operator.MapByteAction, org.netbeans.jemmy.operators.Operator.MapCharacterAction, org.netbeans.jemmy.operators.Operator.MapDoubleAction, org.netbeans.jemmy.operators.Operator.MapFloatAction, org.netbeans.jemmy.operators.Operator.MapIntegerAction, org.netbeans.jemmy.operators.Operator.MapLongAction, org.netbeans.jemmy.operators.Operator.MapVoidAction, org.netbeans.jemmy.operators.Operator.NoBlockingAction, org.netbeans.jemmy.operators.Operator.PathParser, org.netbeans.jemmy.operators.Operator.StringComparator
widget
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
LabelWidgetOperator(LabelWidget widget)
Creates operator for given LabelWidget.
|
LabelWidgetOperator(TopComponentOperator tco,
int index)
Waits for index-th LabelWidget with specified label under given TopComponent.
|
LabelWidgetOperator(TopComponentOperator tco,
String label)
Waits for index-th LabelWidget with specified label under given TopComponent.
|
LabelWidgetOperator(TopComponentOperator tco,
String label,
int index)
Waits for index-th LabelWidget with specified label under given TopComponent.
|
LabelWidgetOperator(WidgetOperator parentWidgetOper,
int index)
Waits for index-th LabelWidget under given parent.
|
LabelWidgetOperator(WidgetOperator parentWidgetOper,
String label)
Waits for LabelWidget with specified label under given parent.
|
LabelWidgetOperator(WidgetOperator parentWidgetOper,
String label,
int index)
Waits for index-th LabelWidget with specified label under given parent.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Returns label of this widget.
|
String |
toString()
Returns class name of this widget, its location, bounds and label.
|
clickMouse, createOperator, dragNDrop, dragNDrop, dragNDrop, findWidget, getBounds, getCenter, getChildren, getLocation, getParent, getSceneOperator, getSource, getViewOperator, getWidget, performPopupAction, performPopupActionNoBlock, printDump
addOperatorPackage, addToDump, addToDump, copyEnvironment, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getDump, getEnvironmentOperator, getOutput, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getTimeouts, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setOutput, setPathParser, setProperties, setTimeouts, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
public LabelWidgetOperator(LabelWidget widget)
widget
- LabelWidget to create operator forpublic LabelWidgetOperator(WidgetOperator parentWidgetOper, int index)
parentWidgetOper
- parent WidgetOperatorindex
- index of widget to be foundpublic LabelWidgetOperator(WidgetOperator parentWidgetOper, String label)
parentWidgetOper
- parent WidgetOperatorlabel
- label of widgetpublic LabelWidgetOperator(WidgetOperator parentWidgetOper, String label, int index)
parentWidgetOper
- parent WidgetOperatorlabel
- label of widgetindex
- index of widget to be foundpublic LabelWidgetOperator(TopComponentOperator tco, int index)
tco
- TopComponentOperator to find widgets inindex
- index of widget to be foundpublic LabelWidgetOperator(TopComponentOperator tco, String label)
tco
- TopComponentOperator to find widgets inlabel
- label of widgetpublic LabelWidgetOperator(TopComponentOperator tco, String label, int index)
tco
- TopComponentOperator to find widgets inlabel
- label of widgetindex
- index of widget to be foundpublic String getLabel()
public String toString()
toString
in class WidgetOperator