T - The type of operations.public final class UndoManagerImpl<T> extends Object implements UndoManagerPlus<T>
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UndoManagerImpl.Algorithms<T>
Algorithms required by the undo manager.
|
| 构造器和说明 |
|---|
UndoManagerImpl(UndoManagerImpl.Algorithms<T> algorithms) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
Pair<List<T>,List<T>> |
redoPlus()
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.
|
Pair<List<T>,List<T>> |
undoPlus()
Effects an undo.
|
public UndoManagerImpl(UndoManagerImpl.Algorithms<T> algorithms)
public boolean canRedo()
canRedo 在接口中 UndoManager<T>public boolean canUndo()
canUndo 在接口中 UndoManager<T>public void checkpoint()
UndoManagercheckpoint 在接口中 UndoManager<T>public void nonUndoableOp(T op)
UndoManagernonUndoableOp 在接口中 UndoManager<T>op - the operation that should not be undone by any undospublic List<T> redo()
UndoManagerredo 在接口中 UndoManager<T>public Pair<List<T>,List<T>> redoPlus()
UndoManagerPlusredoPlus 在接口中 UndoManagerPlus<T>public List<T> undo()
UndoManagerundo 在接口中 UndoManager<T>public void undoableOp(T op)
UndoManagerundoableOp 在接口中 UndoManager<T>op - the operation that should be undone by an appropriate undopublic Pair<List<T>,List<T>> undoPlus()
UndoManagerPlusundoPlus 在接口中 UndoManagerPlus<T>Copyright © 2013. All Rights Reserved.