com.partnersoft.v3x.gadgets
Interface UndoableCommand


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).


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.