public class XSSFDataFormat extends java.lang.Object implements DataFormat
Modifier | Constructor and Description |
---|---|
protected |
XSSFDataFormat(StylesTable stylesSource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat(short index)
get the format string that matches the given format index
(获取与给定格式索引匹配的格式字符串)
|
short |
getFormat(java.lang.String format)
Get the format index that matches the given format string, creating a new format entry if required.
(获取与给定格式字符串匹配的格式索引,如果需要,创建一个新的格式条目。)
|
void |
putFormat(short index, java.lang.String format)
Add a number format with a specific ID into the number format style table.
(将具有特定 ID 的数字格式添加到数字格式样式表中。)
|
protected XSSFDataFormat(StylesTable stylesSource)
public short getFormat(java.lang.String format)
getFormat
in interface
DataFormat
(接口 DataFormat 中的 getFormat)
format
- string matching a built-in format
(format - 匹配内置格式的字符串)
public java.lang.String getFormat(short index)
getFormat
in interface
DataFormat
(接口 DataFormat 中的 getFormat)
index
- of a format
(索引 - 一种格式)
null
if there is not a format at that index
(格式索引处表示的字符串,如果该索引处没有格式,则为 null)
public void putFormat(short index, java.lang.String format)
fmt
This may be used to override built-in number formats.
(将具有特定 ID 的数字格式添加到数字格式样式表中。如果已存在具有相同 ID 的格式,则使用 fmt 覆盖格式代码这可用于覆盖内置数字格式。)
index
- the number format ID
(index - 数字格式 ID)
format
- the number format code
(format - 数字格式代码)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.