public final class ListPropertyConverter extends Object implements com.vaadin.data.util.converter.Converter<String,List>
Constructor and Description |
---|
ListPropertyConverter(Class<List> modelType,
String property,
String column)
Instantiates a new collection property converter.
|
ListPropertyConverter(Class<List> modelType,
String property,
String column,
String fallbackColumn)
Instantiates a new list property converter.
|
Modifier and Type | Method and Description |
---|---|
List |
convertToModel(String value,
Class<? extends List> targetType,
Locale locale) |
String |
convertToPresentation(List value,
Class<? extends String> targetType,
Locale locale) |
String |
getColumn()
Gets the column.
|
Class<List> |
getModelType() |
Class<String> |
getPresentationType()
Gets the presentation type.
|
public ListPropertyConverter(Class<List> modelType, String property, String column)
modelType
- the model typeproperty
- the propertycolumn
- the columnpublic String getColumn()
public List convertToModel(String value, Class<? extends List> targetType, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException
public String convertToPresentation(List value, Class<? extends String> targetType, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException
Copyright © 2008–2017 www.hack23.com. All rights reserved.