org.freehep.swing.undo
Class AbstractDoableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
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
firstTimeDone
protected boolean firstTimeDone
AbstractDoableEdit
public AbstractDoableEdit()
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-2007 FreeHEP. All Rights Reserved.