org.netbeans.modules.jellytools.platform/3 3.13

org.netbeans.jellytools.widgets
Class ConnectionWidgetOperator

java.lang.Object
  extended by org.netbeans.jemmy.operators.Operator
      extended by org.netbeans.jellytools.widgets.WidgetOperator
          extended by org.netbeans.jellytools.widgets.ConnectionWidgetOperator
All Implemented Interfaces:
org.netbeans.jemmy.Outputable, org.netbeans.jemmy.Timeoutable

public class ConnectionWidgetOperator
extends WidgetOperator

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();
 

See Also:
WidgetOperator

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jellytools.widgets.WidgetOperator
WidgetOperator.WidgetChooser
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator
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
 
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

ConnectionWidgetOperator

public ConnectionWidgetOperator(ConnectionWidget widget)
Creates operator for given ConnectionWidget.

Parameters:
widget - ConnectionWidget to create operator for

ConnectionWidgetOperator

public ConnectionWidgetOperator(WidgetOperator parentWidgetOper,
                                int index)
Waits for index-th ConnectionWidget under given parent Widget.

Parameters:
parentWidgetOper - parent WidgetOperator
index - index of widget to be found

ConnectionWidgetOperator

public ConnectionWidgetOperator(WidgetOperator parentWidgetOper)
Waits for index-th ConnectionWidget under given parent Widget.

Parameters:
parentWidgetOper - parent WidgetOperator

ConnectionWidgetOperator

public ConnectionWidgetOperator(WidgetOperator sourceWidgetOper,
                                WidgetOperator targetWidgetOper)
Waits for ConnectionWidget with given source and target widgets.

Parameters:
sourceWidgetOper - source widget
targetWidgetOper - target widget

ConnectionWidgetOperator

public ConnectionWidgetOperator(TopComponentOperator tco)
Waits for ConnectionWidget under given TopComponent.

Parameters:
tco - TopComponentOperator to find widgets in

ConnectionWidgetOperator

public ConnectionWidgetOperator(TopComponentOperator tco,
                                int index)
Waits for index-th ConnectionWidget under given TopComponent.

Parameters:
tco - TopComponentOperator to find widgets in
index - index of widget to be found
Method Detail

getSourceControlPoint

public Point getSourceControlPoint()
Returns control point of source widget.

Returns:
Point representing control point of source widget.

getTargetControlPoint

public Point getTargetControlPoint()
Returns control point of target widget.

Returns:
Point representing control point of target widget.

getControlPoint

public Point getControlPoint(int index)
Returns index-th control point.

Parameters:
index - index of requested control point
Returns:
Point representing control point of source widget.

getControlPoints

public List<Point> getControlPoints()
Returns list of control points.

Returns:
List of control points

getSourceWidgetOperator

public WidgetOperator getSourceWidgetOperator()
Returns WidgetOperator of source widget of this connection.

Returns:
WidgetOperator instance of source widget of this connection.

getTargetWidgetOperator

public WidgetOperator getTargetWidgetOperator()
Returns WidgetOperator of target widget of this connection.

Returns:
WidgetOperator instance of target widget of this connection.

org.netbeans.modules.jellytools.platform/3 3.13

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.