com.github.ltsopensource.admin.web.support
public class DateEditor extends PropertyEditorSupport
| Constructor and Description |
|---|
DateEditor() |
DateEditor(DateFormat dateFormat) |
DateEditor(DateFormat dateFormat,
boolean allowEmpty) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText()
Format the Date as String, using the specified DateFormat.
|
void |
setAsText(String text)
Parse the Date from the given text, using the specified DateFormat.
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic DateEditor()
public DateEditor(DateFormat dateFormat)
public DateEditor(DateFormat dateFormat, boolean allowEmpty)
public void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportCopyright © 2016. All rights reserved.