T - Value typeITEM - Item typeB - Concrete builder typepublic interface SingleSelectConfigurator<T,ITEM,B extends SingleSelectConfigurator<T,ITEM,B>> extends SingleSelectableInputConfigurator<T,ITEM,B>, HasSizeConfigurator<B>, HasLabelConfigurator<B>, HasPlaceholderConfigurator<B>, HasAutofocusConfigurator<B>, FocusableConfigurator<com.vaadin.flow.component.Component,B>, HasItemEnableConfigurator<ITEM,B>
SingleSelect input builder using a Select as input component.ItemSetConfigurator.ItemCaptionGenerator<ITEM>InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
static <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> |
create(Class<T> type)
Get a new
SingleSelectConfigurator.SingleSelectInputBuilder to create a SingleSelect which uses a Select as input
component. |
static <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> |
create(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Get a new
SingleSelectConfigurator.SingleSelectInputBuilder to create a SingleSelect which uses a Select as input
component. |
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty)
Get a new
SingleSelectConfigurator.PropertySingleSelectInputBuilder to create a Property model based filterable
SingleSelect, which uses a Select as input component. |
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Get a new
SingleSelectConfigurator.PropertySingleSelectInputBuilder to create a Property model based filterable
SingleSelect, which uses a Select as input component. |
B |
emptySelectionAllowed(boolean emptySelectionAllowed)
Sets whether the user is allowed to select nothing.
|
B |
emptySelectionCaption(com.holonplatform.core.i18n.Localizable emptySelectionCaption)
Sets the empty selection caption when
emptySelectionAllowed(boolean) has been enabled. |
default B |
emptySelectionCaption(String emptySelectionCaption)
Sets the empty selection caption when
emptySelectionAllowed(boolean) has been enabled. |
default B |
emptySelectionCaption(String defaultCaption,
String messageCode,
Object... arguments)
Sets the empty selection caption when
emptySelectionAllowed(boolean) has been enabled. |
B |
itemLabelGenerator(Function<ITEM,String> itemLabelGenerator)
Sets the item label generator.
|
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. |
dataSourcewithSelectionListenerreadOnly, readOnly, required, required, withValueChangeListenerelementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamestyleName, styleNamesdisabled, enableddeferLocalization, withDeferredLocalizationisDeferredLocalizationEnableditemCaption, itemCaption, itemCaption, itemCaptionGeneratorfullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedlabel, label, labelplaceholder, placeholder, placeholderautofocustabIndex, withBlurListener, withFocusListener, withFocusShortcut, withFocusShortcutKeyitemEnabledProviderB 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 nullB itemLabelGenerator(Function<ITEM,String> itemLabelGenerator)
itemLabelGenerator - The item label generator to setB emptySelectionAllowed(boolean emptySelectionAllowed)
true, a special empty item is shown
to the user.
Default is false. The empty selection item can be customized with
emptySelectionCaption(Localizable).
emptySelectionAllowed - true to allow not selecting anything, false to require
selectionB emptySelectionCaption(com.holonplatform.core.i18n.Localizable emptySelectionCaption)
emptySelectionAllowed(boolean) has been enabled. The caption is
shown for the empty selection item in the drop down.
When the empty selection item is selected, the select shows the value provided by
itemLabelGenerator(Function) for the null item, or the string set with
HasPlaceholderConfigurator.placeholder(Localizable) or an empty string if not placeholder is set.
Default is an empty string "", which will show the place holder when selected.
emptySelectionCaption - The empty selection caption to set (not null)emptySelectionAllowed(boolean),
LocalizationProviderdefault B emptySelectionCaption(String emptySelectionCaption)
emptySelectionAllowed(boolean) has been enabled. The caption is
shown for the empty selection item in the drop down.emptySelectionCaption - The empty selection caption to setemptySelectionCaption(Localizable)default B emptySelectionCaption(String defaultCaption, String messageCode, Object... arguments)
emptySelectionAllowed(boolean) has been enabled. The caption is
shown for the empty selection item in the drop down.defaultCaption - Default empty selection caption if no translation is available for given
messageCodemessageCode - Empty selection caption translation message keyarguments - Optional translation argumentsLocalizationProviderstatic <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> create(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelectConfigurator.SingleSelectInputBuilder to create a SingleSelect which uses a Select 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)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> create(Class<T> type)
SingleSelectConfigurator.SingleSelectInputBuilder to create a SingleSelect which uses a Select as input
component.T - Value typetype - Selection value type (not null)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty)
SingleSelectConfigurator.PropertySingleSelectInputBuilder to create a Property model based filterable
SingleSelect, which uses a Select as input component.T - Value typeselectionProperty - The property to use to represent the selection value (not null)SingleSelectConfigurator.PropertySingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
SingleSelectConfigurator.PropertySingleSelectInputBuilder to create a Property model based filterable
SingleSelect, which uses a Select 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
itemSingleSelectConfigurator.PropertySingleSelectInputBuilderCopyright © 2019 The Holon Platform. All rights reserved.