dsto.dfc.swing.undo
Class CmdUndoTo
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.undo.AbstractUndoableCommand
dsto.dfc.swing.undo.CmdUndo
dsto.dfc.swing.undo.CmdUndoTo
- All Implemented Interfaces:
- Command, Iconic, EditExceptionPolicy, Copyable, PropertyEventSource, ActionListener, Cloneable, EventListener
public class CmdUndoTo
- extends CmdUndo
Command to invoke undoTo () on a MonitoredUndoManager
.
- Version:
- $Revision$
- Author:
- Derek Weber, Peter J Smet
Fields inherited from class dsto.dfc.swing.undo.CmdUndo |
ICON |
Method Summary |
String |
getDescription()
A short description of the command, suitable for a tooltip or use
in a status panel. |
protected void |
listenForEnablingEvents()
Start listening for enabling cursor changes. |
UndoableEdit |
selectedEdit()
Returns the undo cursor. |
void |
skip()
Skips the edit causing the exception and continues undoing, but checks to
see if the exception-causing edit is the last to be undone - if so it stops. |
protected void |
stopListeningForEnablingEvents()
Stop listening for enabling cursor changes. |
CmdUndoTo
public CmdUndoTo(EditListView editListView,
MonitoredUndoManager undoManager)
getDescription
public String getDescription()
- Description copied from interface:
Command
- A short description of the command, suitable for a tooltip or use
in a status panel.
- Specified by:
getDescription
in interface Command
- Overrides:
getDescription
in class CmdUndo
selectedEdit
public UndoableEdit selectedEdit()
- Description copied from class:
CmdUndo
- Returns the undo cursor.
- Overrides:
selectedEdit
in class CmdUndo
skip
public void skip()
- Skips the edit causing the exception and continues undoing, but checks to
see if the exception-causing edit is the last to be undone - if so it stops.
- Specified by:
skip
in interface EditExceptionPolicy
- Overrides:
skip
in class CmdUndo
listenForEnablingEvents
protected void listenForEnablingEvents()
- Description copied from class:
AbstractUndoableCommand
- Start listening for enabling cursor changes.
- Overrides:
listenForEnablingEvents
in class AbstractUndoableCommand
stopListeningForEnablingEvents
protected void stopListeningForEnablingEvents()
- Description copied from class:
AbstractUndoableCommand
- Stop listening for enabling cursor changes.
- Overrides:
stopListeningForEnablingEvents
in class AbstractUndoableCommand
Copyright © 2008 Commonwealth of Australia