Class CmsComboNullToEmptyConverter

java.lang.Object
org.opencms.ui.util.CmsComboNullToEmptyConverter
All Implemented Interfaces:
com.vaadin.v7.data.util.converter.Converter<Object,String>, Serializable

public class CmsComboNullToEmptyConverter extends Object implements com.vaadin.v7.data.util.converter.Converter<Object,String>
Converts null values to an empty string for the input widgets.

See Also:
  • Constructor Details

  • Method Details

    • convertToModel

      public String convertToModel(Object value, Class<? extends String> targetType, Locale locale) throws com.vaadin.v7.data.util.converter.Converter.ConversionException
      Specified by:
      convertToModel in interface com.vaadin.v7.data.util.converter.Converter<Object,String>
      Throws:
      com.vaadin.v7.data.util.converter.Converter.ConversionException
      See Also:
      • com.vaadin.data.util.converter.Converter#convertToModel(java.lang.Object, java.lang.Class, java.util.Locale)
    • convertToPresentation

      public Object convertToPresentation(String value, Class<? extends Object> targetType, Locale locale) throws com.vaadin.v7.data.util.converter.Converter.ConversionException
      Specified by:
      convertToPresentation in interface com.vaadin.v7.data.util.converter.Converter<Object,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

      Specified by:
      getModelType in interface com.vaadin.v7.data.util.converter.Converter<Object,String>
      See Also:
      • com.vaadin.data.util.converter.Converter#getModelType()
    • getPresentationType

      Specified by:
      getPresentationType in interface com.vaadin.v7.data.util.converter.Converter<Object,String>
      See Also:
      • com.vaadin.data.util.converter.Converter#getPresentationType()