Package com._1c.g5.v8.dt.moxel.api
Class ApplyFormatOperation
- All Implemented Interfaces:
IBmPostUndoRedoHandler,IBmTask<Void>
Operation of applying format
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.moxel.api.BaseApplyFormatOperation
applyToMissedFields inherited from class com._1c.g5.v8.dt.moxel.api.ChangeCellsOperation
positionHolder, selectionFields inherited from class com._1c.g5.v8.dt.moxel.api.BaseOperation
sheet -
Constructor Summary
ConstructorsConstructorDescriptionApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, ReadOnlyFormat format, long properties, Cell cellToApply, int cellProperties, IPositionHolder positionHolder, boolean nested) Creates new instance ofApplyFormatOperation -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyToCell(Map<Integer, Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat) Apply to cellprotected voidapplyToCell(Map<Integer, Integer> convertedFormatsApply, Cell cell, boolean applyFormat) Apply to cellprotected IntegergetConvertedFormatIndex(Map<Integer, Integer> convertedFormats, int srcFormatIndex, boolean applyFormat) Get converted format indexprotected voidUpdate cells valuesMethods inherited from class com._1c.g5.v8.dt.moxel.api.BaseApplyFormatOperation
performActionMethods inherited from class com._1c.g5.v8.dt.moxel.api.ChangeCellsOperation
execute, onRedoInternal, onUndoInternal, postExecute, postRedo, postUndoMethods inherited from class com._1c.g5.v8.dt.moxel.api.NotifyingOperation
isReadOnly, onExecute, onRedo, onUndoMethods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Constructor Details
-
ApplyFormatOperation
public ApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, ReadOnlyFormat format, long properties, Cell cellToApply, int cellProperties, IPositionHolder positionHolder, boolean nested) Creates new instance ofApplyFormatOperation- Parameters:
label- operation labelsheet-SheetAccessorselection-Selectionformat- format to applyproperties- format properties maskcellToApply- cell to applycellProperties- cell properties maskpositionHolder-PositionHolder
-
-
Method Details
-
getConvertedFormatIndex
protected Integer getConvertedFormatIndex(Map<Integer, Integer> convertedFormats, int srcFormatIndex, boolean applyFormat) Description copied from class:BaseApplyFormatOperationGet converted format index- Specified by:
getConvertedFormatIndexin classBaseApplyFormatOperation- Parameters:
convertedFormats- collection of converted format indexessrcFormatIndex- format index to be convertedapplyFormat- need to apply format- Returns:
- converted format index
-
applyToCell
protected void applyToCell(Map<Integer, Integer> convertedFormatsApply, Cell cell, boolean applyFormat) Description copied from class:BaseApplyFormatOperationApply to cell- Specified by:
applyToCellin classBaseApplyFormatOperation- Parameters:
convertedFormatsApply- collection of converted format indexescell- cell to apply format toapplyFormat- need to apply format
-
applyToCell
protected void applyToCell(Map<Integer, Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat) Description copied from class:BaseApplyFormatOperationApply to cell- Specified by:
applyToCellin classBaseApplyFormatOperation- Parameters:
convertedFormatsApply- collection of converted format indexesrowIndex- row indexcolumnIndex- columns indexapplyFormat- need to apply format
-
updateCells
protected void updateCells()Description copied from class:BaseApplyFormatOperationUpdate cells values- Overrides:
updateCellsin classBaseApplyFormatOperation
-