|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
photospace.beans.DateEditor
Constructor Summary | |
DateEditor(java.text.DateFormat dateFormat,
boolean allowEmpty)
Create a new instance, using the given DateFormat for parsing and rendering. |
Method Summary | |
void |
addDateFormat(java.text.DateFormat format)
|
java.lang.String |
getAsText()
Format the Date as String, using the specified DateFormat. |
void |
setAsText(java.lang.String text)
|
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateEditor(java.text.DateFormat dateFormat, boolean allowEmpty)
The allowEmpty parameter states if an empty String should be allowed for parsing, i.e. get interpreted as null value. Else, an IllegalArgumentException gets thrown in that case.
dateFormat
- DateFormat to use for parsing and renderingallowEmpty
- if empty strings should be allowedMethod Detail |
public void addDateFormat(java.text.DateFormat format)
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String getAsText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |