Package org.apache.batik.apps.svgbrowser
Interface UndoableCommand
-
- All Known Implementing Classes:
AbstractCompoundCommand,AbstractUndoableCommand,HistoryBrowserInterface.AppendChildCommand,HistoryBrowserInterface.AttributeAddedCommand,HistoryBrowserInterface.AttributeModifiedCommand,HistoryBrowserInterface.AttributeRemovedCommand,HistoryBrowserInterface.ChangeNodeValueCommand,HistoryBrowserInterface.CharDataModifiedCommand,HistoryBrowserInterface.CompoundUpdateCommand,HistoryBrowserInterface.InsertNodeBeforeCommand,HistoryBrowserInterface.NodeInsertedCommand,HistoryBrowserInterface.NodeRemovedCommand,HistoryBrowserInterface.RemoveChildCommand,HistoryBrowserInterface.ReplaceChildCommand
public interface UndoableCommandThe undoable/redoable command.- Version:
- $Id: UndoableCommand.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Executes this command.java.lang.StringgetName()Gets the command name.voidredo()Performs redo for this command.booleanshouldExecute()Tests if the command can be executed.voidundo()Performs undo for this command.
-
-
-
Method Detail
-
execute
void execute()
Executes this command.
-
undo
void undo()
Performs undo for this command.
-
redo
void redo()
Performs redo for this command.
-
getName
java.lang.String getName()
Gets the command name.
-
shouldExecute
boolean shouldExecute()
Tests if the command can be executed.- Returns:
- True if command should be executed
-
-