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

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

public class MultiSelectConverter<T>
extends Object
implements com.vaadin.data.util.converter.Converter<Collection<Object>,Collection<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
MultiSelectConverter(com.vaadin.ui.AbstractSelect select)
           
 
Method Summary
 Collection<T> convertToModel(Collection<Object> value, Class<? extends Collection<T>> targetType, Locale locale)
           
 Collection<Object> convertToPresentation(Collection<T> value, Class<? extends Collection<Object>> targetType, Locale locale)
           
 Class<Collection<T>> getModelType()
           
 Class<Collection<Object>> getPresentationType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSelectConverter

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

convertToPresentation

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

convertToModel

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

getModelType

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

getPresentationType

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


Copyright © 2013 Vaadin Ltd. All rights reserved.