public class ExcelNumberFormat extends Object
Constructor and Description |
---|
ExcelNumberFormat(int idx,
String format)
Use this carefully, prefer factory methods to ensure id/format relationships are not broken or confused.
|
Modifier and Type | Method and Description |
---|---|
static ExcelNumberFormat |
from(Cell cell,
ConditionalFormattingEvaluator cfEvaluator) |
static ExcelNumberFormat |
from(CellStyle style) |
String |
getFormat() |
int |
getIdx() |
public ExcelNumberFormat(int idx, String format)
ConditionalFormattingRule.getNumberFormat()
implementations can use it.idx
- Excel number format index, either a built-in or a higher custom # mapped in the workbook style tableformat
- Excel number format string for the indexpublic static ExcelNumberFormat from(CellStyle style)
style
- public static ExcelNumberFormat from(Cell cell, ConditionalFormattingEvaluator cfEvaluator)
cell
- cell to extract format fromcfEvaluator
- ConditionalFormattingEvaluator to use, or null if none in this contextpublic int getIdx()
public String getFormat()
Copyright © 2010 - 2020 Adobe. All Rights Reserved