public abstract class CellFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.zkoss.util.CacheMap |
_formatters |
protected java.lang.String |
format
The original specified format.
|
protected java.util.Locale |
locale |
Constructor and Description |
---|
CellFormatter(java.lang.String format,
java.util.Locale locale)
Creates a new formatter object, storing the format in
format . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object value)
Formats the value, returning the resulting string.
|
abstract void |
formatValue(java.lang.StringBuffer toAppendTo,
java.lang.Object value)
Format a value according the format string.
|
java.lang.String |
simpleFormat(java.lang.Object value)
Formats the value in the most basic way, returning the resulting string.
|
abstract void |
simpleValue(java.lang.StringBuffer toAppendTo,
java.lang.Object value)
Format a value according to the type, in the most basic way.
|
protected final java.lang.String format
protected final java.util.Locale locale
protected static final org.zkoss.util.CacheMap _formatters
public CellFormatter(java.lang.String format, java.util.Locale locale)
format
.format
- The format.public abstract void formatValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
toAppendTo
- The buffer to append to.value
- The value to format.public abstract void simpleValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
toAppendTo
- The buffer to append to.value
- The value to format.public java.lang.String format(java.lang.Object value)
value
- The value to format.public java.lang.String simpleFormat(java.lang.Object value)
value
- The value to format.Copyright © 2005-2010 Potix Corporation. All Rights Reserved.