public class AttachWindowAction extends Action
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);
Action
,
TopComponentOperator
Action.Shortcut
Modifier and Type | Field and Description |
---|---|
static String |
AS_LAST_TAB |
static String |
BOTTOM |
static String |
LEFT |
static String |
RIGHT |
static String |
TOP |
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 and Description |
---|
AttachWindowAction(String targetTopComponentName,
String side)
Create new AttachWindowAction instance.
|
AttachWindowAction(TopComponentOperator targetTopComponentOperator,
String side)
Create new AttachWindowAction instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public static final String TOP
public static final String BOTTOM
public static final String LEFT
public static final String RIGHT
public static final String AS_LAST_TAB
public AttachWindowAction(String targetTopComponentName, String side)
targetTopComponentName
- name of top component defining a position
where to attach top componentside
- side where to attach top component (AttachWindowAction.LEFT
,
AttachWindowAction.RIGHT
, AttachWindowAction.TOP
, AttachWindowAction.BOTTOM
, AttachWindowAction.AS_LAST_TAB
)public AttachWindowAction(TopComponentOperator targetTopComponentOperator, String side)
targetTopComponentOperator
- operator of top component defining a position
where to attach top componentside
- side where to attach top component (AttachWindowAction.LEFT
,
AttachWindowAction.RIGHT
, AttachWindowAction.TOP
, AttachWindowAction.BOTTOM
, AttachWindowAction.AS_LAST_TAB
)public void performAPI(org.netbeans.jemmy.operators.ComponentOperator compOperator)
performAPI
in class Action
compOperator
- TopComponentOperator which should be attached to desired
positionpublic void performAPI(TopComponentOperator tco)
tco
- TopComponentOperator which should be attached to desired
positionpublic void performAPI(Node[] nodes)
performAPI
in class Action
nodes
- array of nodespublic void performMenu(Node[] nodes)
performMenu
in class Action
nodes
- array of nodespublic void performPopup(Node[] nodes)
performPopup
in class Action
nodes
- array of nodespublic void performShortcut(Node[] nodes)
performShortcut
in class Action
nodes
- array of nodes