public class CellDateFormatter extends CellFormatter
format, locale| Constructor and Description | 
|---|
CellDateFormatter(java.util.Locale locale, java.lang.String format) 
            
              Creates a new date formatter with the given specification. 
               |  
          
CellDateFormatter(java.lang.String format) 
            
              Creates a new date formatter with the given specification. 
               |  
          
| 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, simpleFormatpublic CellDateFormatter(java.lang.String format)
format - The format. 
            (格式 - 格式。) 
           public CellDateFormatter(java.util.Locale locale,
                         java.lang.String format) 
          locale - The locale. 
            (语言环境 - 语言环境。) 
           format - The format. 
            (格式 - 格式。) 
           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.