|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jellytools.widgets.WidgetOperator
org.netbeans.jellytools.widgets.ConnectionWidgetOperator
public class ConnectionWidgetOperator
Handle org.netbeans.api.visual.widget.ConnectionWidget object which connects source and target widgets.
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| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.netbeans.jellytools.widgets.WidgetOperator |
|---|
WidgetOperator.WidgetChooser |
| Field Summary |
|---|
| Fields inherited from class org.netbeans.jellytools.widgets.WidgetOperator |
|---|
widget |
| Fields inherited from class org.netbeans.jemmy.operators.Operator |
|---|
CLASS_DPROP, TO_STRING_DPROP |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.netbeans.jellytools.widgets.WidgetOperator |
|---|
clickMouse, createOperator, dragNDrop, dragNDrop, dragNDrop, findWidget, getBounds, getCenter, getChildren, getLocation, getParent, getSceneOperator, getSource, getViewOperator, getWidget, performPopupAction, performPopupActionNoBlock, printDump, toString |
| Methods inherited from class org.netbeans.jemmy.operators.Operator |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionWidgetOperator(ConnectionWidget widget)
widget - ConnectionWidget to create operator for
public ConnectionWidgetOperator(WidgetOperator parentWidgetOper,
int index)
parentWidgetOper - parent WidgetOperatorindex - index of widget to be foundpublic ConnectionWidgetOperator(WidgetOperator parentWidgetOper)
parentWidgetOper - parent WidgetOperator
public ConnectionWidgetOperator(WidgetOperator sourceWidgetOper,
WidgetOperator targetWidgetOper)
sourceWidgetOper - source widgettargetWidgetOper - target widgetpublic ConnectionWidgetOperator(TopComponentOperator tco)
tco - TopComponentOperator to find widgets in
public ConnectionWidgetOperator(TopComponentOperator tco,
int index)
tco - TopComponentOperator to find widgets inindex - index of widget to be found| Method Detail |
|---|
public Point getSourceControlPoint()
public Point getTargetControlPoint()
public Point getControlPoint(int index)
index - index of requested control point
public List<Point> getControlPoints()
public WidgetOperator getSourceWidgetOperator()
public WidgetOperator getTargetWidgetOperator()
|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||