public interface 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
redo() . |
Val<C> |
nextToUndo
Gives a peek at the change that will be undone by
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.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
UndoManager.UndoPosition
Represents a position in UndoManager's history.
|
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.
|
default C |
getNextToRedo()
Gets the value of the property nextToRedo.
|
default C |
getNextToUndo()
Gets the value of the property nextToUndo.
|
boolean |
isAtMarkedPosition() |
boolean |
isPerformingAction() |
boolean |
isRedoAvailable() |
boolean |
isUndoAvailable() |
default void |
mark()
Sets this UndoManager's mark to the current position.
|
Val<C> |
nextToRedoProperty()
Gives a peek at the change that will be redone by
redo() . |
Val<C> |
nextToUndoProperty()
Gives a peek at the change that will be undone by
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.
|
Val<Boolean> undoAvailableProperty
Val<C> nextToUndoProperty
undo()
.getNextToUndo()
Val<C> nextToRedoProperty
redo()
.getNextToRedo()
Val<Boolean> redoAvailableProperty
ObservableBooleanValue performingActionProperty
ObservableBooleanValue atMarkedPositionProperty
boolean undo()
true
if a change was undone, false
otherwise.boolean redo()
true
if a change was redone, false
otherwise.Val<Boolean> undoAvailableProperty()
boolean isUndoAvailable()
Val<C> nextToUndoProperty()
undo()
.getNextToUndo()
default C getNextToUndo()
undo()
.Val<C> nextToRedoProperty()
redo()
.getNextToRedo()
default C getNextToRedo()
redo()
.Val<Boolean> redoAvailableProperty()
boolean isRedoAvailable()
ObservableBooleanValue performingActionProperty()
boolean isPerformingAction()
void preventMerge()
void forgetHistory()
UndoManager.UndoPosition getCurrentPosition()
default void mark()
getCurrentPosition().mark()
.ObservableBooleanValue atMarkedPositionProperty()
boolean isAtMarkedPosition()
void close()