Class BaseApplyFormatOperation
- 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
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler
,IBmTask<Void>
- Direct Known Subclasses:
ApplyFontOperation
,ApplyFormatOperation
public abstract class BaseApplyFormatOperation extends ChangeCellsOperation
Basic operation of applying format
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
applyToMissed
Need to apply to missing cells.-
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 BaseApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, boolean needClearCache, boolean applyToMissed, PositionHolder positionHolder, boolean nested)
Creates new instance ofBaseApplyFormatOperation
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyToCell(Map<Integer,Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat)
Apply to cellprotected abstract void
applyToCell(Map<Integer,Integer> convertedFormatsApply, Cell cell, boolean applyFormat)
Apply to cellprotected abstract Integer
getConvertedFormatIndex(Map<Integer,Integer> convertedFormats, int srcFormatIndex, boolean applyFormat)
Get converted format indexvoid
performAction()
Выполнить действие.protected void
updateCells()
Update cells values-
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
-
BaseApplyFormatOperation
public BaseApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, boolean needClearCache, boolean applyToMissed, PositionHolder positionHolder, boolean nested)
Creates new instance ofBaseApplyFormatOperation
- Parameters:
label
- operation labelundoContext
- undo contextsheet
-SheetAccessor
selection
-Selection
changeContentOrFormat
- need change content or formatpositionHolder
-PositionHolder
-
-
Method Detail
-
performAction
public void performAction()
Description copied from class:ChangeCellsOperation
Выполнить действие.- Specified by:
performAction
in classChangeCellsOperation
-
updateCells
protected void updateCells()
Update cells values
-
getConvertedFormatIndex
protected abstract Integer getConvertedFormatIndex(Map<Integer,Integer> convertedFormats, int srcFormatIndex, boolean applyFormat)
Get converted format index- Parameters:
convertedFormats
- collection of converted format indexessrcFormatIndex
- format index to be convertedapplyFormat
- need to apply format- Returns:
- converted format index
-
applyToCell
protected abstract void applyToCell(Map<Integer,Integer> convertedFormatsApply, Cell cell, boolean applyFormat)
Apply to cell- Parameters:
convertedFormatsApply
- collection of converted format indexescell
- cell to apply format toapplyFormat
- need to apply format
-
applyToCell
protected abstract void applyToCell(Map<Integer,Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat)
Apply to cell- Parameters:
convertedFormatsApply
- collection of converted format indexesrowIndex
- row indexcolumnIndex
- columns indexapplyFormat
- need to apply format
-
-