| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final DateFormat | |
| private static final Calendar | |
| private static final int | |
| private String | |
| private boolean | |
| private boolean | |
| private static CellDateFormatter |
| Access | Constructor and Description |
|---|---|
| public | CellDateFormatter(String
The format. format)Creates a new date formatter with the given specification. |
| public | CellDateFormatter(Locale
The locale. locale, String The format. format)Creates a new date formatter with the given specification. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | formatValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Implements abstract org. Format a value according the format string. |
| public void | simpleValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Implements abstract org. Format a value according to the type, in the most basic way. |
| amPmUpper | back to summary |
|---|---|
| private boolean amPmUpper | |
| dateFmt | back to summary |
|---|---|
| private final DateFormat dateFmt | |
| EXCEL_EPOCH_CAL | back to summary |
|---|---|
| private static final Calendar EXCEL_EPOCH_CAL | |
| NUM_MILLISECONDS_IN_DAY | back to summary |
|---|---|
| private static final int NUM_MILLISECONDS_IN_DAY | |
| sFmt | back to summary |
|---|---|
| private String sFmt | |
| showAmPm | back to summary |
|---|---|
| private boolean showAmPm | |
| showM | back to summary |
|---|---|
| private boolean showM | |
| SIMPLE_DATE_FORMATTER | back to summary |
|---|---|
| private static CellDateFormatter SIMPLE_DATE_FORMATTER | |
| CellDateFormatter | back to summary |
|---|---|
| public CellDateFormatter(String format) Creates a new date formatter with the given specification.
| |
| CellDateFormatter | back to summary |
|---|---|
| public CellDateFormatter(Locale locale, String format) Creates a new date formatter with the given specification. | |
| formatValue | back to summary |
|---|---|
| public synchronized void formatValue(StringBuffer toAppendTo, Object value) Implements abstract org. Doc from org. Format a value according the format string. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |
| simpleValue | back to summary |
|---|---|
| public void simpleValue(StringBuffer toAppendTo, Object value) Implements abstract org. Doc from org. Format a value according to the type, in the most basic way. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
For a date, this is
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | handlePart(Matcher m, String part, CellFormatType type, StringBuffer desc)
Implements org.
|
| public void |
| hLen | back to summary |
|---|---|
| private int hLen | |
| hStart | back to summary |
|---|---|
| private int hStart | |
| mLen | back to summary |
|---|---|
| private int mLen | |
| mStart | back to summary |
|---|---|
| private int mStart | |
| DatePartHandler | back to summary |
|---|---|
| pack-priv DatePartHandler() | |
| finish | back to summary |
|---|---|
| public void finish(StringBuffer toAppendTo) | |
| handlePart | back to summary |
|---|---|
| public String handlePart(Matcher m, String part, CellFormatType type, StringBuffer desc) Implements org.
| |
| updatePositions | back to summary |
|---|---|
| public void updatePositions(int pos, int offset) | |