public class XSSFConditionalFormatting extends java.lang.Object implements ConditionalFormatting
Modifier and Type | Method and Description |
---|---|
void |
addRule(ConditionalFormattingRule cfRule)
Add a Conditional Formatting rule.
|
CellRangeAddress[] |
getFormattingRanges() |
int |
getNumberOfRules() |
XSSFConditionalFormattingRule |
getRule(int idx) |
void |
setFormattingRanges(CellRangeAddress[] ranges)
Sets the cell ranges the rule conditional formatting must be applied to.
|
void |
setRule(int idx,
ConditionalFormattingRule cfRule)
Replaces an existing Conditional Formatting rule at position idx.
|
java.lang.String |
toString() |
public CellRangeAddress[] getFormattingRanges()
getFormattingRanges
in interface ConditionalFormatting
null
public void setFormattingRanges(CellRangeAddress[] ranges)
ConditionalFormatting
setFormattingRanges
in interface ConditionalFormatting
ranges
- non-null array of CellRangeAddressspublic void setRule(int idx, ConditionalFormattingRule cfRule)
setRule
in interface ConditionalFormatting
idx
- position of the rule. Should be between 0 and 2.cfRule
- - Conditional Formatting rulepublic void addRule(ConditionalFormattingRule cfRule)
addRule
in interface ConditionalFormatting
cfRule
- - Conditional Formatting rulepublic XSSFConditionalFormattingRule getRule(int idx)
getRule
in interface ConditionalFormatting
public int getNumberOfRules()
getNumberOfRules
in interface ConditionalFormatting
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.