Class SetWidthWeightFactorOperation

    • Constructor Detail

      • SetWidthWeightFactorOperation

        public SetWidthWeightFactorOperation​(String label,
                                             SheetAccessor sheet,
                                             int beginColumnIndex,
                                             int endColumnIndex,
                                             Columns columns,
                                             int widthWeightFactor,
                                             boolean nested)
        Creates new instance of SetWidthWeightFactorOperation.
        Parameters:
        label - operation label, must not be null
        undoContext - undo context, may be null
        sheet - SheetAccessor representing targer sheet. Must not be null
        beginColumnIndex - begin column index
        endColumnIndex - end column index
        columns - Columns, must not be null
        widthWeightFactor - width weight factor to be set
      • SetWidthWeightFactorOperation

        public SetWidthWeightFactorOperation​(String label,
                                             SheetAccessor sheet,
                                             int beginColumnIndex,
                                             int endColumnIndex,
                                             Columns columns,
                                             List<Integer> widthWeightFactors)
        Creates new instance of SetWidthWeightFactorOperation.
        Parameters:
        label - operation label, must not be null
        undoContext - undo context, may be null
        sheet - SheetAccessor representing targer sheet. Must not be null
        beginColumnIndex - begin column index
        endColumnIndex - end column index
        columns - Columns, must not be null
        widthWeightFactors - list of weight factors to be set
      • SetWidthWeightFactorOperation

        protected SetWidthWeightFactorOperation​(String label,
                                                SheetAccessor sheet,
                                                int beginColumnIndex,
                                                int endColumnIndex,
                                                Columns columns)
        Creates new instance of SetWidthWeightFactorOperation.
        Parameters:
        label - operation label, must not be null
        undoContext - undo context, may be null
        sheet - SheetAccessor representing targer sheet. Must not be null
        beginColumnIndex - begin column index
        endColumnIndex - end column index
        columns - Columns, must not be null
    • Method Detail

      • 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.