public class XSSFConditionalFormattingThreshold extends java.lang.Object implements ConditionalFormattingThreshold
ConditionalFormattingThreshold.RangeType
Modifier | Constructor and Description |
---|---|
protected |
XSSFConditionalFormattingThreshold(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo cfvo) |
Modifier and Type | Method and Description |
---|---|
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo |
getCTCfvo() |
java.lang.String |
getFormula()
Formula to use to calculate the threshold,
or
null if no formula |
ConditionalFormattingThreshold.RangeType |
getRangeType()
Get the Range Type used
|
java.lang.Double |
getValue()
Gets the value used for the threshold, or
null if there isn't one. |
void |
setFormula(java.lang.String formula)
Sets the formula used to calculate the threshold,
or unsets it if
null is given. |
void |
setRangeType(ConditionalFormattingThreshold.RangeType type)
Changes the Range Type used
|
void |
setValue(java.lang.Double value)
Sets the value used for the threshold.
|
protected XSSFConditionalFormattingThreshold(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo cfvo)
protected org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCfvo getCTCfvo()
public ConditionalFormattingThreshold.RangeType getRangeType()
ConditionalFormattingThreshold
getRangeType
in interface ConditionalFormattingThreshold
public void setRangeType(ConditionalFormattingThreshold.RangeType type)
ConditionalFormattingThreshold
If you change the range type, you need to ensure that the Formula and Value parameters are compatible with it before saving
setRangeType
in interface ConditionalFormattingThreshold
public java.lang.String getFormula()
ConditionalFormattingThreshold
null
if no formulagetFormula
in interface ConditionalFormattingThreshold
public void setFormula(java.lang.String formula)
ConditionalFormattingThreshold
null
is given.setFormula
in interface ConditionalFormattingThreshold
public java.lang.Double getValue()
ConditionalFormattingThreshold
null
if there isn't one.getValue
in interface ConditionalFormattingThreshold
public void setValue(java.lang.Double value)
ConditionalFormattingThreshold
If the type is ConditionalFormattingThreshold.RangeType.PERCENT
or
ConditionalFormattingThreshold.RangeType.PERCENTILE
it must be between 0 and 100.
If the type is ConditionalFormattingThreshold.RangeType.MIN
or ConditionalFormattingThreshold.RangeType.MAX
or ConditionalFormattingThreshold.RangeType.FORMULA
it shouldn't be set.
Use null
to unset
setValue
in interface ConditionalFormattingThreshold
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.