public class CellGeneralFormatter extends CellFormatter
format, locale
Constructor and Description |
---|
CellGeneralFormatter()
Creates a new general formatter.
|
CellGeneralFormatter(java.util.Locale locale)
Creates a new general formatter.
|
Modifier and Type | Method and Description |
---|---|
void |
formatValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
The general style is not quite the same as any other, or any combination of others.
(总体风格与任何其他风格或其他风格的任何组合都不完全相同。)
|
void |
simpleValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
Equivalent to
formatValue(StringBuffer,Object) .
(等效于 formatValue(StringBuffer,Object)。)
|
format, simpleFormat
public CellGeneralFormatter()
public CellGeneralFormatter(java.util.Locale locale)
public void formatValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
formatValue
in class
CellFormatter
(类 CellFormatter 中的 formatValue)
toAppendTo
- The buffer to append to.
(toAppendTo - 要附加到的缓冲区。)
value
- The value to format.
(value - 要格式化的值。)
public void simpleValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
formatValue(StringBuffer,Object)
. Format a value according to the type, in the most basic way.
NOTE: this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself..
(等效于 formatValue(StringBuffer,Object)。以最基本的方式根据类型格式化一个值。注意:此方法必须是线程安全的!特别是,如果它使用非线程安全的 Format 实例,即 DateFormat,则必须在方法上同步此方法,如果格式是最终属性,或者在格式实例本身上。)
simpleValue
in class
CellFormatter
(CellFormatter 类中的 simpleValue)
toAppendTo
- The buffer to append to.
(toAppendTo - 要附加到的缓冲区。)
value
- The value to format.
(value - 要格式化的值。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.