public class LocaleSelectFieldSupport extends Object implements SelectFieldSupport<Locale>
SelectFieldSupport
implementation based on available Locale
s for content.
defaultConverter()
uses IETF BCP 47 language tag. See Locale.toLanguageTag()
and Locale.forLanguageTag(String)
.Constructor and Description |
---|
LocaleSelectFieldSupport(LocaleContext localeContext,
info.magnolia.context.Context context) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.data.Converter<Locale,String> |
defaultConverter()
Default converter which is used to convert value from datasource into String representation.
|
info.magnolia.ui.datasource.locale.LocaleSelectFieldSupport.LocaleListProvider |
getDataProvider() |
com.vaadin.ui.IconGenerator<Locale> |
getIconGenerator() |
com.vaadin.ui.ItemCaptionGenerator<Locale> |
getItemCaptionGenerator() |
@Inject public LocaleSelectFieldSupport(LocaleContext localeContext, info.magnolia.context.Context context)
public info.magnolia.ui.datasource.locale.LocaleSelectFieldSupport.LocaleListProvider getDataProvider()
getDataProvider
in interface SelectFieldSupport<Locale>
public com.vaadin.ui.ItemCaptionGenerator<Locale> getItemCaptionGenerator()
getItemCaptionGenerator
in interface SelectFieldSupport<Locale>
public com.vaadin.ui.IconGenerator<Locale> getIconGenerator()
getIconGenerator
in interface SelectFieldSupport<Locale>
public com.vaadin.data.Converter<Locale,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<Locale>
Copyright © 2020 Magnolia International Ltd.. All rights reserved.