org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.NodeRemovedCommand

public static class HistoryBrowserInterface.NodeRemovedCommand extends AbstractUndoableCommand

Removes the node from its parent node.
Field Summary
protected NodecontextNode
The node to be appended.
protected NodeoldParent
The node's new parent.
protected NodeoldSibling
The node's old sibling.
Constructor Summary
NodeRemovedCommand(String commandName, Node oldParent, Node oldSibling, Node contextNode)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

contextNode

protected Node contextNode
The node to be appended.

oldParent

protected Node oldParent
The node's new parent.

oldSibling

protected Node oldSibling
The node's old sibling.

Constructor Detail

NodeRemovedCommand

public NodeRemovedCommand(String commandName, Node oldParent, Node oldSibling, 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.