Interface UndoableAction

    • Method Detail

      • getLabel

        String getLabel()
        Returns:
        the label of this action
      • doAction

        void doAction()
        do the action, either first time or redo
      • isUndoable

        boolean isUndoable()
        Check if still undoable or not
        Returns:
      • isRedoable

        boolean isRedoable()
        Check if still redoable or not
        Returns:
      • undoAction

        void undoAction()
        Undo the action
      • getUndoSelection

        AreaRef getUndoSelection()
        Returns:
        Selection after undo of this action, null if doesn't provided;
      • getRedoSelection

        AreaRef getRedoSelection()
        Returns:
        Selection after redo of this action, null if doesn't provided;
      • getUndoSheet

        Sheet getUndoSheet()
        Returns:
        target sheet of undo action, null if doesn't provided
      • getRedoSheet

        Sheet getRedoSheet()
        Returns:
        target sheet of redo action, null if doesn't provided