public interface UndoManager<C>
Type | Property and Description |
---|---|
javafx.beans.value.ObservableBooleanValue |
atMarkedPosition
Indicates whether this UndoManager's current position within
its history is the same as the last marked position.
|
Val<C> |
nextRedo
Gives a peek at the change that will be redone by
redo() . |
Val<C> |
nextUndo
Gives a peek at the change that will be undone by
undo() . |
javafx.beans.value.ObservableBooleanValue |
performingAction
Indicates whether this undo manager is currently performing undo or redo
action.
|
Val<java.lang.Boolean> |
redoAvailable
Indicates whether there is a change that can be redone.
|
Val<java.lang.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 |
---|---|
javafx.beans.value.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 |
getNextRedo()
Gets the value of the property nextRedo.
|
default C |
getNextUndo()
Gets the value of the property nextUndo.
|
boolean |
isAtMarkedPosition() |
boolean |
isPerformingAction() |
boolean |
isRedoAvailable() |
boolean |
isUndoAvailable() |
default void |
mark()
Sets this UndoManager's mark to the current position.
|
Val<C> |
nextRedoProperty()
Gives a peek at the change that will be redone by
redo() . |
Val<C> |
nextUndoProperty()
Gives a peek at the change that will be undone by
undo() . |
javafx.beans.value.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<java.lang.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<java.lang.Boolean> |
undoAvailableProperty()
Indicates whether there is a change that can be undone.
|
Val<java.lang.Boolean> undoAvailableProperty
Val<C> nextUndoProperty
undo()
.getNextUndo()
Val<C> nextRedoProperty
redo()
.getNextRedo()
Val<java.lang.Boolean> redoAvailableProperty
javafx.beans.value.ObservableBooleanValue performingActionProperty
javafx.beans.value.ObservableBooleanValue atMarkedPositionProperty
boolean undo()
true
if a change was undone, false
otherwise.boolean redo()
true
if a change was redone, false
otherwise.Val<java.lang.Boolean> undoAvailableProperty()
boolean isUndoAvailable()
Val<C> nextUndoProperty()
undo()
.getNextUndo()
default C getNextUndo()
undo()
.Val<C> nextRedoProperty()
redo()
.getNextRedo()
default C getNextRedo()
redo()
.Val<java.lang.Boolean> redoAvailableProperty()
boolean isRedoAvailable()
javafx.beans.value.ObservableBooleanValue performingActionProperty()
boolean isPerformingAction()
void preventMerge()
void forgetHistory()
UndoManager.UndoPosition getCurrentPosition()
default void mark()
getCurrentPosition().mark()
.javafx.beans.value.ObservableBooleanValue atMarkedPositionProperty()
boolean isAtMarkedPosition()
void close()