Class NotifyingOperation

    • Constructor Detail

      • NotifyingOperation

        protected NotifyingOperation​(String label,
                                     SheetAccessor sheet)
        Constructs a new instance.
        Parameters:
        label - The operation label. May not be null.
        sheet - The spreadsheet accessor. May not be null.
      • NotifyingOperation

        protected NotifyingOperation​(String label,
                                     SheetAccessor sheet,
                                     boolean readOnly,
                                     boolean nested)
        Constructs a new instance.
        Parameters:
        label - The operation label. May not be null.
        sheet - The spreadsheet accessor. May not be null.
        readOnly - The flag indicating whether the operation is read-only.
        nested - The flag indicating whether the operation is nested.
    • Method Detail

      • onUndo

        public final void onUndo()
        Description copied from interface: IBmPostUndoRedoHandler
        The method invoked after the task is undone.
      • onRedo

        public final void onRedo()
        Description copied from interface: IBmPostUndoRedoHandler
        The method invoked after the task is redone.
      • onExecute

        public final void onExecute()
        Description copied from class: BaseOperation
        The method invoked outside the transaction after the 'execute' method.
        Specified by:
        onExecute in class BaseOperation
      • isReadOnly

        public final boolean isReadOnly()
        Description copied from class: BaseOperation
        Checks if the operation is read-only.
        Specified by:
        isReadOnly in class BaseOperation
        Returns:
        true if the operation is read-only, false otherwise.
      • postUndo

        protected void postUndo()
        Subclasses override this method to provide post-undo logic.
      • postRedo

        protected void postRedo()
        Subclasses override this method to provide post-redo logic.
      • postExecute

        protected void postExecute()
        Subclasses override this method to provide post-execute logic.