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 SummaryModifier 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- 
undoUndo the edit that was made.- Specified by:
- undoin interface- UndoableEdit
- Throws:
- CannotUndoException
 
- 
canUndopublic boolean canUndo()True if it is still possible to undo this operation.- Specified by:
- canUndoin interface- UndoableEdit
 
- 
redoRe-apply the edit, assuming that it has been undone.- Specified by:
- redoin interface- UndoableEdit
- Throws:
- CannotRedoException
 
- 
canRedopublic boolean canRedo()True if it is still possible to redo this operation.- Specified by:
- canRedoin interface- UndoableEdit
 
- 
diepublic 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 interface- UndoableEdit
 
- 
addEdit- Specified by:
- addEditin interface- UndoableEdit
 
- 
replaceEdit- Specified by:
- replaceEditin interface- UndoableEdit
 
- 
isSignificantpublic boolean isSignificant()- Specified by:
- isSignificantin interface- UndoableEdit
 
- 
getPresentationName- Specified by:
- getPresentationNamein interface- UndoableEdit
 
- 
setPresentationName
- 
getUndoPresentationName- Specified by:
- getUndoPresentationNamein interface- UndoableEdit
 
- 
setUndoPresentationName
- 
getRedoPresentationName- Specified by:
- getRedoPresentationNamein interface- UndoableEdit
 
- 
setRedoPresentationName
 
-