HSSFSheet
| Modifier and Type | Field and Description |
|---|---|
| private final ConditionalFormattingTable | |
| private final HSSFSheet |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: index of the new Conditional Formatting objectHSSFConditionalFormatting object cf)Adds a copy of HSSFConditionalFormatting object to the sheet This method could be used to copy HSSFConditionalFormatting object from one sheet to another. |
| public int | addConditionalFormatting(ConditionalFormatting
the Conditional Formatting to clone cf)Implements org. Adds a copy of a ConditionalFormatting object to the sheet This method could be used to copy ConditionalFormatting object from one sheet to another. |
| public int | Returns: index of the newly created Conditional Formatting object- list of rectangular regions to apply conditional formatting rules regions, HSSFConditionalFormattingRule[] - set of up to three conditional formatting rules cfRules)Allows to add a new Conditional Formatting set to the sheet. |
| public int | addConditionalFormatting(CellRangeAddress[]
- list of rectangular regions to apply conditional formatting rules regions, ConditionalFormattingRule[] - set of up to conditional formatting rules (max 3 for Excel pre-2007) cfRules)Implements org. Add a new Conditional Formatting set to the sheet. |
| public int | |
| public int | addConditionalFormatting(CellRangeAddress[]
- list of rectangular regions to apply conditional formatting rules regions, ConditionalFormattingRule - the rule to apply rule1)Implements org. Add a new Conditional Formatting to the sheet. |
| public int | addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule rule1, HSSFConditionalFormattingRule rule2)
|
| public int | addConditionalFormatting(CellRangeAddress[]
- list of rectangular regions to apply conditional formatting rules regions, ConditionalFormattingRule - the first rule rule1, ConditionalFormattingRule - the second rule rule2)Implements org. Add a new Conditional Formatting consisting of two rules. |
| public HSSFConditionalFormattingRule | createConditionalFormattingColorScaleRule()
Implements org. Create a Color Scale / Color Gradient conditional formatting rule. |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(byte
- a constant value from
comparisonOperation, String {@link org.apache.poi.hssf.record.CFRuleBase.ComparisonOperator}:
- formula for the valued, compared with the cell formula1, String - second formula (only used with
formula2)org.) and
org. operations)Implements org. A factory method allowing to create a conditional formatting rule with a cell comparison operator TODO - formulas containing cell references are currently not parsed properly |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(byte
MUST be a constant value from
comparisonOperation, String ComparisonOperator except BETWEEN and NOT_BETWEENthe formula to determine if the conditional formatting is applied formula1)Implements org. Create a conditional formatting rule that compares a cell value to a formula calculated result, using an operator *
The type of the created condition is |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(String
- formula for the valued, compared with the cell formula)Implements org. A factory method allowing to create a conditional formatting rule with a formula. |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(IconMultiStateFormatting.
Implements org. A factory method allowing the creation of conditional formatting rules using an Icon Set / Multi-State formatting. |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(HSSFExtendedColor color)
Create a Databar conditional formatting rule. |
| public HSSFConditionalFormattingRule | createConditionalFormattingRule(ExtendedColor color)
Implements org. Create a Databar conditional formatting rule. |
| public HSSFConditionalFormatting | Returns: Conditional Formatting objectof the Conditional Formatting object to fetch index)Implements org. gets Conditional Formatting object at a particular index |
| public int | Returns: number of Conditional Formatting objects of the sheetImplements org.
|
| public void | removeConditionalFormatting(int
of a Conditional Formatting object to remove index)Implements org. removes a Conditional Formatting object by index |
| _conditionalFormattingTable | back to summary |
|---|---|
| private final ConditionalFormattingTable _conditionalFormattingTable | |
| _sheet | back to summary |
|---|---|
| private final HSSFSheet _sheet | |
| HSSFSheetConditionalFormatting | back to summary |
|---|---|
| pack-priv HSSFSheetConditionalFormatting(HSSFSheet sheet) | |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(HSSFConditionalFormatting cf) Adds a copy of HSSFConditionalFormatting object to the sheet This method could be used to copy HSSFConditionalFormatting object from one sheet to another. For example: HSSFConditionalFormatting cf = sheet.getConditionalFormattingAt(index); newSheet.addConditionalFormatting(cf);
| |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(ConditionalFormatting cf) Implements org. Doc from org. Adds a copy of a ConditionalFormatting object to the sheet This method could be used to copy ConditionalFormatting object from one sheet to another. For example: ConditionalFormatting cf = sheet.getConditionalFormattingAt(index); newSheet.addConditionalFormatting(cf);
| |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule[] cfRules) Allows to add a new Conditional Formatting set to the sheet.
| |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, ConditionalFormattingRule[] cfRules) Implements org. Doc from org. Add a new Conditional Formatting set to the sheet.
| |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule rule1) | |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, ConditionalFormattingRule rule1) Implements org. Doc from org. Add a new Conditional Formatting to the sheet.
| |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, HSSFConditionalFormattingRule rule1, HSSFConditionalFormattingRule rule2) | |
| addConditionalFormatting | back to summary |
|---|---|
| public int addConditionalFormatting(CellRangeAddress[] regions, ConditionalFormattingRule rule1, ConditionalFormattingRule rule2) Implements org. Doc from org. Add a new Conditional Formatting consisting of two rules.
| |
| createConditionalFormattingColorScaleRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingColorScaleRule() Implements org. Create a Color Scale / Color Gradient conditional formatting rule. The thresholds and colours for it will be created, but will be
empty and require configuring with
| |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(byte comparisonOperation, String formula1, String formula2) Implements org. A factory method allowing to create a conditional formatting rule with a cell comparison operator TODO - formulas containing cell references are currently not parsed properly
| |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(byte comparisonOperation, String formula1) Implements org. Doc from org. Create a conditional formatting rule that compares a cell value to a formula calculated result, using an operator *
The type of the created condition is
| |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(String formula) Implements org. A factory method allowing to create a conditional formatting rule with a formula. TODO - formulas containing cell references are currently not parsed properly | |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(IconMultiStateFormatting. Implements org. A factory method allowing the creation of conditional formatting
rules using an Icon Set / Multi-State formatting.
The thresholds for it will be created, but will be empty
and require configuring with
| |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(HSSFExtendedColor color) Create a Databar conditional formatting rule. The thresholds and colour for it will be created, but will be
empty and require configuring with
| |
| createConditionalFormattingRule | back to summary |
|---|---|
| public HSSFConditionalFormattingRule createConditionalFormattingRule(ExtendedColor color) Implements org. Doc from org. Create a Databar conditional formatting rule. The thresholds and colour for it will be created, but will be
empty and require configuring with
| |
| getConditionalFormattingAt | back to summary |
|---|---|
| public HSSFConditionalFormatting getConditionalFormattingAt(int index) Implements org. gets Conditional Formatting object at a particular index
| |
| getNumConditionalFormattings | back to summary |
|---|---|
| public int getNumConditionalFormattings() Implements org.
| |
| removeConditionalFormatting | back to summary |
|---|---|
| public void removeConditionalFormatting(int index) Implements org. removes a Conditional Formatting object by index
| |