public class DateEditor extends PropertyEditorSupport
Date.| Constructor and Description |
|---|
DateEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText()
Returns either the cached string date, or the stored
java.util.Date instance formated to string using the
last of the registered DateFormat(s)
|
static void |
initialize()
Setup the parsing formats.
|
void |
setAsText(String text)
Parse the text into a java.util.Date by trying
one by one the registered DateFormat(s).
|
void |
setValue(Object value)
Sets directly the java.util.Date value
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorpublic static void initialize()
public void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportvalue - a java.util.Datepublic void setAsText(String text)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - the string datepublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportCopyright © 2015 JBoss by Red Hat. All rights reserved.