|
||||||||||
| 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 String |
name
The command name. |
| Constructor Summary | |
|---|---|
AbstractUndoableCommand()
|
|
| Method Summary | |
|---|---|
void |
execute()
Executes this command. |
String |
getName()
Gets the command name. |
void |
redo()
Performs redo for this command. |
void |
setName(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 String name
| Constructor Detail |
|---|
public AbstractUndoableCommand()
| Method Detail |
|---|
public void execute()
UndoableCommand
execute in interface UndoableCommandpublic void undo()
UndoableCommand
undo in interface UndoableCommandpublic void redo()
UndoableCommand
redo in interface UndoableCommandpublic String getName()
UndoableCommand
getName in interface UndoableCommandpublic void setName(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 | |||||||||