T
- enum typepublic class EnumSelectFieldSupport<T extends Enum<T>> extends Object implements SelectFieldSupport<T>
Constructor and Description |
---|
EnumSelectFieldSupport(EnumDatasourceDefinition datasourceDefinition) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.data.Converter<T,String> |
defaultConverter()
Default converter which is used to convert value from datasource into String representation.
|
com.vaadin.data.provider.DataProvider<T,?> |
getDataProvider() |
com.vaadin.ui.IconGenerator<T> |
getIconGenerator() |
com.vaadin.ui.ItemCaptionGenerator<T> |
getItemCaptionGenerator() |
@Inject public EnumSelectFieldSupport(EnumDatasourceDefinition datasourceDefinition)
public com.vaadin.data.provider.DataProvider<T,?> getDataProvider()
getDataProvider
in interface SelectFieldSupport<T extends Enum<T>>
public com.vaadin.ui.ItemCaptionGenerator<T> getItemCaptionGenerator()
getItemCaptionGenerator
in interface SelectFieldSupport<T extends Enum<T>>
public com.vaadin.ui.IconGenerator<T> getIconGenerator()
getIconGenerator
in interface SelectFieldSupport<T extends Enum<T>>
public com.vaadin.data.Converter<T,String> defaultConverter()
SelectFieldSupport
JcrDatasourceDefinition
or from Option to Option.getValue()
in case of OptionListDefinition
If ValueBoundProperty.getConverterClass()
is set then defaultConverter is ignored - e.g. for case when
field model ValueBoundProperty.getType()
is not String type.defaultConverter
in interface SelectFieldSupport<T extends Enum<T>>
Copyright © 2020 Magnolia International Ltd.. All rights reserved.