public class DelayUndoManager
extends javax.swing.undo.UndoManager
| Modifier and Type | Field | Description |
|---|---|---|
protected javax.swing.Timer |
_timer |
| Constructor | Description |
|---|---|
DelayUndoManager() |
|
DelayUndoManager(int delay) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit) |
|
void |
addEditWithoutCaching() |
Calls super.addEdit without caching.
|
boolean |
canRedo() |
Override to commit the cache before checking redo status.
|
boolean |
canUndo() |
Override to commit the cache before checking undo status.
|
void |
commitCache() |
Commits the cached edit.
|
void |
discardAllEdits() |
|
void |
discardCache() |
|
boolean |
isCacheEmpty() |
Checks if there are pending edits in the DelayUndoManager.
|
void |
redo() |
Override to commit the cache before redo.
|
void |
undo() |
Override to commit the cache before undo.
|
die, getPresentationName, isInProgress, isSignificant, lastEditpublic DelayUndoManager()
public DelayUndoManager(int delay)
public boolean isCacheEmpty()
public void commitCache()
public void addEditWithoutCaching()
public void discardCache()
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit in class javax.swing.undo.UndoManagerpublic boolean canUndo()
canUndo in class javax.swing.undo.UndoManagerpublic boolean canRedo()
canRedo in class javax.swing.undo.UndoManagerpublic void undo()
throws javax.swing.undo.CannotUndoException
undo in class javax.swing.undo.UndoManagerjavax.swing.undo.CannotUndoExceptionpublic void redo()
throws javax.swing.undo.CannotRedoException
redo in class javax.swing.undo.UndoManagerjavax.swing.undo.CannotRedoExceptionpublic void discardAllEdits()
discardAllEdits in class javax.swing.undo.UndoManager