Package com.bc.ceres.swing.undo
Class RestorableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
com.bc.ceres.swing.undo.RestorableEdit
- All Implemented Interfaces:
Serializable
,UndoableEdit
A very simple
UndoableEdit
which is acts upon a Restorable
representing the changed object and the memento of that object before it was changed.- Since:
- Ceres 0.10
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
ConstructorsConstructorDescriptionRestorableEdit
(Restorable changedObject, Object memento) RestorableEdit
(Restorable changedObject, Object memento, String presentationName) -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
RestorableEdit
-
RestorableEdit
-
-
Method Details
-
getChangedObject
-
getPresentationName
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
die
public void die()- Specified by:
die
in interfaceUndoableEdit
- Overrides:
die
in classAbstractUndoableEdit
-
undo
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
redo
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotRedoException
-
rememberMemento
protected void rememberMemento()
-