public class ExcelNumberFormat
extends java.lang.Object
Constructor and Description |
---|
ExcelNumberFormat(int idx,
java.lang.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) |
java.lang.String |
getFormat() |
int |
getIdx() |
public ExcelNumberFormat(int idx, java.lang.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 java.lang.String getFormat()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.