public class DateEditor extends PropertyEditorSupport
| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
DATE_PATTERNS
日期格式配比
|
| 构造器和说明 |
|---|
DateEditor(boolean emptyAsNull) |
DateEditor(boolean emptyAsNull,
String dateFormat) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAsText()
获取日期
|
void |
setAsText(String text)
设置日期
|
public static final String[] DATE_PATTERNS
public DateEditor(boolean emptyAsNull)
emptyAsNull - 是否将空转换为nullpublic DateEditor(boolean emptyAsNull,
String dateFormat)
emptyAsNull - 是否将空转换为nulldateFormat - 日期格式public String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupportpublic void setAsText(String text)
setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupporttext - 字符Copyright © 2020. All rights reserved.