org.apache.poi.ss.usermodel
Interface ConditionalFormattingRule

All Known Implementing Classes:
HSSFConditionalFormattingRule

public interface ConditionalFormattingRule

Represents a description of a conditional formatting rule


Field Summary
static byteCONDITION_TYPE_CELL_VALUE_IS
          Deprecated. Use ConditionType.CELL_VALUE_IS
static byteCONDITION_TYPE_FORMULA
          Deprecated. Use ConditionType.FORMULA
 
Method Summary
 BorderFormattingcreateBorderFormatting()
          Create a new border formatting structure if it does not exist, otherwise just return existing object.
 FontFormattingcreateFontFormatting()
          Create a new font formatting structure if it does not exist, otherwise just return existing object.
 PatternFormattingcreatePatternFormatting()
          Create a new pattern formatting structure if it does not exist, otherwise just return existing object.
 BorderFormattinggetBorderFormatting()
           
 ColorScaleFormattinggetColorScaleFormatting()
           
 bytegetComparisonOperation()
          The comparison function used when the type of conditional formatting is set to CONDITION_TYPE_CELL_VALUE_IS
 bytegetConditionType()
          Deprecated. Use getConditionTypeType()
 ConditionTypegetConditionTypeType()
          Type of conditional formatting rule.
 DataBarFormattinggetDataBarFormatting()
           
 FontFormattinggetFontFormatting()
           
 java.lang.StringgetFormula1()
          The formula used to evaluate the first operand for the conditional formatting rule.
 java.lang.StringgetFormula2()
          The formula used to evaluate the second operand of the comparison when comparison type is CONDITION_TYPE_CELL_VALUE_IS and operator is either ComparisonOperator.BETWEEN or ComparisonOperator.NOT_BETWEEN
 IconMultiStateFormattinggetMultiStateFormatting()
           
 PatternFormattinggetPatternFormatting()
           
 

Field Detail

CONDITION_TYPE_CELL_VALUE_IS

static final byte CONDITION_TYPE_CELL_VALUE_IS
Deprecated. Use ConditionType.CELL_VALUE_IS
This conditional formatting rule compares a cell value to a formula calculated result, using an operator


CONDITION_TYPE_FORMULA

static final byte CONDITION_TYPE_FORMULA
Deprecated. Use ConditionType.FORMULA
This conditional formatting rule contains a formula to evaluate. When the formula result is true, the cell is highlighted.

Method Detail

createBorderFormatting

BorderFormatting createBorderFormatting()
Create a new border formatting structure if it does not exist, otherwise just return existing object.

Returns:
- border formatting object, never returns null.

getBorderFormatting

BorderFormatting getBorderFormatting()
Returns:
- border formatting object if defined, null otherwise

createFontFormatting

FontFormatting createFontFormatting()
Create a new font formatting structure if it does not exist, otherwise just return existing object.

Returns:
- font formatting object, never returns null.

getFontFormatting

FontFormatting getFontFormatting()
Returns:
- font formatting object if defined, null otherwise

createPatternFormatting

PatternFormatting createPatternFormatting()
Create a new pattern formatting structure if it does not exist, otherwise just return existing object.

Returns:
- pattern formatting object, never returns null.

getPatternFormatting

PatternFormatting getPatternFormatting()
Returns:
- pattern formatting object if defined, null otherwise

getDataBarFormatting

DataBarFormatting getDataBarFormatting()
Returns:
- databar / data-bar formatting object if defined, null otherwise

getMultiStateFormatting

IconMultiStateFormatting getMultiStateFormatting()
Returns:
- icon / multi-state formatting object if defined, null otherwise

getColorScaleFormatting

ColorScaleFormatting getColorScaleFormatting()
Returns:
color scale / color grate formatting object if defined, null otherwise

getConditionType

byte getConditionType()
Deprecated. Use getConditionTypeType()

Type of conditional formatting rule.

MUST be one of the IDs of a ConditionType

Returns:
the type of condition

getConditionTypeType

ConditionType getConditionTypeType()
Type of conditional formatting rule.

Returns:
the type of condition

getComparisonOperation

byte getComparisonOperation()
The comparison function used when the type of conditional formatting is set to CONDITION_TYPE_CELL_VALUE_IS

MUST be a constant from ComparisonOperator

Returns:
the conditional format operator

getFormula1

java.lang.String getFormula1()
The formula used to evaluate the first operand for the conditional formatting rule.

If the condition type is CONDITION_TYPE_CELL_VALUE_IS, this field is the first operand of the comparison. If type is CONDITION_TYPE_FORMULA, this formula is used to determine if the conditional formatting is applied.

If comparison type is CONDITION_TYPE_FORMULA the formula MUST be a Boolean function

Returns:
the first formula

getFormula2

java.lang.String getFormula2()
The formula used to evaluate the second operand of the comparison when comparison type is CONDITION_TYPE_CELL_VALUE_IS and operator is either ComparisonOperator.BETWEEN or ComparisonOperator.NOT_BETWEEN

Returns:
the second formula




NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14