public class DateEditor extends AbstractConverter
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.text.DateFormat> |
formats |
Constructor and Description |
---|
DateEditor() |
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
complexParse(java.lang.String text) |
protected java.lang.Object |
toObjectImpl(java.lang.String text)
Convert the text value of the property into a Date object instance.
|
protected java.lang.String |
toStringImpl(java.lang.Object value)
Converts the supplied object to text.
|
getAsText, getType, getValue, setAsText, setValue, toObject, toString
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
protected java.lang.Object toObjectImpl(java.lang.String text)
toObjectImpl
in class AbstractConverter
text
- the text to convertPropertyEditorException
- Unable to parse the string value into a Date.private java.lang.Object complexParse(java.lang.String text) throws java.text.ParseException
java.text.ParseException
protected java.lang.String toStringImpl(java.lang.Object value)
AbstractConverter
toStringImpl
in class AbstractConverter
value
- an instance of the editor type