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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConditionalFormattingImpl(SSheet sheet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SConditionalFormattingRuleaddConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff)voidaddRegion(CellRegion region)voidaddRule(SConditionalFormattingRule rule)voidclearFormulaResultCache()voidcopyFrom(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()Set<CellRegion>getRegions()Regions that this conditional formatting coveredList<SConditionalFormattingRule>getRules()Rules applied to the covered regionSSheetgetSheet()The sheet on which this conditional formatting coveredbooleanisUnderExt()Returns whether this ConditionalFormatting should be put undervoidremoveRegion(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
-
-
-
Constructor Detail
-
ConditionalFormattingImpl
public ConditionalFormattingImpl(SSheet sheet)
-
-
Method Detail
-
getSheet
public SSheet getSheet()
Description copied from interface:SConditionalFormattingThe sheet on which this conditional formatting covered- Specified by:
getSheetin interfaceSConditionalFormatting- Returns:
-
getRegions
public Set<CellRegion> getRegions()
Description copied from interface:SConditionalFormattingRegions that this conditional formatting covered- Specified by:
getRegionsin interfaceSConditionalFormatting- Returns:
-
getRules
public List<SConditionalFormattingRule> getRules()
Description copied from interface:SConditionalFormattingRules applied to the covered region- Specified by:
getRulesin interfaceSConditionalFormatting- Returns:
-
addRule
public void addRule(SConditionalFormattingRule rule)
-
addRegion
public void addRegion(CellRegion region)
- Specified by:
addRegionin interfaceSConditionalFormatting
-
removeRegion
public void removeRegion(CellRegion region)
Description copied from interface:SConditionalFormattingRemove partial region in the ConditionalFormatting- Specified by:
removeRegionin interfaceSConditionalFormatting
-
renameSheet
public void renameSheet(String oldName, String newName)
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
public void copyFrom(SConditionalFormatting src, int rowOff, int colOff)
Description copied from interface:SConditionalFormattingUsed to copy the contents from another src ConditionalFormatting.- Specified by:
copyFromin interfaceSConditionalFormatting
-
setRegions
public void setRegions(Set<CellRegion> regions)
- 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- Specified by:
isUnderExtin interfaceSConditionalFormatting- Since:
- 5.7.0
-
setUnderExt
public void setUnderExt(boolean b)
Set whether this ConditionalFormatting should be put under- Since:
- 5.7.0
-
-