public class JcrSelectFieldSupport extends Object implements SelectFieldSupport<javax.jcr.Node>
SelectFieldSupport
implementation for the JCR node based datasources.Constructor and Description |
---|
JcrSelectFieldSupport(JcrDatasourceDefinition datasourceDefinition,
JcrDatasource datasource) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.data.Converter<javax.jcr.Node,String> |
defaultConverter()
Default converter which is used to convert value from datasource into String representation.
|
com.vaadin.data.provider.DataProvider<javax.jcr.Node,?> |
getDataProvider() |
com.vaadin.ui.IconGenerator<javax.jcr.Node> |
getIconGenerator() |
com.vaadin.ui.ItemCaptionGenerator<javax.jcr.Node> |
getItemCaptionGenerator() |
@Inject public JcrSelectFieldSupport(JcrDatasourceDefinition datasourceDefinition, JcrDatasource datasource)
public com.vaadin.data.provider.DataProvider<javax.jcr.Node,?> getDataProvider()
getDataProvider
in interface SelectFieldSupport<javax.jcr.Node>
public com.vaadin.ui.ItemCaptionGenerator<javax.jcr.Node> getItemCaptionGenerator()
getItemCaptionGenerator
in interface SelectFieldSupport<javax.jcr.Node>
public com.vaadin.ui.IconGenerator<javax.jcr.Node> getIconGenerator()
getIconGenerator
in interface SelectFieldSupport<javax.jcr.Node>
public com.vaadin.data.Converter<javax.jcr.Node,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<javax.jcr.Node>
Copyright © 2021 Magnolia International Ltd.. All rights reserved.