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

org.netbeans.jellytools.actions
Class AttachWindowAction

java.lang.Object
  extended by org.netbeans.jellytools.actions.Action
      extended by org.netbeans.jellytools.actions.AttachWindowAction

public class AttachWindowAction
extends Action

Used to attach a window to a new position by IDE API. It also defines constants used for attaching.

Usage:

TopComponentOperator tco = new TopComponentOperator("Runtime");
// attach Runtime top component right to Execution View
new AttachWindowAction("Execution View", AttachWindowAction.RIGHT).perform(tco);
Thread.sleep(2000);
// attach Runtime top component back (next to Filesystems as the last tab)
new AttachWindowAction("Filesystems", AttachWindowAction.AS_LAST_TAB).perform(tco);
 

See Also:
Action, TopComponentOperator

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jellytools.actions.Action
Action.Shortcut
 
Field Summary
static String AS_LAST_TAB
           
static String BOTTOM
           
static String LEFT
           
static String RIGHT
           
static String TOP
           
 
Fields inherited from class org.netbeans.jellytools.actions.Action
AFTER_ACTION_WAIT_TIME, API_MODE, keystrokes, layerInstancePath, MENU_MODE, menuPath, POPUP_MODE, popupPath, SELECTION_WAIT_TIME, SHORTCUT_MODE, systemActionClass, WAIT_AFTER_SHORTCUT_TIMEOUT
 
Constructor Summary
AttachWindowAction(String targetTopComponentName, String side)
          Create new AttachWindowAction instance.
AttachWindowAction(TopComponentOperator targetTopComponentOperator, String side)
          Create new AttachWindowAction instance.
 
Method Summary
 void performAPI(org.netbeans.jemmy.operators.ComponentOperator compOperator)
          Attach given TopComponentOperator to position specified in constructor of action.
 void performAPI(Node[] nodes)
          Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.
 void performAPI(TopComponentOperator tco)
          Attaches given TopComponentOperator to position specified in constructor of action.
 void performMenu(Node[] nodes)
          Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.
 void performPopup(Node[] nodes)
          Throws UnsupportedOperationException because AttachWindowAction doesn't have popup representation on nodes.
 void performShortcut(Node[] nodes)
          Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.
 
Methods inherited from class org.netbeans.jellytools.actions.Action
getComparator, getDefaultMode, getKeyStrokes, getMenuPath, getPopupPath, getSystemActionClass, isEnabled, isEnabled, isEnabled, isEnabled, perform, perform, perform, perform, perform, performAPI, performAPI, performAPI, performMenu, performMenu, performMenu, performMenu, performPopup, performPopup, performPopup, performPopup, performShortcut, performShortcut, performShortcut, performShortcut, setComparator, setDefaultMode, testNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP

public static final String TOP
See Also:
Constant Field Values

BOTTOM

public static final String BOTTOM
See Also:
Constant Field Values

LEFT

public static final String LEFT
See Also:
Constant Field Values

RIGHT

public static final String RIGHT
See Also:
Constant Field Values

AS_LAST_TAB

public static final String AS_LAST_TAB
See Also:
Constant Field Values
Constructor Detail

AttachWindowAction

public AttachWindowAction(String targetTopComponentName,
                          String side)
Create new AttachWindowAction instance.

Parameters:
targetTopComponentName - name of top component defining a position where to attach top component
side - side where to attach top component (LEFT, RIGHT, TOP, BOTTOM, AS_LAST_TAB)

AttachWindowAction

public AttachWindowAction(TopComponentOperator targetTopComponentOperator,
                          String side)
Create new AttachWindowAction instance.

Parameters:
targetTopComponentOperator - operator of top component defining a position where to attach top component
side - side where to attach top component (LEFT, RIGHT, TOP, BOTTOM, AS_LAST_TAB)
Method Detail

performAPI

public void performAPI(org.netbeans.jemmy.operators.ComponentOperator compOperator)
Attach given TopComponentOperator to position specified in constructor of action. It also waits until given TopComponent is showing in the new position.

Overrides:
performAPI in class Action
Parameters:
compOperator - TopComponentOperator which should be attached to desired position

performAPI

public void performAPI(TopComponentOperator tco)
Attaches given TopComponentOperator to position specified in constructor of action. It also waits until given TopComponent is showing in the new position.

Parameters:
tco - TopComponentOperator which should be attached to desired position

performAPI

public void performAPI(Node[] nodes)
Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.

Overrides:
performAPI in class Action
Parameters:
nodes - array of nodes

performMenu

public void performMenu(Node[] nodes)
Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.

Overrides:
performMenu in class Action
Parameters:
nodes - array of nodes

performPopup

public void performPopup(Node[] nodes)
Throws UnsupportedOperationException because AttachWindowAction doesn't have popup representation on nodes.

Overrides:
performPopup in class Action
Parameters:
nodes - array of nodes

performShortcut

public void performShortcut(Node[] nodes)
Throws UnsupportedOperationException because AttachWindowAction doesn't have representation on nodes.

Overrides:
performShortcut in class Action
Parameters:
nodes - array of nodes

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

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