| java.lang.Object org.netbeans.test.umllib.actions.DiagramElementAction
All known Subclasses: org.netbeans.test.umllib.actions.SelectAllSimilarElementAction, org.netbeans.test.umllib.actions.ShowChildrenOneLevelElementAction, org.netbeans.test.umllib.actions.LockEditElementAction, org.netbeans.test.umllib.actions.ResizeElementToContentsElementAction, org.netbeans.test.umllib.actions.SelectAllElementAction, org.netbeans.test.umllib.actions.HideParentsOneLevelElementAction, org.netbeans.test.umllib.actions.HideParentsAllLevelsElementAction, org.netbeans.test.umllib.actions.DeleteElementAction, org.netbeans.test.umllib.actions.BorderColorElementAction, org.netbeans.test.umllib.actions.LabelsNameElementAction, org.netbeans.test.umllib.actions.DeleteOperationAction, org.netbeans.test.umllib.actions.InsertAttributeAction, org.netbeans.test.umllib.actions.ShowParentsOneLevelElementAction, org.netbeans.test.umllib.actions.HideChildrenAllLevelsElementAction, org.netbeans.test.umllib.actions.CopyElementAction, org.netbeans.test.umllib.actions.HideChildrenOneLevelElementAction, org.netbeans.test.umllib.actions.FontColorElementAction, org.netbeans.test.umllib.actions.InvertSelectionElementAction, org.netbeans.test.umllib.actions.ShowParentsAllLevelsElementAction, org.netbeans.test.umllib.actions.FontElementAction, org.netbeans.test.umllib.actions.DeleteAttributeAction, org.netbeans.test.umllib.actions.ShowChildrenAllLevelsElementAction, org.netbeans.test.umllib.actions.BackgroundColorElementAction, org.netbeans.test.umllib.actions.InsertOperationAction, org.netbeans.test.umllib.actions.CutElementAction, org.netbeans.test.umllib.actions.DrawingAreaPasteAction, org.netbeans.test.umllib.actions.PasteElementAction,
DiagramElementAction | public class DiagramElementAction (Code) | | This is basic class for all diagram actions. Derived from
corresponding jelly Action class
author: Alexei Mokeev |
Constructor Summary | |
public | DiagramElementAction(String menuPath, String popupPath) | public | DiagramElementAction(String menuPath, String popupPath, String systemActionClass) | public | DiagramElementAction(String menuPath, String popupPath, Shortcut[] shortcuts) | public | DiagramElementAction(String menuPath, String popupPath, Shortcut shortcut) | public | DiagramElementAction(String menuPath, String popupPath, String systemActionClass, Shortcut[] shortcuts) | public | DiagramElementAction(String menuPath, String popupPath, String systemActionClass, Shortcut shortcut) | public | DiagramElementAction() |
AFTER_ACTION_WAIT_TIME | final protected static long AFTER_ACTION_WAIT_TIME(Code) | | sleep time after action execution
|
API_MODE | final public static int API_MODE(Code) | | through API action performing mode
|
MENU_MODE | final public static int MENU_MODE(Code) | | through menu action performing mode
|
POPUP_MODE | final public static int POPUP_MODE(Code) | | through popup menu action performing mode
|
SELECTION_WAIT_TIME | final protected static long SELECTION_WAIT_TIME(Code) | | sleep time between elements selection and action execution
|
SHORTCUT_MODE | final public static int SHORTCUT_MODE(Code) | | through shortcut action performing mode
|
WAIT_AFTER_SHORTCUT_TIMEOUT | final protected static long WAIT_AFTER_SHORTCUT_TIMEOUT(Code) | | sleep time between sequence of shortcuts
|
menuPath | protected String menuPath(Code) | | menu path of current action or null when MENU_MODE is not supported
|
popupPath | protected String popupPath(Code) | | popup menu path of current action or null when POPUP_MODE is not supported
|
shortcuts | protected Shortcut[] shortcuts(Code) | | array of shortcuts of current action or null when SHORTCUT_MODE is not supported
|
systemActionClass | protected Class systemActionClass(Code) | | SystemDiagramElementAction class of current action or null when API_MODE is not supported
|
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath)(Code) | | creates new DiagramElementAction instance without API_MODE and SHORTCUT_MODE support
Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode shell is not supported) |
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath, String systemActionClass)(Code) | | creates new DiagramElementAction instance without SHORTCUT_MODE support
Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode is not supported) Parameters: systemActionClass - String class name of SystemDiagramElementAction (use null value if API mode is not supported) |
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath, Shortcut[] shortcuts)(Code) | | creates new DiagramElementAction instance without API_MODE support
Parameters: shortcuts - array of Shortcut instances (use null value if shorcut mode is not supported) Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode shell is not supported) |
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath, Shortcut shortcut)(Code) | | creates new DiagramElementAction instance without API_MODE support
Parameters: shortcut - Shortcut (use null value if menu mode is not supported) Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode shell is not supported) |
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath, String systemActionClass, Shortcut[] shortcuts)(Code) | | creates new DiagramElementAction instance
Parameters: shortcuts - array of Shortcut instances (use null value if shortcut mode is not supported) Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode is not supported) Parameters: systemActionClass - String class name of SystemDiagramElementAction (use null value if API mode is not supported) |
DiagramElementAction | public DiagramElementAction(String menuPath, String popupPath, String systemActionClass, Shortcut shortcut)(Code) | | creates new DiagramElementAction instance
Parameters: shortcut - Shortcut String (use null value if menu mode is not supported) Parameters: menuPath - action path in main menu (use null value if menu mode is not supported) Parameters: popupPath - action path in popup menu (use null value if popup mode is not supported) Parameters: systemActionClass - String class name of SystemDiagramElementAction (use null value if API mode is not supported) |
DiagramElementAction | public DiagramElementAction()(Code) | | Creates a new instance of DiagramElementAction
|
getComparator | public StringComparator getComparator()(Code) | | Gets comparator set for this action instance.
comparator set for this action instance. |
performMenu | public void performMenu(Actionable[] elements)(Code) | | performs action through main menu
Parameters: elements - elements to be action performed on throws: UnsupportedOperationException - when action does not support shortcut mode |
performPopup | public void performPopup(Actionable element)(Code) | | performs action through popup menu
Parameters: element - node to be action performed on throws: UnsupportedOperationException - when action does not support popup mode |
performPopup | public void performPopup(Actionable[] elements)(Code) | | performs action through popup menu
Parameters: elements - elements to be action performed on throws: UnsupportedOperationException - when action does not support popup mode |
performPopupNoBlock | public void performPopupNoBlock(Actionable element)(Code) | | performs action through popup menu
Parameters: element - node to be action performed on throws: UnsupportedOperationException - when action does not support popup mode |
performPopupNoBlock | public void performPopupNoBlock(Actionable[] elements)(Code) | | performs action through popup menu
Parameters: elements - elements to be action performed on throws: UnsupportedOperationException - when action does not support popup mode |
performShortcut | public void performShortcut(Actionable element)(Code) | | performs action through shortcut
Parameters: element - node to be action performed on throws: UnsupportedOperationException - when action does not support shortcut mode |
performShortcut | public void performShortcut(Actionable[] elements)(Code) | | performs action through shortcut
Parameters: elements - elements to be action performed on throws: UnsupportedOperationException - when action does not support shortcut mode |
setComparator | public void setComparator(StringComparator comparator)(Code) | | Sets comparator fot this action. Comparator is used for all actions
after this method is called.
Parameters: comparator - new comparator to be set (e.g.new Operator.DefaultStringComparator(true, true);to search string item exactly and case sensitive) |
|
|