Package org.opencms.ui.util
Class CmsNullToEmptyConverter
java.lang.Object
org.opencms.ui.util.CmsNullToEmptyConverter
- All Implemented Interfaces:
com.vaadin.v7.data.util.converter.Converter<String,
,String> Serializable
public class CmsNullToEmptyConverter
extends Object
implements com.vaadin.v7.data.util.converter.Converter<String,String>
Converts null values to an empty string for the input widgets.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.v7.data.util.converter.Converter
com.vaadin.v7.data.util.converter.Converter.ConversionException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToModel
(String value, Class<? extends String> targetType, Locale locale) convertToPresentation
(String value, Class<? extends String> targetType, Locale locale)
-
Constructor Details
-
CmsNullToEmptyConverter
public CmsNullToEmptyConverter()
-
-
Method Details
-
convertToModel
-
convertToPresentation
public String convertToPresentation(String value, Class<? extends String> targetType, Locale locale) throws com.vaadin.v7.data.util.converter.Converter.ConversionException - Specified by:
convertToPresentation
in interfacecom.vaadin.v7.data.util.converter.Converter<String,
String> - Throws:
com.vaadin.v7.data.util.converter.Converter.ConversionException
- See Also:
-
com.vaadin.data.util.converter.Converter#convertToPresentation(java.lang.Object, java.lang.Class, java.util.Locale)
-
getModelType
-
getPresentationType
-