org.gvsig.tools.undo.command.impl
Class CompoundCommand
java.lang.Object
org.gvsig.tools.undo.command.impl.AbstractCommand
org.gvsig.tools.undo.command.impl.CompoundCommand
- All Implemented Interfaces:
- Command, UndoRedoInfo
public class CompoundCommand
- extends AbstractCommand
Method Summary |
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. |
CompoundCommand
public CompoundCommand(String description)
isEmpty
public boolean isEmpty()
undo
public void undo()
throws UndoException
- Description copied from interface:
Command
- Undoes the following undoable command.
- Throws:
UndoException
- if there is an error performing de undo action
redo
public void redo()
throws RedoException
- Description copied from interface:
Command
- Re-does the following redoable command.
- Throws:
RedoException
- if there is an error performing de redo action
add
public void add(Command c)
getType
public int getType()
- Description copied from interface:
UndoRedoInfo
- Returns the type of action related to data: insertion, deletion or
update.
- Returns:
- the type of action related to data: insertion, deletion or update
Copyright © 2004-2011 gvSIG. All Rights Reserved.