cdox.gui.undo
Interface DoAction

All Known Implementing Classes:
BackgroundEditAction, FotoEditAction, InsertUndoAction, MoveAction, RemoveAction, RemoveBackgroundAction, ResizeAction

public interface DoAction

This interface represents an action that a user can do in our editor. One can invoke the redo/undo methods to redo or undo the action that is represented by the appropriate instance. Please see the various subclasses.

Please note that some actions can be an undo and a redo action at the same time, while others can not. It is the task of the subclasses to make sure that no surprises happen.

Version:
May 16th 2002
Author:
Rutger Bezema, Andreas Schmitz

Method Summary
 void invalidate()
          This method invalidates the action, which typically means that the undo/redo methods do nothing.
 void redo()
          This method redoes the action.
 void undo()
          This method undoes the action.
 

Method Detail

redo

public void redo()
This method redoes the action.


undo

public void undo()
This method undoes the action.


invalidate

public void invalidate()
This method invalidates the action, which typically means that the undo/redo methods do nothing.