public class CompoundCommand extends AbstractCommand
DELETE, INSERT, UPDATE| Constructor and Description |
|---|
CompoundCommand(java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Command c) |
int |
getType()
Returns the type of action related to data: insertion, deletion or
update.
|
boolean |
isEmpty() |
void |
redo()
Re-does the following redoable command.
|
void |
undo()
Undoes the following undoable command.
|
getDate, getDescription, toString, updateDatepublic boolean isEmpty()
public void undo()
throws UndoException
CommandUndoException - if there is an error performing de undo actionpublic void redo()
throws RedoException
CommandRedoException - if there is an error performing de redo actionpublic void add(Command c)
public int getType()
UndoRedoInfo