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

org.netbeans.jellytools.actions
Class ActionNoBlock

java.lang.Object
  extended by org.netbeans.jellytools.actions.Action
      extended by org.netbeans.jellytools.actions.ActionNoBlock
Direct Known Subclasses:
AddLocaleAction, CustomizeAction, DeleteAction, DocumentsAction, FindAction, PasteActionNoBlock, RenameAction, SaveAsTemplateAction

public class ActionNoBlock
extends Action

Ancestor class for all non-blocking actions.

This class re-implements all blocking calls from parent Action class to non-blocking call.

See Also:
Action

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jellytools.actions.Action
Action.Shortcut
 
Field Summary
 
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
ActionNoBlock(String menuPath, String popupPath)
          creates new non-blocking Action instance without API_MODE support
ActionNoBlock(String menuPath, String popupPath, Action.Shortcut shortcut)
          Deprecated. Use ActionNoBlock(String menuPath, String popupPath, KeyStroke keystroke) instead.
ActionNoBlock(String menuPath, String popupPath, Action.Shortcut[] shortcuts)
          Deprecated. Use ActionNoBlock(String menuPath, String popupPath, KeyStroke[] keystrokes) instead.
ActionNoBlock(String menuPath, String popupPath, KeyStroke keystroke)
          Creates new ActionNoBlock instance without API_MODE support.
ActionNoBlock(String menuPath, String popupPath, KeyStroke[] keystrokes)
          Creates new ActionNoBlock instance without API_MODE support.
ActionNoBlock(String menuPath, String popupPath, String systemActionClass)
          creates new non-blocking Action instance
ActionNoBlock(String menuPath, String popupPath, String systemActionClass, Action.Shortcut shortcut)
          Deprecated. Use ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke keystroke) instead.
ActionNoBlock(String menuPath, String popupPath, String systemActionClass, Action.Shortcut[] shortcuts)
          Deprecated. Use ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke[] keystrokes) instead.
ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke keystroke)
          Creates new ActionNoBlock instance.
ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke[] keystrokes)
          Creates new ActionNoBlock instance.
 
Method Summary
 void performAPI()
          performs action through API
 void performMenu()
          performs action through main menu
 void performPopup(org.netbeans.jemmy.operators.ComponentOperator component)
          performs action through popup menu
 void performPopup(Node[] nodes)
          performs action through popup menu
 void performPopup(OutlineNode node)
          performs action through popup menu
 void performShortcut()
          performs action through shortcut
 
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, performAPI, performMenu, performMenu, performMenu, performMenu, 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
 

Constructor Detail

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath)
creates new non-blocking Action instance without API_MODE support

Parameters:
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode shell is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     String systemActionClass)
creates new non-blocking Action instance

Parameters:
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode is not supported)
systemActionClass - String class name of SystemAction (use null value if API mode is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     Action.Shortcut[] shortcuts)
Deprecated. Use ActionNoBlock(String menuPath, String popupPath, KeyStroke[] keystrokes) instead.

creates new ActionNoBlock instance without API_MODE support

Parameters:
shortcuts - array of Shortcut instances (use null value if shortcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode shell is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     Action.Shortcut shortcut)
Deprecated. Use ActionNoBlock(String menuPath, String popupPath, KeyStroke keystroke) instead.

creates new ActionNoBlock instance without API_MODE support

Parameters:
shortcut - Shortcut (use null value if shortcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode shell is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     String systemActionClass,
                     Action.Shortcut[] shortcuts)
Deprecated. Use ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke[] keystrokes) instead.

creates new ActionNoBlock instance

Parameters:
shortcuts - array of Shortcut instances (use null value if shortcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode is not supported)
systemActionClass - String class name of SystemAction (use null value if API mode is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     String systemActionClass,
                     Action.Shortcut shortcut)
Deprecated. Use ActionNoBlock(String menuPath, String popupPath, String systemActionClass, KeyStroke keystroke) instead.

creates new ActionNoBlock instance

Parameters:
shortcut - Shortcut String (use null value if menu mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode is not supported)
systemActionClass - String class name of SystemAction (use null value if API mode is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     KeyStroke keystroke)
Creates new ActionNoBlock instance without API_MODE support.

Parameters:
keystroke - KeyStroke instance (use null value if shorcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode shell is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     KeyStroke[] keystrokes)
Creates new ActionNoBlock instance without API_MODE support.

Parameters:
keystrokes - array of KeyStroke instances (use null value if shorcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode shell is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     String systemActionClass,
                     KeyStroke keystroke)
Creates new ActionNoBlock instance.

Parameters:
keystroke - KeyStroke instance (use null value if shorcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode is not supported)
systemActionClass - String class name of SystemAction (use null value if API mode is not supported)

ActionNoBlock

public ActionNoBlock(String menuPath,
                     String popupPath,
                     String systemActionClass,
                     KeyStroke[] keystrokes)
Creates new ActionNoBlock instance.

Parameters:
keystrokes - array of KeyStroke instances (use null value if shorcut mode is not supported)
menuPath - action path in main menu (use null value if menu mode is not supported)
popupPath - action path in popup menu (use null value if popup mode is not supported)
systemActionClass - String class name of SystemAction (use null value if API mode is not supported)
Method Detail

performMenu

public void performMenu()
performs action through main menu

Overrides:
performMenu in class Action
Throws:
UnsupportedOperationException - when action does not support menu mode

performPopup

public void performPopup(Node[] nodes)
performs action through popup menu

Overrides:
performPopup in class Action
Parameters:
nodes - nodes to be action performed on
Throws:
UnsupportedOperationException - when action does not support popup mode

performPopup

public void performPopup(OutlineNode node)
performs action through popup menu

Overrides:
performPopup in class Action
Parameters:
node - node to be action performed on
Throws:
UnsupportedOperationException - when action does not support popup mode

performPopup

public void performPopup(org.netbeans.jemmy.operators.ComponentOperator component)
performs action through popup menu

Overrides:
performPopup in class Action
Parameters:
component - component to be action performed on
Throws:
UnsupportedOperationException - when action does not support popup mode

performAPI

public void performAPI()
performs action through API

Overrides:
performAPI in class Action
Throws:
UnsupportedOperationException - when action does not support API mode

performShortcut

public void performShortcut()
performs action through shortcut

Overrides:
performShortcut in class Action
Throws:
UnsupportedOperationException - when action does not support shortcut mode

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

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