public class CellElapsedFormatter extends CellFormatter
format, locale
Constructor and Description |
---|
CellElapsedFormatter(java.lang.String pattern)
Creates a elapsed time formatter.
|
Modifier and Type | Method and Description |
---|---|
void |
formatValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
Format a value according the format string.
(根据格式字符串格式化一个值。)
|
void |
simpleValue(java.lang.StringBuffer toAppendTo, java.lang.Object value)
Format a value according to the type, in the most basic way.
(以最基本的方式根据类型格式化一个值。)
|
format, simpleFormat
public CellElapsedFormatter(java.lang.String pattern)
pattern
- The pattern to parse.
(pattern - 要解析的模式。)
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)
For a date, this is "mm/d/y".
(以最基本的方式根据类型格式化一个值。注意:此方法必须是线程安全的!特别是,如果它使用非线程安全的 Format 实例,即 DateFormat,则此方法必须在方法上同步,如果格式是最终属性,或者在格式实例本身上同步。对于日期,这是“mm/d/y”。)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.