|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.model.ModelCommand
public abstract class ModelCommand
A command to record the state of an object before an undoable change.
The model implementation should create a ModelCommand for any undoable operation performed. Any mutator method should normally be undoable except loading a model from file.
| Constructor Summary | |
|---|---|
ModelCommand()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
execute()
Execute this command. |
abstract boolean |
isRedoable()
Determine whether the command can be redone once undone. |
abstract boolean |
isUndoable()
Determine whether the command can be undone. |
abstract void |
undo()
Undo this command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelCommand()
| Method Detail |
|---|
public abstract java.lang.Object execute()
public abstract boolean isUndoable()
public abstract boolean isRedoable()
public abstract void undo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |