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, removePropertyChangeListener
firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, setSource, supportsCustomEditor
public static void initialize()
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport<Date>
value
- a java.util.Datepublic void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport<Date>
text
- the string datepublic String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport<Date>
Copyright © 2014 JBoss by Red Hat. All rights reserved.