Class HistoryBrowserInterface.NodeInsertedCommand
java.lang.Object
org.apache.batik.apps.svgbrowser.AbstractUndoableCommand
org.apache.batik.apps.svgbrowser.HistoryBrowserInterface.NodeInsertedCommand
- All Implemented Interfaces:
UndoableCommand
- Enclosing class:
HistoryBrowserInterface
Inserts the given node as a child of another.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NodeThe node to be appended.protected NodeThe node's new parent.protected NodeThe node's next sibling.Fields inherited from class AbstractUndoableCommand
name -
Constructor Summary
ConstructorsConstructorDescriptionNodeInsertedCommand(String commandName, Node parent, Node sibling, Node contextNode) Constructor. -
Method Summary
Methods inherited from class AbstractUndoableCommand
getName, setName
-
Field Details
-
newSibling
The node's next sibling. -
newParent
The node's new parent. -
contextNode
The node to be appended.
-
-
Constructor Details
-
NodeInsertedCommand
-
-
Method Details
-
execute
public void execute()Description copied from interface:UndoableCommandExecutes this command.- Specified by:
executein interfaceUndoableCommand- Overrides:
executein classAbstractUndoableCommand
-
undo
public void undo()Description copied from interface:UndoableCommandPerforms undo for this command.- Specified by:
undoin interfaceUndoableCommand- Overrides:
undoin classAbstractUndoableCommand
-
redo
public void redo()Description copied from interface:UndoableCommandPerforms redo for this command.- Specified by:
redoin interfaceUndoableCommand- Overrides:
redoin classAbstractUndoableCommand
-
shouldExecute
public boolean shouldExecute()Description copied from interface:UndoableCommandTests if the command can be executed.- Specified by:
shouldExecutein interfaceUndoableCommand- Overrides:
shouldExecutein classAbstractUndoableCommand- Returns:
- True if command should be executed
-