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>
Operation of applying font
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseApplyFormatOperation
applyToMissedFields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
positionHolder, selectionFields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet -
Constructor Summary
ConstructorsConstructorDescriptionApplyFontOperation(String label, SheetAccessor sheet, Selection selection, Font fontToApply, int propertiesToApply, PositionHolder positionHolder, boolean nested) Creates new instance ofApplyFontOperation -
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 indexMethods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseApplyFormatOperation
performAction, updateCellsMethods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
execute, onRedoInternal, onUndoInternal, postExecute, postRedo, postUndoMethods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
isReadOnly, onExecute, onRedo, onUndoMethods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Constructor Details
-
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 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
-