org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.AppendChildCommand

public static class HistoryBrowserInterface.AppendChildCommand extends AbstractUndoableCommand

The AppendChild command. Appends the given node to the given parent node as a last child.
Field Summary
protected NodechildNode
The node to be appended.
protected NodeoldNextSibling
The node's previous next sibling.
protected NodeoldParentNode
The node's previous parent.
protected NodeparentNode
The node's new parent.
Constructor Summary
AppendChildCommand(String commandName, Node parentNode, Node childNode)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

childNode

protected Node childNode
The node to be appended.

oldNextSibling

protected Node oldNextSibling
The node's previous next sibling.

oldParentNode

protected Node oldParentNode
The node's previous parent.

parentNode

protected Node parentNode
The node's new parent.

Constructor Detail

AppendChildCommand

public AppendChildCommand(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.