We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.util.converter.
Class DefaultConverterFactory
- java.lang.Object
-
- com.vaadin.data.util.converter.DefaultConverterFactory
-
All Implemented Interfaces:
public class DefaultConverterFactory extends Object implements ConverterFactory
Default implementation of
ConverterFactory
. Provides converters for standard types likeString
,Double
andDate
.Custom converters can be provided by extending this class and using
VaadinSession.setConverterFactory(ConverterFactory)
.Since:
7.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description DefaultConverterFactory()
-
Method Summary
All Methods Modifier and Type Method Description <PRESENTATION,MODEL>
Converter<PRESENTATION,MODEL>createConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)
protected Converter<Date,?>
createDateConverter(Class<?> sourceType)
protected Converter<String,?>
createStringConverter(Class<?> sourceType)
protected <PRESENTATION,MODEL>
Converter<PRESENTATION,MODEL>findConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)
-
-
-
Method Detail
-
createConverter
public <PRESENTATION,MODEL> Converter<PRESENTATION,MODEL> createConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)
Specified by:
createConverter
in interfaceConverterFactory
-
findConverter
protected <PRESENTATION,MODEL> Converter<PRESENTATION,MODEL> findConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)
-
-