public class CellDateFormatter extends CellFormatter
format, locale
Constructor and Description |
---|
CellDateFormatter(java.util.Locale locale,
java.lang.String format)
Creates a new date formatter with the given specification.
|
CellDateFormatter(java.lang.String format)
Creates a new date formatter with the given specification.
|
Modifier and Type | Method and Description |
---|---|
void |
formatValue(java.lang.StringBuffer toAppendTo,
java.lang.Object value)
Format a value according the format string.
|
void |
simpleValue(java.lang.StringBuffer toAppendTo,
java.lang.Object value)
Format a value according to the type, in the most basic way.
|
format, simpleFormat
public CellDateFormatter(java.lang.String format)
format
- The format.public CellDateFormatter(java.util.Locale locale, java.lang.String format)
locale
- The locale.format
- The format.public void formatValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
formatValue
in class CellFormatter
toAppendTo
- The buffer to append to.value
- The value to format.public void simpleValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
For a date, this is "mm/d/y".
simpleValue
in class CellFormatter
toAppendTo
- The buffer to append to.value
- The value to format.Copyright 2020 The Apache Software Foundation or its licensors, as applicable.