org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.CharDataModifiedCommand

public static class HistoryBrowserInterface.CharDataModifiedCommand extends AbstractUndoableCommand

Sets the node value.
Field Summary
protected NodecontextNode
The node whose value changed.
protected StringnewValue
New node value.
protected StringoldValue
Old node value.
Constructor Summary
CharDataModifiedCommand(String commandName, Node contextNode, String oldValue, 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.

oldValue

protected String oldValue
Old node value.

Constructor Detail

CharDataModifiedCommand

public CharDataModifiedCommand(String commandName, Node contextNode, String oldValue, String newValue)
Constructor.

Parameters: commandName The command name contextNode Context node oldValue Old node value newValue New node value

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.