public abstract class CellFormatter extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.zkoss.util.CacheMap |
_formatters |
protected String |
format
The original specified format.
|
protected Locale |
locale |
Constructor and Description |
---|
CellFormatter(String format,
Locale locale)
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.
|
protected final String format
protected final Locale locale
protected static final org.zkoss.util.CacheMap _formatters
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 © 2020. All rights reserved.