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
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
ConstructorsConstructorDescriptionApplyFontOperation
(String label, SheetAccessor sheet, Selection selection, Font fontToApply, int propertiesToApply, PositionHolder positionHolder, boolean nested) Creates new instance ofApplyFontOperation
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyToCell
(Map<Integer, Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat) Apply to cellprotected void
applyToCell
(Map<Integer, Integer> convertedFormatsApply, Cell cell, boolean applyFormat) Apply to cellprotected Integer
getConvertedFormatIndex
(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, 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 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
-SheetAccessor
selection
-Selection
fontToApply
-Font
propertiesToApply
- properties maskpositionHolder
-PositionHolder
-
-
Method Details
-
getConvertedFormatIndex
protected Integer getConvertedFormatIndex(Map<Integer, Integer> convertedFormats, int srcFormatIndex, boolean applyFormat) Description copied from class:BaseApplyFormatOperation
Get converted format index- Specified by:
getConvertedFormatIndex
in 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:BaseApplyFormatOperation
Apply to cell- Specified by:
applyToCell
in 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:BaseApplyFormatOperation
Apply to cell- Specified by:
applyToCell
in classBaseApplyFormatOperation
- Parameters:
convertedFormatsApply
- collection of converted format indexesrowIndex
- row indexcolumnIndex
- columns indexapplyFormat
- need to apply format
-