|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.xssf.usermodel.XSSFDataFormat
public class XSSFDataFormat
Handles data formats for XSSF. Per Microsoft Excel 2007+ format limitations: Workbooks support between 200 and 250 "number formats" (POI calls them "data formats") So short or even byte would be acceptable data types to use for referring to data format indices. https://support.office.com/en-us/article/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3
Constructor Summary | |
---|---|
protected |
XSSFDataFormat(StylesTable stylesSource)
|
Method Summary | |
---|---|
java.lang.String |
getFormat(int index)
Deprecated. POI 3.16 beta 1 - use getFormat(short) instead |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XSSFDataFormat(StylesTable stylesSource)
Method Detail |
---|
public short getFormat(java.lang.String format)
getFormat
in interface DataFormat
format
- string matching a built-in format
public java.lang.String getFormat(short index)
getFormat
in interface DataFormat
index
- of a format
null
if there is not a format at that index@Removal(version="3.18") public java.lang.String getFormat(int index)
getFormat(short)
instead
index
- of a format
null
if there is not a format at that indexpublic void putFormat(short index, java.lang.String format)
fmt
This may be used to override built-in number formats.
index
- the number format IDformat
- the number format code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |