Package org.apache.xbean.propertyeditor
Class DateEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.xbean.propertyeditor.AbstractConverter
org.apache.xbean.propertyeditor.DateEditor
- All Implemented Interfaces:
PropertyEditor,Converter
A property editor for Date typed properties.
- Version:
- $Rev$ $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ObjectcomplexParse(String text) protected ObjecttoObjectImpl(String text) Convert the text value of the property into a Date object instance.protected StringtoStringImpl(Object value) Converts the supplied object to text.Methods inherited from class org.apache.xbean.propertyeditor.AbstractConverter
getAsText, getType, getValue, setAsText, setValue, toObject, toStringMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
-
Field Details
-
formats
-
-
Constructor Details
-
DateEditor
public DateEditor()
-
-
Method Details
-
toObjectImpl
Convert the text value of the property into a Date object instance.- Specified by:
toObjectImplin classAbstractConverter- Parameters:
text- the text to convert- Returns:
- a Date object constructed from the property text value.
- Throws:
PropertyEditorException- Unable to parse the string value into a Date.
-
complexParse
- Throws:
ParseException
-
toStringImpl
Description copied from class:AbstractConverterConverts the supplied object to text. The supplied object will always be an instance of the editor type, and specifically will never be null or a String (unless this is the String editor).- Overrides:
toStringImplin classAbstractConverter- Parameters:
value- an instance of the editor type- Returns:
- the text equivalent of the value
-