|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.gui.cmd.CommandAdapter
jimm.datavision.gui.cmd.CompoundCommand
public class CompoundCommand
A compound command holds a list of commands and allows their use as one single command.
| Field Summary | |
|---|---|
protected java.util.ArrayList |
commands
|
| Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter |
|---|
name |
| Constructor Summary | |
|---|---|
CompoundCommand(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
add(Command c)
|
int |
numCommands()
|
void |
perform()
Performs the command. |
void |
redo()
Redoes the command by calling CommandAdapter.perform(). |
void |
undo()
Undoes the command. |
| Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList commands
| Constructor Detail |
|---|
public CompoundCommand(java.lang.String name)
| Method Detail |
|---|
public void add(Command c)
public int numCommands()
public void perform()
CommandAdapter
perform in interface Commandperform in class CommandAdapterpublic void undo()
CommandAdapter
undo in interface Commandundo in class CommandAdapterpublic void redo()
CommandAdapterCommandAdapter.perform().
redo in interface Commandredo in class CommandAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||