org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.RemoveChildCommand

public static class HistoryBrowserInterface.RemoveChildCommand extends AbstractUndoableCommand

The RemoveChild command. Removes the given child node from its given parent node.
Field Summary
protected NodechildNode
The node to be removed.
protected intindexInChildrenArray
Node's index in parent's children array.
protected NodeparentNode
Node's previous parent.
Constructor Summary
RemoveChildCommand(String commandName, Node parentNode, Node childNode)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

childNode

protected Node childNode
The node to be removed.

indexInChildrenArray

protected int indexInChildrenArray
Node's index in parent's children array.

parentNode

protected Node parentNode
Node's previous parent.

Constructor Detail

RemoveChildCommand

public RemoveChildCommand(String commandName, Node parentNode, Node childNode)
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.