public abstract class CellFormatter extends Object
Constructor and Description |
---|
CellFormatter(Locale locale,
String format)
Creates a new formatter object, storing the format in
format . |
CellFormatter(String format)
Creates a new formatter object, storing the format in
format . |
Modifier and Type | Method and Description |
---|---|
String |
format(Object value)
Formats the value, returning the resulting string.
|
abstract void |
formatValue(StringBuffer toAppendTo,
Object value)
Format a value according the format string.
|
String |
simpleFormat(Object value)
Formats the value in the most basic way, returning the resulting string.
|
abstract void |
simpleValue(StringBuffer toAppendTo,
Object value)
Format a value according to the type, in the most basic way.
|
public CellFormatter(String format)
format
.format
- The format.public abstract void formatValue(StringBuffer toAppendTo, Object value)
toAppendTo
- The buffer to append to.value
- The value to format.public abstract void simpleValue(StringBuffer toAppendTo, Object value)
toAppendTo
- The buffer to append to.value
- The value to format.public String format(Object value)
value
- The value to format.Copyright © 2010 - 2020 Adobe. All Rights Reserved