Interface UndoableActionManager

    • Method Detail

      • doAction

        void doAction​(UndoableAction action)
        Do the action and put it into history
        Parameters:
        action -
      • isUndoable

        boolean isUndoable()
        Is undoable
        Returns:
      • getUndoLabel

        String getUndoLabel()
        Get undo label, only available if isUndoable()
        Returns:
      • undoAction

        void undoAction()
        undo last action, only available if isUndoable()
      • isRedoable

        boolean isRedoable()
        Is redoable
        Returns:
      • getRedoLabel

        String getRedoLabel()
        Get redo label, only available if isRedoable()
        Returns:
      • redoAction

        void redoAction()
        redo the last undo action, only availabel if isRedoable()
      • clear

        void clear()
        clear the history
      • setMaxHsitorySize

        void setMaxHsitorySize​(int size)
        Sets the maximun history size
        Parameters:
        size -
      • bind

        void bind​(Spreadsheet spreadsheet)
        Will be called when a manager create
        Parameters:
        sparedsheet -