|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
org.jboss.util.propertyeditor.DateEditor
public class DateEditor
A property editor for Date
.
Constructor Summary | |
---|---|
DateEditor()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateEditor()
Method Detail |
---|
public static void initialize()
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
value
- a java.util.Datepublic void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- the string datepublic String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |