Class SetAutoWidthCalculationOperation

All Implemented Interfaces:
IBmPostUndoRedoHandler, IBmTask<Void>

public class SetAutoWidthCalculationOperation extends NotifyingOperation
Operation for setting automatic width calculation mode for range of columns.
  • Constructor Details

    • SetAutoWidthCalculationOperation

      public SetAutoWidthCalculationOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, Boolean autoWidthCalculation, boolean nested)
      Creates new instance of SetAutoWidthCalculationOperation
      Parameters:
      label - operation label, must not be null
      undoContext - undo context, may be null
      sheet - SheetAccessor representing target sheet, must not be null
      beginColumnIndex - begin column index
      endColumnIndex - end column index
      columns - Columns, must not be null
      autoWidthCalculation - auto width calculation value, may be null. In case of null value automatic width calculation will be unset.
  • Method Details

    • execute

      public Void execute(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Description copied from interface: IBmTask

      The method called by the task executor with an active transaction. The method code must not commit or rollback the transaction.

      If the task is not supposed to return a result, then it may be parameterized with Void and return null.

      Parameters:
      transaction - The active transaction. May not be null.
      progressMonitor - The monitor to indicate the progress. May not be null.
      Returns:
      execution result, may be null.