|
|||||||||
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. |
protected java.util.Locale |
locale
|
Constructor Summary | |
---|---|
CellFormatter(java.util.Locale locale,
java.lang.String format)
Creates a new formatter object, storing the format in format . |
|
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
protected final java.util.Locale locale
Constructor Detail |
---|
public CellFormatter(java.lang.String format)
format
.
format
- The format.public CellFormatter(java.util.Locale locale, java.lang.String format)
format
.
locale
- The locale.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 |