Class MoveNode
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
com.marginallyclever.ro3.apps.commands.MoveNode
- All Implemented Interfaces:
Serializable
,UndoableEdit
Move
Node
s from their current parent to another parent.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
MoveNode
Move a list of nodes to a new parent.- Parameters:
selection
- the list of nodes to movenewParent
- the new parentinsertStartingAt
- -1 to add to the end, otherwise the index to insert at.
-
-
Method Details
-
getPresentationName
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
-
execute
public void execute() -
undo
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
reverse
public void reverse()
-