Class SetWidthWeightFactorOperation
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.AbstractBmTask<Void>
-
- com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.SetWidthWeightFactorOperation
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler
,IBmTask<Void>
- Direct Known Subclasses:
UnsetWidthWeightFactorOperation
public class SetWidthWeightFactorOperation extends NotifyingOperation
Operation for setting width weight factor for range of columns.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SetWidthWeightFactorOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns)
Creates new instance ofSetWidthWeightFactorOperation
.SetWidthWeightFactorOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, int widthWeightFactor, boolean nested)
Creates new instance ofSetWidthWeightFactorOperation
.SetWidthWeightFactorOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, List<Integer> widthWeightFactors)
Creates new instance ofSetWidthWeightFactorOperation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
execute(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
The method called by the task executor with an active transaction.-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
isReadOnly, onExecute, onRedo, onUndo, postExecute, postRedo, postUndo
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
SetWidthWeightFactorOperation
public SetWidthWeightFactorOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns, int widthWeightFactor, boolean nested)
Creates new instance ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
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 ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
widthWeightFactors
- list of weight factors to be set
-
SetWidthWeightFactorOperation
protected SetWidthWeightFactorOperation(String label, SheetAccessor sheet, int beginColumnIndex, int endColumnIndex, Columns columns)
Creates new instance ofSetWidthWeightFactorOperation
.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
representing targer sheet. Must not benull
beginColumnIndex
- begin column indexendColumnIndex
- end column indexcolumns
-Columns
, must not benull
-
-
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 benull
.progressMonitor
- The monitor to indicate the progress. May not benull
.- Returns:
- execution result, may be
null
.
-
-