Class HistoryBrowserInterface.CharDataModifiedCommand
java.lang.Object
org.apache.batik.apps.svgbrowser.AbstractUndoableCommand
org.apache.batik.apps.svgbrowser.HistoryBrowserInterface.CharDataModifiedCommand
- All Implemented Interfaces:
UndoableCommand
- Enclosing class:
HistoryBrowserInterface
Sets the node value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NodeThe node whose value changed.protected StringNew node value.protected StringOld node value.Fields inherited from class AbstractUndoableCommand
name -
Constructor Summary
ConstructorsConstructorDescriptionCharDataModifiedCommand(String commandName, Node contextNode, String oldValue, String newValue) Constructor. -
Method Summary
Methods inherited from class AbstractUndoableCommand
getName, setName
-
Field Details
-
contextNode
The node whose value changed. -
oldValue
Old node value. -
newValue
New node value.
-
-
Constructor Details
-
CharDataModifiedCommand
-
-
Method Details
-
execute
public void execute()Description copied from interface:UndoableCommandExecutes this command.- Specified by:
executein interfaceUndoableCommand- Overrides:
executein classAbstractUndoableCommand
-
undo
public void undo()Description copied from interface:UndoableCommandPerforms undo for this command.- Specified by:
undoin interfaceUndoableCommand- Overrides:
undoin classAbstractUndoableCommand
-
redo
public void redo()Description copied from interface:UndoableCommandPerforms redo for this command.- Specified by:
redoin interfaceUndoableCommand- Overrides:
redoin classAbstractUndoableCommand
-
shouldExecute
public boolean shouldExecute()Description copied from interface:UndoableCommandTests if the command can be executed.- Specified by:
shouldExecutein interfaceUndoableCommand- Overrides:
shouldExecutein classAbstractUndoableCommand- Returns:
- True if command should be executed
-