public class DateEditor extends PropertyEditorSupport<Date>
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, addPropertyChangeListener, firePropertyChange, getType, getValue, removePropertyChangeListener, removePropertyChangeListenerfirePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, setSource, supportsCustomEditorpublic static void initialize()
public void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupport<Date>value - a java.util.Datepublic void setAsText(String text)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupport<Date>text - the string datepublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport<Date>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.