org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.NodeInsertedCommand

public static class HistoryBrowserInterface.NodeInsertedCommand extends AbstractUndoableCommand

Inserts the given node as a child of another.
Field Summary
protected NodecontextNode
The node to be appended.
protected NodenewParent
The node's new parent.
protected NodenewSibling
The node's next sibling.
Constructor Summary
NodeInsertedCommand(String commandName, Node parent, Node sibling, Node contextNode)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

contextNode

protected Node contextNode
The node to be appended.

newParent

protected Node newParent
The node's new parent.

newSibling

protected Node newSibling
The node's next sibling.

Constructor Detail

NodeInsertedCommand

public NodeInsertedCommand(String commandName, Node parent, Node sibling, Node contextNode)
Constructor.

Method Detail

execute

public void execute()

redo

public void redo()

shouldExecute

public boolean shouldExecute()

undo

public void undo()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.