|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ss.format.CellFormatter
public abstract class CellFormatter
This is the abstract supertype for the various cell formatters.
Field Summary | |
---|---|
protected java.lang.String |
format
The original specified format. |
static java.util.Locale |
LOCALE
This is the locale used to get a consistent format result from which to work. |
Constructor Summary | |
---|---|
CellFormatter(java.lang.String format)
Creates a new formatter object, storing the format in format . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String format
public static final java.util.Locale LOCALE
Constructor Detail |
---|
public CellFormatter(java.lang.String format)
format
.
format
- The format.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |