org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.ChangeNodeValueCommand

public static class HistoryBrowserInterface.ChangeNodeValueCommand extends AbstractUndoableCommand

The Change Node Value command. Sets the given node value to the given node.
Field Summary
protected NodecontextNode
The node whose value changed.
protected StringnewValue
New node value.
Constructor Summary
ChangeNodeValueCommand(String commandName, Node contextNode, String newValue)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

contextNode

protected Node contextNode
The node whose value changed.

newValue

protected String newValue
New node value.

Constructor Detail

ChangeNodeValueCommand

public ChangeNodeValueCommand(String commandName, Node contextNode, String newValue)
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.