org.freehep.swing.undo
Class AbstractDoableEdit
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--org.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
firstTimeDone
protected boolean firstTimeDone
AbstractDoableEdit
public AbstractDoableEdit()
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit
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-2003 FreeHEP, All Rights Reserved.