Class AddNode<T extends Node>
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
com.marginallyclever.ro3.apps.commands.AddNode<T>
- Type Parameters:
T- the type of node to add
- All Implemented Interfaces:
Serializable,UndoableEdit
Use a NodeFactory to add a new instance of a Node to
every selected Node.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
AddNode
Use a
NodeFactoryto add a new instance of aNodeto every selectedNode.- Parameters:
factory- the factory to use
-
AddNode
-
-
Method Details
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
redo
public void redo()- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit
-
execute
public void execute() -
addChildrenUsingFactory
-
addOne
-
undo
public void undo()- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
getFirstCreated
-