cdox.gui.undo
Class RemoveBackgroundAction

java.lang.Object
  extended bycdox.gui.undo.RemoveBackgroundAction
All Implemented Interfaces:
DoAction

public class RemoveBackgroundAction
extends java.lang.Object
implements DoAction

This class represents a remove action. Redo will remove the backgroundImage again, undo will insert it.

Version:
May 22nd 2002
Author:
Rutger Bezema, Andreas Schmitz

Constructor Summary
RemoveBackgroundAction(CDoxFrame cF, Cover c, java.lang.String oKey)
          Creates a new one.
 
Method Summary
 void invalidate()
          This method invalidates the action, which typically means that the undo/redo methods do nothing.
 void redo()
          Removes the backgroundimage
 void undo()
          Inserts the backgroundimage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveBackgroundAction

public RemoveBackgroundAction(CDoxFrame cF,
                              Cover c,
                              java.lang.String oKey)
Creates a new one.

Parameters:
cF - the CDoxFrame
c - the cover from which the backgroundImage is removed
oKey - The unique String representation to the TempFile on disk.
Method Detail

undo

public void undo()
Inserts the backgroundimage

Specified by:
undo in interface DoAction

redo

public void redo()
Removes the backgroundimage

Specified by:
redo in interface DoAction

invalidate

public void invalidate()
Description copied from interface: DoAction
This method invalidates the action, which typically means that the undo/redo methods do nothing.

Specified by:
invalidate in interface DoAction