jtp.undo
Class UntellUndoManager
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.undo.CompoundEdit
|
+--javax.swing.undo.UndoManager
|
+--jtp.undo.SnapshotUndoManager
|
+--jtp.undo.UntellUndoManager
- All Implemented Interfaces:
- EventListener, Serializable, UndoableEdit, UndoableEditListener
- public class UntellUndoManager
- extends SnapshotUndoManager
Created: Tue May 7 18:06:48 PDT 2002
- See Also:
- Serialized Form
Method Summary |
List |
undoToObject(Object obj)
If obj is represented by a TellEdit in this undo manager,
all edits up to and including the edit representing obj are
undone. |
Methods inherited from class javax.swing.undo.UndoManager |
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo, undoTo |
UntellUndoManager
public UntellUndoManager()
undoToObject
public List undoToObject(Object obj)
throws CannotUndoException
- If obj is represented by a TellEdit in this undo manager,
all edits up to and including the edit representing obj are
undone.
- Parameters:
obj
- a directly asserted object, e.g., a Literal
- Returns:
- a list of all objects/sentences that were unasserted,
including obj, which will be the first thing in the list.
CannotUndoException