public class XSSFDataFormat extends Object implements DataFormat
| Modifier | Constructor and Description |
|---|---|
protected |
XSSFDataFormat(StylesTable stylesSource) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat(short index)
get the format string that matches the given format index
|
short |
getFormat(String format)
Get the format index that matches the given format
string, creating a new format entry if required.
|
void |
putFormat(short index,
String format)
Add a number format with a specific ID into the number format style table.
|
protected XSSFDataFormat(StylesTable stylesSource)
public short getFormat(String format)
getFormat in interface DataFormatformat - string matching a built-in formatpublic String getFormat(short index)
getFormat in interface DataFormatindex - of a formatnull if there is not a format at that indexpublic void putFormat(short index,
String format)
fmt
This may be used to override built-in number formats.index - the number format IDformat - the number format code