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

org.netbeans.jellytools.widgets
Class LabelWidgetOperator

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

public class LabelWidgetOperator
extends WidgetOperator

Handle org.netbeans.api.visual.widget.LabelWidget object which represents widget with textual label.

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

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
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.
 
Method Summary
 String getLabel()
          Returns label of this widget.
 String toString()
          Returns class name of this widget, its location, bounds and label.
 
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
 
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

LabelWidgetOperator

public LabelWidgetOperator(LabelWidget widget)
Creates operator for given LabelWidget.

Parameters:
widget - LabelWidget to create operator for

LabelWidgetOperator

public LabelWidgetOperator(WidgetOperator parentWidgetOper,
                           int index)
Waits for index-th LabelWidget under given parent.

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

LabelWidgetOperator

public LabelWidgetOperator(WidgetOperator parentWidgetOper,
                           String label)
Waits for LabelWidget with specified label under given parent.

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

LabelWidgetOperator

public LabelWidgetOperator(WidgetOperator parentWidgetOper,
                           String label,
                           int index)
Waits for index-th LabelWidget with specified label under given parent.

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

LabelWidgetOperator

public LabelWidgetOperator(TopComponentOperator tco,
                           int index)
Waits for index-th LabelWidget with specified label under given TopComponent.

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

LabelWidgetOperator

public LabelWidgetOperator(TopComponentOperator tco,
                           String label)
Waits for index-th LabelWidget with specified label under given TopComponent.

Parameters:
tco - TopComponentOperator to find widgets in
label - label of widget

LabelWidgetOperator

public LabelWidgetOperator(TopComponentOperator tco,
                           String label,
                           int index)
Waits for index-th LabelWidget with specified label under given TopComponent.

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

getLabel

public String getLabel()
Returns label of this widget.

Returns:
label of this widget.

toString

public String toString()
Returns class name of this widget, its location, bounds and label.

Overrides:
toString in class WidgetOperator
Returns:
class name of this widget, its location, bounds and label.

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

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