Package com._1c.g5.v8.dt.moxel.api
Class BaseApplyFormatOperation
java.lang.Object
com._1c.g5.v8.bm.integration.AbstractBmTask<Void>
com._1c.g5.v8.dt.moxel.api.BaseOperation
com._1c.g5.v8.dt.moxel.api.NotifyingOperation
com._1c.g5.v8.dt.moxel.api.ChangeCellsOperation
com._1c.g5.v8.dt.moxel.api.BaseApplyFormatOperation
- All Implemented Interfaces:
IBmPostUndoRedoHandler,IBmTask<Void>
- Direct Known Subclasses:
ApplyFontOperation,ApplyFormatOperation
Basic operation of applying format
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionBaseApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, boolean needClearCache, boolean applyToMissed, IPositionHolder positionHolder, boolean nested) Creates new instance ofBaseApplyFormatOperation -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidapplyToCell(Map<Integer, Integer> convertedFormatsApply, int rowIndex, int columnIndex, boolean applyFormat) Apply to cellprotected abstract voidapplyToCell(Map<Integer, Integer> convertedFormatsApply, Cell cell, boolean applyFormat) Apply to cellprotected abstract IntegergetConvertedFormatIndex(Map<Integer, Integer> convertedFormats, int srcFormatIndex, boolean applyFormat) Get converted format indexvoidВыполнить действие.protected voidUpdate cells valuesMethods 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
-
Field Details
-
applyToMissed
protected boolean applyToMissedNeed to apply to missing cells.
-
-
Constructor Details
-
BaseApplyFormatOperation
public BaseApplyFormatOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, boolean needClearCache, boolean applyToMissed, IPositionHolder positionHolder, boolean nested) Creates new instance ofBaseApplyFormatOperation- Parameters:
label- operation labelundoContext- undo contextsheet-SheetAccessorselection-SelectionchangeContentOrFormat- need change content or formatpositionHolder-PositionHolder
-
-
Method Details
-
performAction
public void performAction()Description copied from class:ChangeCellsOperationВыполнить действие.- Specified by:
performActionin 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
-