public class ConditionalFormattingImpl extends Object implements SConditionalFormatting, Serializable
Constructor and Description |
---|
ConditionalFormattingImpl(SSheet sheet) |
Modifier and Type | Method and 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 covered
|
List<SConditionalFormattingRule> |
getRules()
Rules applied to the covered region
|
SSheet |
getSheet()
The sheet on which this conditional formatting covered
|
void |
removeRegion(CellRegion region)
Remove partial region in the ConditionalFormatting
|
void |
renameSheet(String oldName,
String newName)
When sheet name changed; must call this to update region and rule formula
|
void |
setRegions(Set<CellRegion> regions) |
public ConditionalFormattingImpl(SSheet sheet)
public SSheet getSheet()
SConditionalFormatting
getSheet
in interface SConditionalFormatting
public Set<CellRegion> getRegions()
SConditionalFormatting
getRegions
in interface SConditionalFormatting
public List<SConditionalFormattingRule> getRules()
SConditionalFormatting
getRules
in interface SConditionalFormatting
public void addRule(SConditionalFormattingRule rule)
public void addRegion(CellRegion region)
addRegion
in interface SConditionalFormatting
public void removeRegion(CellRegion region)
SConditionalFormatting
removeRegion
in interface SConditionalFormatting
public void renameSheet(String oldName, String newName)
SConditionalFormatting
renameSheet
in interface SConditionalFormatting
public void destroy()
SConditionalFormatting
destroy
in interface SConditionalFormatting
public void copyFrom(SConditionalFormatting src, int rowOff, int colOff)
SConditionalFormatting
copyFrom
in interface SConditionalFormatting
public void setRegions(Set<CellRegion> regions)
setRegions
in interface SConditionalFormatting
public SConditionalFormattingRule addConditionalFormattingRule(SConditionalFormattingRule src, int rowOff, int colOff)
public int getId()
getId
in interface SConditionalFormatting
public void clearFormulaResultCache()
clearFormulaResultCache
in interface SConditionalFormatting
Copyright © 2020. All rights reserved.