|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.apps.svgbrowser.AbstractUndoableCommand
public abstract class AbstractUndoableCommand
Represents abstract undoable/redoable command. Concrete commands should extend this class
Field Summary | |
---|---|
protected java.lang.String |
name
The command name. |
Constructor Summary | |
---|---|
AbstractUndoableCommand()
|
Method Summary | |
---|---|
void |
execute()
Executes this command. |
java.lang.String |
getName()
Gets the command name. |
void |
redo()
Performs redo for this command. |
void |
setName(java.lang.String name)
Sets the command name. |
boolean |
shouldExecute()
Tests if the command can be executed. |
void |
undo()
Performs undo for this command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
public AbstractUndoableCommand()
Method Detail |
---|
public void execute()
UndoableCommand
execute
in interface UndoableCommand
public void undo()
UndoableCommand
undo
in interface UndoableCommand
public void redo()
UndoableCommand
redo
in interface UndoableCommand
public java.lang.String getName()
UndoableCommand
getName
in interface UndoableCommand
public void setName(java.lang.String name)
name
- Name to setpublic boolean shouldExecute()
UndoableCommand
shouldExecute
in interface UndoableCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |