FreeHEP API
Version current

org.freehep.swing.undo
Class AbstractDoableEdit

java.lang.Object
  extended byjavax.swing.undo.AbstractUndoableEdit
      extended byorg.freehep.swing.undo.AbstractDoableEdit
All Implemented Interfaces:
DoableEdit, Serializable, UndoableEdit
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,v 1.1 2003/06/10 18:26:15 duns Exp $
Author:
Mark Donszelmann
See Also:
Serialized Form
Source Code:
AbstractDoableEdit.java

Field Summary
protected  boolean firstTimeDone
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
addEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, undo
 

Field Detail

firstTimeDone

protected boolean firstTimeDone
Constructor Detail

AbstractDoableEdit

public AbstractDoableEdit()
Method Detail

redo

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

canRedo

public boolean canRedo()
Specified by:
canRedo in interface UndoableEdit

canUndo

public boolean canUndo()
Specified by:
canUndo in interface UndoableEdit

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.