public class CellNumberFormatter extends CellFormatter
| Constructor and Description |
|---|
CellNumberFormatter(Locale locale,
String format)
Creates a new cell number formatter.
|
CellNumberFormatter(String format)
Creates a new cell number formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
formatValue(StringBuffer toAppendTo,
Object valueObject)
Format a value according the format string.
|
void |
simpleValue(StringBuffer toAppendTo,
Object value)
Format a value according to the type, in the most basic way.
|
format, simpleFormatpublic CellNumberFormatter(String format)
format - The format to parse.public void formatValue(StringBuffer toAppendTo, Object valueObject)
formatValue in class CellFormattertoAppendTo - The buffer to append to.valueObject - The value to format.public void simpleValue(StringBuffer toAppendTo, Object value)
For a number, this is "#" for integer values, and "#.#" for floating-point values.
simpleValue in class CellFormattertoAppendTo - The buffer to append to.value - The value to format.Copyright © 2010 - 2020 Adobe. All Rights Reserved