com.partnersoft.gadgets
Interface UndoableCommand

All Known Implementing Classes:
CogDeleteObjectsCommand, CogSetObjectCommand, CogSetObjectsCommand, UndoableWithSideEffects

public interface UndoableCommand

An undoable/redoable command. Must maintain any state required. Can assume that rest of system is in the correct state for the action (i.e. that the undo/redo stack is traversed sequentially during undos).

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Method Summary
 void redo()
          Execute the command, saving any state necessary to undo it.
 void undo()
          Undo the command, saving any state necessary to redo it.
 

Method Detail

redo

void redo()
Execute the command, saving any state necessary to undo it.


undo

void undo()
Undo the command, saving any state necessary to redo it.