Package io.keikai.model.impl
Class ConditionalFormattingImpl
java.lang.Object
io.keikai.model.impl.ConditionalFormattingImpl
- All Implemented Interfaces:
SConditionalFormatting,Serializable
public class ConditionalFormattingImpl
extends Object
implements SConditionalFormatting, Serializable
- Since:
- 3.8.2
- Author:
- henri
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff) voidaddRegion(CellRegion region) voidvoidvoidcopyFrom(SConditionalFormatting src, int rowOff, int colOff) Used to copy the contents from another src ConditionalFormatting.voiddestroy()Call this destory() when this formatting is about to be destroied.intgetId()Regions that this conditional formatting coveredgetRules()Rules applied to the covered regiongetSheet()The sheet on which this conditional formatting coveredbooleanReturns whether this ConditionalFormatting should be put under<x14:conditionalFormattings> voidremoveRegion(CellRegion region) Remove partial region in the ConditionalFormattingvoidrenameSheet(String oldName, String newName) When sheet name changed; must call this to update region and rule formulavoidsetRegions(Set<CellRegion> regions) voidsetUnderExt(boolean b) Set whether this ConditionalFormatting should be put under<x14:conditionalFormattings>
-
Constructor Details
-
ConditionalFormattingImpl
-
-
Method Details
-
getSheet
Description copied from interface:SConditionalFormattingThe sheet on which this conditional formatting covered- Specified by:
getSheetin interfaceSConditionalFormatting- Returns:
-
getRegions
Description copied from interface:SConditionalFormattingRegions that this conditional formatting covered- Specified by:
getRegionsin interfaceSConditionalFormatting- Returns:
-
getRules
Description copied from interface:SConditionalFormattingRules applied to the covered region- Specified by:
getRulesin interfaceSConditionalFormatting- Returns:
-
addRule
-
addRegion
- Specified by:
addRegionin interfaceSConditionalFormatting
-
removeRegion
Description copied from interface:SConditionalFormattingRemove partial region in the ConditionalFormatting- Specified by:
removeRegionin interfaceSConditionalFormatting
-
renameSheet
Description copied from interface:SConditionalFormattingWhen sheet name changed; must call this to update region and rule formula- Specified by:
renameSheetin interfaceSConditionalFormatting
-
destroy
public void destroy()Description copied from interface:SConditionalFormattingCall this destory() when this formatting is about to be destroied.- Specified by:
destroyin interfaceSConditionalFormatting
-
copyFrom
Description copied from interface:SConditionalFormattingUsed to copy the contents from another src ConditionalFormatting.- Specified by:
copyFromin interfaceSConditionalFormatting
-
setRegions
- Specified by:
setRegionsin interfaceSConditionalFormatting
-
addConditionalFormattingRule
public SConditionalFormattingRule addConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff) -
getId
public int getId()- Specified by:
getIdin interfaceSConditionalFormatting- Returns:
-
clearFormulaResultCache
public void clearFormulaResultCache()- Specified by:
clearFormulaResultCachein interfaceSConditionalFormatting
-
isUnderExt
public boolean isUnderExt()Returns whether this ConditionalFormatting should be put under<x14:conditionalFormattings> - Specified by:
isUnderExtin interfaceSConditionalFormatting- Since:
- 5.7.0
-
setUnderExt
public void setUnderExt(boolean b) Set whether this ConditionalFormatting should be put under<x14:conditionalFormattings> - Since:
- 5.7.0
-