T - The type of operations.public interface UndoManager<T>
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canRedo() |
boolean |
canUndo() |
void |
checkpoint()
Places an undo checkpoint.
|
void |
nonUndoableOp(T op)
Places into the undo manager an operation that should not be undone by undos.
|
List<T> |
redo()
Effects a redo.
|
List<T> |
undo()
Effects an undo.
|
void |
undoableOp(T op)
Places into the undo manager an operation that should be undone by undos.
|
boolean canRedo()
boolean canUndo()
void checkpoint()
void nonUndoableOp(T op)
op - the operation that should not be undone by any undosList<T> redo()
List<T> undo()
void undoableOp(T op)
op - the operation that should be undone by an appropriate undoCopyright © 2013. All Rights Reserved.