Package oracle.rules.sdk2.dictionary
Class UndoableEdit
java.lang.Object
oracle.rules.sdk2.dictionary.UndoableEdit
- All Implemented Interfaces:
UndoableEdit
Simplified version of javax.swing.undo.UndoableEdit.
A swing app should delegate to this class.
Note that undo and redo operations rollback any updates in progress on the RuleDictionary that generated the UndoableEdit.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEdit(UndoableEdit anEdit) booleancanRedo()True if it is still possible to redo this operation.booleancanUndo()True if it is still possible to undo this operation.voiddie()May be sent to inform an edit that it should no longer be used.booleanvoidredo()Re-apply the edit, assuming that it has been undone.booleanreplaceEdit(UndoableEdit anEdit) voidvoidvoidvoidundo()Undo the edit that was made.
-
Method Details
-
undo
Undo the edit that was made.- Specified by:
undoin interfaceUndoableEdit- Throws:
CannotUndoException
-
canUndo
public boolean canUndo()True if it is still possible to undo this operation.- Specified by:
canUndoin interfaceUndoableEdit
-
redo
Re-apply the edit, assuming that it has been undone.- Specified by:
redoin interfaceUndoableEdit- Throws:
CannotRedoException
-
canRedo
public boolean canRedo()True if it is still possible to redo this operation.- Specified by:
canRedoin interfaceUndoableEdit
-
die
public void die()May be sent to inform an edit that it should no longer be used. This is a useful hook for cleaning up state no longer needed once undoing or redoing is impossible--for example, deleting file resources used by objects that can no longer be undeleted.UndoManager
calls this before it dequeues edits. Note that this is a one-way operation. There is no "un-die" method.- Specified by:
diein interfaceUndoableEdit
-
addEdit
- Specified by:
addEditin interfaceUndoableEdit
-
replaceEdit
- Specified by:
replaceEditin interfaceUndoableEdit
-
isSignificant
public boolean isSignificant()- Specified by:
isSignificantin interfaceUndoableEdit
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit
-
setPresentationName
-
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit
-
setUndoPresentationName
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit
-
setRedoPresentationName
-