public class DateTypeEditor extends PropertyEditorSupport
| 限定符和类型 | 字段和说明 |
|---|---|
static DateFormat |
DF_LONG |
static DateFormat |
DF_MONTH |
static DateFormat |
DF_SHORT |
static DateFormat |
DF_YEAR |
static int |
MONTH_DATE |
static int |
SHORT_DATE
短类型日期长度
|
static int |
YEAR_DATE |
| 构造器和说明 |
|---|
DateTypeEditor() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAsText()
Format the Date as String, using the specified DateFormat.
|
void |
setAsText(String text) |
public static final DateFormat DF_LONG
public static final DateFormat DF_SHORT
public static final DateFormat DF_YEAR
public static final DateFormat DF_MONTH
public static final int SHORT_DATE
public static final int YEAR_DATE
public static final int MONTH_DATE
public void setAsText(String text) throws IllegalArgumentException
setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupportCopyright © 2022. All rights reserved.