Package org.apache.poi.ss.format
Class CellFormatter
java.lang.Object
org.apache.poi.ss.format.CellFormatter
- Direct Known Subclasses:
CellDateFormatter,CellElapsedFormatter,CellGeneralFormatter,CellNumberFormatter,CellTextFormatter
This is the abstract supertype for the various cell formatters.
- Author:
- Ken Arnold, Industrious Media LLC
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCellFormatter(String format) Creates a new formatter object, storing the format informat.CellFormatter(Locale locale, String format) Creates a new formatter object, storing the format informat. -
Method Summary
Modifier and TypeMethodDescriptionFormats the value, returning the resulting string.abstract voidformatValue(StringBuffer toAppendTo, Object value) Format a value according the format string.simpleFormat(Object value) Formats the value in the most basic way, returning the resulting string.abstract voidsimpleValue(StringBuffer toAppendTo, Object value) Format a value according to the type, in the most basic way.
-
Field Details
-
format
The original specified format. -
locale
-
-
Constructor Details
-
Method Details
-
formatValue
Format a value according the format string.- Parameters:
toAppendTo- The buffer to append to.value- The value to format.
-
simpleValue
Format a value according to the type, in the most basic way.- Parameters:
toAppendTo- The buffer to append to.value- The value to format.
-
format
Formats the value, returning the resulting string.- Parameters:
value- The value to format.- Returns:
- The value, formatted.
-
simpleFormat
Formats the value in the most basic way, returning the resulting string.- Parameters:
value- The value to format.- Returns:
- The value, formatted.
-