Class NodeCutAction
java.lang.Object
javax.swing.AbstractAction
com.marginallyclever.donatello.actions.undoable.NodeCutAction
- All Implemented Interfaces:
com.marginallyclever.donatello.actions.EditorAction
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class NodeCutAction
extends AbstractAction
implements com.marginallyclever.donatello.actions.EditorAction
Performs an
NodeCopyAction
and then an NodeDeleteAction
.- Since:
- 2022-02-21
- Author:
- Dan Royer
- See Also:
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionNodeCutAction
(String name, NodeDeleteAction actionDeleteGraph, com.marginallyclever.donatello.actions.NodeCopyAction actionCopyGraph) Constructor for subclasses to call. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Called by theDonatello
when the editor believes it is time to confirm enable status.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
NodeCutAction
public NodeCutAction(String name, NodeDeleteAction actionDeleteGraph, com.marginallyclever.donatello.actions.NodeCopyAction actionCopyGraph) Constructor for subclasses to call.- Parameters:
name
- the name of this action visible on buttons and menu items.actionDeleteGraph
- the delete action to useactionCopyGraph
- the copy action to use
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
updateEnableStatus
public void updateEnableStatus()Description copied from interface:com.marginallyclever.donatello.actions.EditorAction
Called by theDonatello
when the editor believes it is time to confirm enable status.- Specified by:
updateEnableStatus
in interfacecom.marginallyclever.donatello.actions.EditorAction
-