public class ConnectionWidgetOperator 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 to make connection lwo0.dragNDrop(lwo1); ConnectionWidgetOperator cwo = new ConnectionWidgetOperator(lwo0, lwo1); Point sourceControlPoint = cwo.getSourceControlPoint(); Point targetControlPoint = cwo.getTargetControlPoint();
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 |
---|
ConnectionWidgetOperator(ConnectionWidget widget)
Creates operator for given ConnectionWidget.
|
ConnectionWidgetOperator(TopComponentOperator tco)
Waits for ConnectionWidget under given TopComponent.
|
ConnectionWidgetOperator(TopComponentOperator tco,
int index)
Waits for index-th ConnectionWidget under given TopComponent.
|
ConnectionWidgetOperator(WidgetOperator parentWidgetOper)
Waits for index-th ConnectionWidget under given parent Widget.
|
ConnectionWidgetOperator(WidgetOperator parentWidgetOper,
int index)
Waits for index-th ConnectionWidget under given parent Widget.
|
ConnectionWidgetOperator(WidgetOperator sourceWidgetOper,
WidgetOperator targetWidgetOper)
Waits for ConnectionWidget with given source and target widgets.
|
Modifier and Type | Method and Description |
---|---|
Point |
getControlPoint(int index)
Returns index-th control point.
|
List<Point> |
getControlPoints()
Returns list of control points.
|
Point |
getSourceControlPoint()
Returns control point of source widget.
|
WidgetOperator |
getSourceWidgetOperator()
Returns WidgetOperator of source widget of this connection.
|
Point |
getTargetControlPoint()
Returns control point of target widget.
|
WidgetOperator |
getTargetWidgetOperator()
Returns WidgetOperator of target widget of this connection.
|
clickMouse, createOperator, dragNDrop, dragNDrop, dragNDrop, findWidget, getBounds, getCenter, getChildren, getLocation, getParent, getSceneOperator, getSource, getViewOperator, getWidget, performPopupAction, performPopupActionNoBlock, printDump, toString
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 ConnectionWidgetOperator(ConnectionWidget widget)
widget
- ConnectionWidget to create operator forpublic ConnectionWidgetOperator(WidgetOperator parentWidgetOper, int index)
parentWidgetOper
- parent WidgetOperatorindex
- index of widget to be foundpublic ConnectionWidgetOperator(WidgetOperator parentWidgetOper)
parentWidgetOper
- parent WidgetOperatorpublic ConnectionWidgetOperator(WidgetOperator sourceWidgetOper, WidgetOperator targetWidgetOper)
sourceWidgetOper
- source widgettargetWidgetOper
- target widgetpublic ConnectionWidgetOperator(TopComponentOperator tco)
tco
- TopComponentOperator to find widgets inpublic ConnectionWidgetOperator(TopComponentOperator tco, int index)
tco
- TopComponentOperator to find widgets inindex
- index of widget to be foundpublic Point getSourceControlPoint()
public Point getTargetControlPoint()
public Point getControlPoint(int index)
index
- index of requested control pointpublic List<Point> getControlPoints()
List<Point>
of control pointspublic WidgetOperator getSourceWidgetOperator()
public WidgetOperator getTargetWidgetOperator()