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 SConditionalFormattingRule
addConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff)
void
addRegion(CellRegion region)
void
addRule(SConditionalFormattingRule rule)
void
clearFormulaResultCache()
void
copyFrom(SConditionalFormatting src, int rowOff, int colOff)
Used to copy the contents from another src ConditionalFormatting.void
destroy()
Call this destory() when this formatting is about to be destroied.int
getId()
Set<CellRegion>
getRegions()
Regions that this conditional formatting coveredList<SConditionalFormattingRule>
getRules()
Rules applied to the covered regionSSheet
getSheet()
The sheet on which this conditional formatting coveredboolean
isUnderExt()
Returns whether this ConditionalFormatting should be put undervoid
removeRegion(CellRegion region)
Remove partial region in the ConditionalFormattingvoid
renameSheet(String oldName, String newName)
When sheet name changed; must call this to update region and rule formulavoid
setRegions(Set<CellRegion> regions)
void
setUnderExt(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:SConditionalFormatting
The sheet on which this conditional formatting covered- Specified by:
getSheet
in interfaceSConditionalFormatting
- Returns:
-
getRegions
public Set<CellRegion> getRegions()
Description copied from interface:SConditionalFormatting
Regions that this conditional formatting covered- Specified by:
getRegions
in interfaceSConditionalFormatting
- Returns:
-
getRules
public List<SConditionalFormattingRule> getRules()
Description copied from interface:SConditionalFormatting
Rules applied to the covered region- Specified by:
getRules
in interfaceSConditionalFormatting
- Returns:
-
addRule
public void addRule(SConditionalFormattingRule rule)
-
addRegion
public void addRegion(CellRegion region)
- Specified by:
addRegion
in interfaceSConditionalFormatting
-
removeRegion
public void removeRegion(CellRegion region)
Description copied from interface:SConditionalFormatting
Remove partial region in the ConditionalFormatting- Specified by:
removeRegion
in interfaceSConditionalFormatting
-
renameSheet
public void renameSheet(String oldName, String newName)
Description copied from interface:SConditionalFormatting
When sheet name changed; must call this to update region and rule formula- Specified by:
renameSheet
in interfaceSConditionalFormatting
-
destroy
public void destroy()
Description copied from interface:SConditionalFormatting
Call this destory() when this formatting is about to be destroied.- Specified by:
destroy
in interfaceSConditionalFormatting
-
copyFrom
public void copyFrom(SConditionalFormatting src, int rowOff, int colOff)
Description copied from interface:SConditionalFormatting
Used to copy the contents from another src ConditionalFormatting.- Specified by:
copyFrom
in interfaceSConditionalFormatting
-
setRegions
public void setRegions(Set<CellRegion> regions)
- Specified by:
setRegions
in interfaceSConditionalFormatting
-
addConditionalFormattingRule
public SConditionalFormattingRule addConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff)
-
getId
public int getId()
- Specified by:
getId
in interfaceSConditionalFormatting
- Returns:
-
clearFormulaResultCache
public void clearFormulaResultCache()
- Specified by:
clearFormulaResultCache
in interfaceSConditionalFormatting
-
isUnderExt
public boolean isUnderExt()
Returns whether this ConditionalFormatting should be put under- Specified by:
isUnderExt
in interfaceSConditionalFormatting
- Since:
- 5.7.0
-
setUnderExt
public void setUnderExt(boolean b)
Set whether this ConditionalFormatting should be put under- Since:
- 5.7.0
-
-