public class UndoManagerImpl<C> extends Object implements UndoManager<C>
| Type | Property and Description |
|---|---|
ObservableBooleanValue |
atMarkedPosition
Indicates whether this UndoManager's current position within
its history is the same as the last marked position.
|
Val<C> |
nextToRedo
Gives a peek at the change that will be redone by
UndoManager.redo(). |
Val<C> |
nextToUndo
Gives a peek at the change that will be undone by
UndoManager.undo(). |
ObservableBooleanValue |
performingAction
Indicates whether this undo manager is currently performing undo or redo
action.
|
Val<Boolean> |
redoAvailable
Indicates whether there is a change that can be redone.
|
Val<Boolean> |
undoAvailable
Indicates whether there is a change that can be undone.
|
UndoManager.UndoPosition| Constructor and Description |
|---|
UndoManagerImpl(ChangeQueue<C> queue,
Function<? super C,? extends C> invert,
Consumer<C> apply,
BiFunction<C,C,Optional<C>> merge,
Predicate<C> isIdentity,
EventStream<C> changeSource) |
| Modifier and Type | Method and Description |
|---|---|
ObservableBooleanValue |
atMarkedPositionProperty()
Indicates whether this UndoManager's current position within
its history is the same as the last marked position.
|
void |
close()
Stops observing change events.
|
void |
forgetHistory()
Forgets all changes prior to the current position in the history.
|
UndoManager.UndoPosition |
getCurrentPosition()
Returns the current position within this UndoManager's history.
|
boolean |
isAtMarkedPosition() |
boolean |
isPerformingAction() |
boolean |
isRedoAvailable() |
boolean |
isUndoAvailable() |
Val<C> |
nextToRedoProperty()
Gives a peek at the change that will be redone by
UndoManager.redo(). |
Val<C> |
nextToUndoProperty()
Gives a peek at the change that will be undone by
UndoManager.undo(). |
ObservableBooleanValue |
performingActionProperty()
Indicates whether this undo manager is currently performing undo or redo
action.
|
void |
preventMerge()
Prevents the next change from being merged with the latest one.
|
boolean |
redo()
Redo previously undone change, if there is any change to redo.
|
Val<Boolean> |
redoAvailableProperty()
Indicates whether there is a change that can be redone.
|
boolean |
undo()
Undo the most recent change, if there is any change to undo.
|
Val<Boolean> |
undoAvailableProperty()
Indicates whether there is a change that can be undone.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextToRedo, getNextToUndo, markpublic Val<C> nextToUndoProperty
nextToUndoProperty in interface UndoManager<C>public Val<C> nextToRedoProperty
nextToRedoProperty in interface UndoManager<C>public Val<Boolean> undoAvailableProperty
undoAvailableProperty in interface UndoManager<C>public Val<Boolean> redoAvailableProperty
redoAvailableProperty in interface UndoManager<C>public ObservableBooleanValue performingActionProperty
performingActionProperty in interface UndoManager<C>public ObservableBooleanValue atMarkedPositionProperty
atMarkedPositionProperty in interface UndoManager<C>public void close()
UndoManagerclose in interface UndoManager<C>public boolean undo()
UndoManagerundo in interface UndoManager<C>true if a change was undone, false otherwise.public boolean redo()
UndoManagerredo in interface UndoManager<C>true if a change was redone, false otherwise.public Val<C> nextToUndoProperty()
UndoManagerUndoManager.undo().nextToUndoProperty in interface UndoManager<C>public Val<C> nextToRedoProperty()
UndoManagerUndoManager.redo().nextToRedoProperty in interface UndoManager<C>public boolean isUndoAvailable()
isUndoAvailable in interface UndoManager<C>public Val<Boolean> undoAvailableProperty()
UndoManagerundoAvailableProperty in interface UndoManager<C>public boolean isRedoAvailable()
isRedoAvailable in interface UndoManager<C>public Val<Boolean> redoAvailableProperty()
UndoManagerredoAvailableProperty in interface UndoManager<C>public boolean isPerformingAction()
isPerformingAction in interface UndoManager<C>public ObservableBooleanValue performingActionProperty()
UndoManagerperformingActionProperty in interface UndoManager<C>public boolean isAtMarkedPosition()
isAtMarkedPosition in interface UndoManager<C>public ObservableBooleanValue atMarkedPositionProperty()
UndoManageratMarkedPositionProperty in interface UndoManager<C>public UndoManager.UndoPosition getCurrentPosition()
UndoManagergetCurrentPosition in interface UndoManager<C>public void preventMerge()
UndoManagerpreventMerge in interface UndoManager<C>public void forgetHistory()
UndoManagerforgetHistory in interface UndoManager<C>