org.freehep.swing.undo
Class AbstractDoableEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.freehep.swing.undo.AbstractDoableEdit
All Implemented Interfaces:
Serializable, UndoableEdit, DoableEdit
Direct Known Subclasses:
AnimatedEdit

public class AbstractDoableEdit
extends AbstractUndoableEdit
implements DoableEdit

Extension of AbstractUndoableEdit which allows the Edit to be used to execute the action the first time using the redo() method. Subclasses of this class should override redo() and undo() and as the first call in their methods call super.redo() or super.undo().

Version:
$Id: AbstractDoableEdit.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann
See Also:
Serialized Form

Constructor Summary
AbstractDoableEdit()
           
 
Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
 void redo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString, undo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
addEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, undo
 

Constructor Detail

AbstractDoableEdit

public AbstractDoableEdit()
Method Detail

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
Throws:
CannotRedoException

canRedo

public boolean canRedo()
Specified by:
canRedo in interface UndoableEdit
Overrides:
canRedo in class AbstractUndoableEdit

canUndo

public boolean canUndo()
Specified by:
canUndo in interface UndoableEdit
Overrides:
canUndo in class AbstractUndoableEdit


Copyright © 2000-2013 FreeHEP. All Rights Reserved.