T - Value typeITEM - Item typeB - Concrete builder typepublic interface OptionsSingleSelectConfigurator<T,ITEM,B extends OptionsSingleSelectConfigurator<T,ITEM,B>> extends SingleSelectableInputConfigurator<T,ITEM,B>, HasLabelConfigurator<B>, HasItemEnableConfigurator<ITEM,B>
SingleSelect input builder using a RadioButtonGroup as input component.ItemSetConfigurator.ItemCaptionGenerator<ITEM>InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfiguratorHasStyleConfigurator.BaseHasStyleConfiguratorHasEnabledConfigurator.BaseHasEnabledConfiguratorHasLabelConfigurator.BaseHasLabelConfigurator| Modifier and Type | Method and Description |
|---|---|
static <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> |
create(Class<T> type)
Get a new
OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder to create a SingleSelect which uses a
RadioButtonGroup as input component. |
static <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> |
create(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Get a new
OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder to create a SingleSelect which uses a
RadioButtonGroup as input component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty)
Get a new
OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder to create a Property model based
SingleSelect, which uses a RadioButtonGroup as input component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Get a new
OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder to create a Property model based
SingleSelect, which uses a RadioButtonGroup as input component. |
B |
renderer(com.vaadin.flow.data.renderer.ComponentRenderer<? extends com.vaadin.flow.component.Component,ITEM> renderer)
Sets the
ComponentRenderer responsible to render the individual items in the list of possible choices. |
dataSourceenumCaptionGeneratorwithSelectionListenerreadOnly, readOnly, required, required, withAdapter, withReadonlyChangeListener, withValueChangeListenercreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamecreate, styleName, styleNamescreate, disabled, enableddeferLocalization, withDeferredLocalizationisDeferredLocalizationEnableditemCaption, itemCaption, itemCaption, itemCaptionGeneratorcreate, create, label, label, labelitemEnabledProviderB renderer(com.vaadin.flow.data.renderer.ComponentRenderer<? extends com.vaadin.flow.component.Component,ITEM> renderer)
ComponentRenderer responsible to render the individual items in the list of possible choices.
The renderer is applied to each item to create a component which represents the item.renderer - the item renderer, not nullstatic <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> create(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder to create a SingleSelect which uses a
RadioButtonGroup as input component.T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> create(Class<T> type)
OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder to create a SingleSelect which uses a
RadioButtonGroup as input component.T - Value typetype - Selection value type (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty)
OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder to create a Property model based
SingleSelect, which uses a RadioButtonGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder to create a Property model based
SingleSelect, which uses a RadioButtonGroup as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)itemConverter - The function to use to convert a selection value into the corresponding PropertyBox
itemOptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderCopyright © 2020 The Holon Platform. All rights reserved.