Class ApplyFontOperation
- 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.ChangeCellsOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.BaseApplyFormatOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.ApplyFontOperation
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler,IBmTask<Void>
public final class ApplyFontOperation extends BaseApplyFormatOperation
Operation of applying font
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseApplyFormatOperation
applyToMissed
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
positionHolder, selection
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Constructor Description ApplyFontOperation(String label, SheetAccessor sheet, Selection selection, Font fontToApply, int propertiesToApply, PositionHolder positionHolder, boolean nested)Creates new instance ofApplyFontOperation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 index-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseApplyFormatOperation
performAction, updateCells
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
execute, onRedoInternal, onUndoInternal, postExecute, postRedo, postUndo
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
isReadOnly, onExecute, onRedo, onUndo
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
ApplyFontOperation
public ApplyFontOperation(String label, SheetAccessor sheet, Selection selection, Font fontToApply, int propertiesToApply, PositionHolder positionHolder, boolean nested)
Creates new instance ofApplyFontOperation- Parameters:
label- operation labelundoContext- undo contextsheet-SheetAccessorselection-SelectionfontToApply-FontpropertiesToApply- properties maskpositionHolder-PositionHolder
-
-
Method Detail
-
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
-
-