public class ConditionalFormattingImpl extends java.lang.Object implements SConditionalFormatting, java.io.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() |
java.util.Set<CellRegion> |
getRegions()
Regions that this conditional formatting covered
|
java.util.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(java.lang.String oldName,
java.lang.String newName)
When sheet name changed; must call this to update region and rule formula
|
void |
setRegions(java.util.Set<CellRegion> regions) |
public ConditionalFormattingImpl(SSheet sheet)
public SSheet getSheet()
SConditionalFormatting
getSheet
in interface SConditionalFormatting
public java.util.Set<CellRegion> getRegions()
SConditionalFormatting
getRegions
in interface SConditionalFormatting
public java.util.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(java.lang.String oldName, java.lang.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(java.util.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 © 2005-2010 Potix Corporation. All Rights Reserved.