Interface UndoManager<C>

    • Method Detail

      • undo

        boolean undo()
        Undo the most recent change, if there is any change to undo.
        Returns:
        true if a change was undone, false otherwise.
      • redo

        boolean redo()
        Redo previously undone change, if there is any change to redo.
        Returns:
        true if a change was redone, false otherwise.
      • undoAvailableProperty

        org.reactfx.value.Val<java.lang.Boolean> undoAvailableProperty()
        Indicates whether there is a change that can be undone.
      • isUndoAvailable

        boolean isUndoAvailable()
      • nextUndoProperty

        org.reactfx.value.Val<C> nextUndoProperty()
        Gives a peek at the change that will be undone by undo().
      • getNextUndo

        default C getNextUndo()
      • nextRedoProperty

        org.reactfx.value.Val<C> nextRedoProperty()
        Gives a peek at the change that will be redone by redo().
      • getNextRedo

        default C getNextRedo()
      • redoAvailableProperty

        org.reactfx.value.Val<java.lang.Boolean> redoAvailableProperty()
        Indicates whether there is a change that can be redone.
      • isRedoAvailable

        boolean isRedoAvailable()
      • performingActionProperty

        javafx.beans.value.ObservableBooleanValue performingActionProperty()
        Indicates whether this undo manager is currently performing undo or redo action.
      • isPerformingAction

        boolean isPerformingAction()
      • preventMerge

        void preventMerge()
        Prevents the next change from being merged with the latest one.
      • forgetHistory

        void forgetHistory()
        Forgets all changes prior to the current position in the history.
      • getCurrentPosition

        UndoManager.UndoPosition getCurrentPosition()
        Returns the current position within this UndoManager's history.
      • mark

        default void mark()
        Sets this UndoManager's mark to the current position. This method is a convenient shortcut for getCurrentPosition().mark().
      • atMarkedPositionProperty

        javafx.beans.value.ObservableBooleanValue atMarkedPositionProperty()
        Indicates whether this UndoManager's current position within its history is the same as the last marked position.
      • isAtMarkedPosition

        boolean isAtMarkedPosition()
      • close

        void close()
        Stops observing change events.