T - Value typeITEM - Item typeB - Concrete builder typepublic interface SelectModeSingleSelectInputBuilder<T,ITEM,B extends SelectModeSingleSelectInputBuilder<T,ITEM,B>> extends SingleSelectInputBuilder<T,ITEM,B>, HasSizeConfigurator<B>, HasLabelConfigurator<B>, HasPlaceholderConfigurator<B>, HasPatternConfigurator<B>, HasAutofocusConfigurator<B>, FocusableConfigurator<com.vaadin.flow.component.Component,B>
SingleSelect input builder for the select rendering mode.| Modifier and Type | Interface and Description |
|---|---|
static interface |
SelectModeSingleSelectInputBuilder.DatastoreItemSelectModeSingleSelectInputBuilder<T,ITEM>
SingleSelect input builder for the select rendering mode with
DatastoreDataProviderConfigurator support. |
static interface |
SelectModeSingleSelectInputBuilder.DatastorePropertySelectModeSingleSelectInputBuilder<T>
Property model based SingleSelect input builder for the select rendering mode with
DatastoreDataProviderConfigurator support. |
static interface |
SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM>
SingleSelect input builder for the select rendering mode. |
static interface |
SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T>
Property model based SingleSelect input builder for the select rendering mode. |
ItemSetConfigurator.ItemCaptionGenerator<ITEM>InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfiguratorFULL_SIZE| Modifier and Type | Method and Description |
|---|---|
static <T> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,T> |
create(Class<T> type)
|
static <T,ITEM> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM> |
create(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
|
static <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty)
Create a new
SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder using given selection Property and
converter. |
static <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Create a new
SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder using given selection Property. |
B |
dataSource(com.vaadin.flow.data.provider.ListDataProvider<ITEM> dataProvider)
Set the items data provider using a
ListDataProvider. |
B |
itemCaption(ITEM item,
com.holonplatform.core.i18n.Localizable caption)
Set an explicit caption for given item.
|
default B |
itemCaption(ITEM item,
String caption)
Set an explicit caption for given item.
|
default B |
itemCaption(ITEM item,
String caption,
String messageCode)
Set an explicit caption for given item.
|
B |
itemCaptionGenerator(ItemSetConfigurator.ItemCaptionGenerator<ITEM> itemCaptionGenerator)
Set the generator to be used to display item captions (i.e. labels).
|
B |
pageSize(int pageSize)
Sets the page size, which is the number of items fetched at a time from the data provider.
|
B |
renderer(com.vaadin.flow.data.renderer.Renderer<ITEM> renderer)
Sets the Renderer responsible to render the individual items in the list of possible choices.
|
build, validatablewithSelectionListenerreadOnly, readOnly, required, required, withValueChangeListenerhidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamestyleName, styleNamesdisabled, enableddeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledfullHeight, fullSize, fullWidth, height, height, heightUndefined, sizeUndefined, width, width, widthUndefinedlabel, label, labelplaceholder, placeholder, placeholderpattern, preventInvalidInput, preventInvalidInputautofocustabIndex, withBlurListener, withFocusListenerB renderer(com.vaadin.flow.data.renderer.Renderer<ITEM> renderer)
It doesn't affect how the selected item is rendered - that can be configured by using
itemCaptionGenerator(com.holonplatform.vaadin.flow.components.builders.ItemSetConfigurator.ItemCaptionGenerator).
renderer - a renderer for the items in the selection list, not nullB itemCaptionGenerator(ItemSetConfigurator.ItemCaptionGenerator<ITEM> itemCaptionGenerator)
itemCaptionGenerator - The generator to set (not null)B itemCaption(ITEM item, com.holonplatform.core.i18n.Localizable caption)
This is an alternative for
itemCaptionGenerator(com.holonplatform.vaadin.flow.components.builders.ItemSetConfigurator.ItemCaptionGenerator).
When an ItemCaptionGenerator is configured, explicit item captions will be ignored.
item - Item to set the caption for (not null)caption - Item caption (not null)default B itemCaption(ITEM item, String caption)
item - Item to set the caption for (not null)caption - Item captiondefault B itemCaption(ITEM item, String caption, String messageCode)
item - Item to set the caption for (not null)caption - Item captionmessageCode - Item caption translation codeB pageSize(int pageSize)
The page size is also the largest number of items that can support client-side filtering. If you provide more items than the page size, the component has to fall back to server-side filtering.
The default page size is 50.
pageSize - the maximum number of items sent per request, must be greater than zeroB dataSource(com.vaadin.flow.data.provider.ListDataProvider<ITEM> dataProvider)
ListDataProvider.
Filtering will use a case insensitive match to show all items where the filter text is a substring of the label
displayed for that item, which you can configure with
itemCaptionGenerator(com.holonplatform.vaadin.flow.components.builders.ItemSetConfigurator.ItemCaptionGenerator).
dataProvider - The data provider to setstatic <T,ITEM> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,ITEM> create(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use (not null)SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilderstatic <T> SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilder<T,T> create(Class<T> type)
T - Value typetype - Selection value type (not null)SelectModeSingleSelectInputBuilder.ItemSelectModeSingleSelectInputBuilderstatic <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty)
SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder using given selection Property and
converter.T - Value typeselectionProperty - The property to use to represent the selection value (not null)SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilderstatic <T> SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
SelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilder using given selection Property.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
itemSelectModeSingleSelectInputBuilder.PropertySelectModeSingleSelectInputBuilderCopyright © 2019 The Holon Platform. All rights reserved.