public class DateEditor extends AbstractConverter
Constructor and Description |
---|
DateEditor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
toObjectImpl(String text)
Convert the text value of the property into a Date object instance.
|
protected String |
toStringImpl(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
protected Object toObjectImpl(String text)
toObjectImpl
in class AbstractConverter
text
- the text to convertPropertyEditorException
- Unable to parse the string value into a Date.protected String toStringImpl(Object value)
AbstractConverter
toStringImpl
in class AbstractConverter
value
- an instance of the editor typeCopyright © 2005–2019. All rights reserved.