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:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
die
public void die()- Specified by:
diein interfaceUndoableEdit- Overrides:
diein classAbstractUndoableEdit
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
rememberMemento
protected void rememberMemento()
-