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.
(请谨慎使用,首选工厂方法以确保 id/格式关系不会被破坏或混淆。保持公开,因此 ConditionalFormattingRule.getNumberFormat() 实现可以使用它。)
idx
- Excel number format index, either a built-in or a higher custom # mapped in the workbook style table
(idx - Excel 数字格式索引,在工作簿样式表中映射的内置或更高的自定义#)
format
- Excel number format string for the index
(format - 索引的 Excel 数字格式字符串)
public static ExcelNumberFormat from(CellStyle style)
style
-
(风格 -)
public static ExcelNumberFormat from(Cell cell, ConditionalFormattingEvaluator cfEvaluator)
cell
- cell to extract format from
(cell - 要从中提取格式的单元格)
cfEvaluator
- ConditionalFormattingEvaluator to use, or null if none in this context
(cfEvaluator - 要使用的 ConditionalFormattingEvaluator,如果在此上下文中没有,则为 null)
public int getIdx()
public java.lang.String getFormat()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.