com.vaadin.addon.jpacontainer.fieldfactory
Class SingleSelectConverter<T>

java.lang.Object
  extended by com.vaadin.addon.jpacontainer.fieldfactory.SingleSelectConverter<T>
All Implemented Interfaces:
com.vaadin.data.util.converter.Converter<Object,T>, Serializable

public class SingleSelectConverter<T>
extends Object
implements com.vaadin.data.util.converter.Converter<Object,T>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.data.util.converter.Converter
com.vaadin.data.util.converter.Converter.ConversionException
 
Constructor Summary
SingleSelectConverter(com.vaadin.ui.AbstractSelect select)
           
 
Method Summary
 T convertToModel(Object value, Class<? extends T> targetType, Locale locale)
           
 Object convertToPresentation(T value, Class<? extends Object> targetType, Locale locale)
           
 Class<T> getModelType()
           
 Class<Object> getPresentationType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleSelectConverter

public SingleSelectConverter(com.vaadin.ui.AbstractSelect select)
Method Detail

convertToModel

public T convertToModel(Object value,
                        Class<? extends T> targetType,
                        Locale locale)
                 throws com.vaadin.data.util.converter.Converter.ConversionException
Specified by:
convertToModel in interface com.vaadin.data.util.converter.Converter<Object,T>
Throws:
com.vaadin.data.util.converter.Converter.ConversionException

convertToPresentation

public Object convertToPresentation(T value,
                                    Class<? extends Object> targetType,
                                    Locale locale)
                             throws com.vaadin.data.util.converter.Converter.ConversionException
Specified by:
convertToPresentation in interface com.vaadin.data.util.converter.Converter<Object,T>
Throws:
com.vaadin.data.util.converter.Converter.ConversionException

getModelType

public Class<T> getModelType()
Specified by:
getModelType in interface com.vaadin.data.util.converter.Converter<Object,T>

getPresentationType

public Class<Object> getPresentationType()
Specified by:
getPresentationType in interface com.vaadin.data.util.converter.Converter<Object,T>


Copyright © 2013 Vaadin Ltd. All rights reserved.