org.gvsig.tools.undo.command.impl
Class CompoundCommand

java.lang.Object
  extended by org.gvsig.tools.undo.command.impl.AbstractCommand
      extended by org.gvsig.tools.undo.command.impl.CompoundCommand
All Implemented Interfaces:
Command, UndoRedoInfo

public class CompoundCommand
extends AbstractCommand


Field Summary
 
Fields inherited from interface org.gvsig.tools.undo.UndoRedoInfo
DELETE, INSERT, UPDATE
 
Constructor Summary
CompoundCommand(String description)
           
 
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.
 
Methods inherited from class org.gvsig.tools.undo.command.impl.AbstractCommand
getDate, getDescription, toString, updateDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundCommand

public CompoundCommand(String description)
Method Detail

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.