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
- Source Code:
- AbstractDoableEdit.java
firstTimeDone
protected boolean firstTimeDone
AbstractDoableEdit
public AbstractDoableEdit()
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
Copyright © 2000-2004 FreeHEP, All Rights Reserved.