public class XSSFConditionalFormattingRule extends Object implements ConditionalFormattingRule
CONDITION_TYPE_CELL_VALUE_IS, CONDITION_TYPE_FORMULA
Modifier and Type | Method and Description |
---|---|
XSSFBorderFormatting |
createBorderFormatting()
Create a new border formatting structure if it does not exist,
otherwise just return existing object.
|
XSSFFontFormatting |
createFontFormatting()
Create a new font formatting structure if it does not exist,
otherwise just return existing object.
|
XSSFPatternFormatting |
createPatternFormatting()
Create a new pattern formatting structure if it does not exist,
otherwise just return existing object.
|
XSSFBorderFormatting |
getBorderFormatting() |
byte |
getComparisonOperation()
The comparison function used when the type of conditional formatting is set to
ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS |
byte |
getConditionType()
Type of conditional formatting rule.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule |
getCTCfRule() |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxf |
getDxf(boolean create) |
XSSFFontFormatting |
getFontFormatting() |
String |
getFormula1()
The formula used to evaluate the first operand for the conditional formatting rule.
|
String |
getFormula2()
The formula used to evaluate the second operand of the comparison when
comparison type is
ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS and operator
is either ComparisonOperator.BETWEEN or ComparisonOperator.NOT_BETWEEN |
XSSFPatternFormatting |
getPatternFormatting() |
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfRule getCTCfRule()
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxf getDxf(boolean create)
public XSSFBorderFormatting createBorderFormatting()
createBorderFormatting
in interface ConditionalFormattingRule
null
.public XSSFBorderFormatting getBorderFormatting()
getBorderFormatting
in interface ConditionalFormattingRule
null
otherwisepublic XSSFFontFormatting createFontFormatting()
createFontFormatting
in interface ConditionalFormattingRule
null
.public XSSFFontFormatting getFontFormatting()
getFontFormatting
in interface ConditionalFormattingRule
null
otherwisepublic XSSFPatternFormatting createPatternFormatting()
createPatternFormatting
in interface ConditionalFormattingRule
null
.public XSSFPatternFormatting getPatternFormatting()
getPatternFormatting
in interface ConditionalFormattingRule
null
otherwisepublic byte getConditionType()
MUST be either ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS
or ConditionalFormattingRule.CONDITION_TYPE_FORMULA
getConditionType
in interface ConditionalFormattingRule
public byte getComparisonOperation()
ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS
MUST be a constant from ComparisonOperator
getComparisonOperation
in interface ConditionalFormattingRule
public String getFormula1()
If the condition type is ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS
,
this field is the first operand of the comparison.
If type is ConditionalFormattingRule.CONDITION_TYPE_FORMULA
, this formula is used
to determine if the conditional formatting is applied.
If comparison type is ConditionalFormattingRule.CONDITION_TYPE_FORMULA
the formula MUST be a Boolean function
getFormula1
in interface ConditionalFormattingRule
public String getFormula2()
ConditionalFormattingRule.CONDITION_TYPE_CELL_VALUE_IS
and operator
is either ComparisonOperator.BETWEEN
or ComparisonOperator.NOT_BETWEEN
getFormula2
in interface ConditionalFormattingRule
Copyright © 2020. All rights reserved.