T - Value typeITEM - Item typeB - Concrete builder typepublic interface OptionsModeMultiSelectInputBuilder<T,ITEM,B extends OptionsModeMultiSelectInputBuilder<T,ITEM,B>> extends MultiSelectInputBuilder<T,ITEM,B>, HasLabelConfigurator<B>
MultiSelect input builder for the options rendering mode.| Modifier and Type | Interface and Description |
|---|---|
static interface |
OptionsModeMultiSelectInputBuilder.DatastoreItemOptionsModeMultiSelectInputBuilder<T,ITEM>
MultiSelect input builder for the options rendering mode with
DatastoreDataProviderConfigurator support. |
static interface |
OptionsModeMultiSelectInputBuilder.DatastorePropertyOptionsModeMultiSelectInputBuilder<T>
Property model based MultiSelect input builder for the options rendering mode with
DatastoreDataProviderConfigurator support. |
static interface |
OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,ITEM>
MultiSelect input builder for the options rendering mode. |
static interface |
OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T>
Property model based MultiSelect input builder for the options rendering mode. |
ItemSetConfigurator.ItemCaptionGenerator<ITEM>InputConfigurator.BaseInputConfigurator<T>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
static <T> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,T> |
create(Class<T> type)
|
static <T,ITEM> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,ITEM> |
create(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
|
static <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty)
Create a new
OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder using given selection Property and
converter. |
static <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Create a new
OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder 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 |
itemEnabledProvider(com.vaadin.flow.function.SerializablePredicate<ITEM> itemEnabledProvider)
Sets the item enabled state predicate.
|
build, validatablewithSelectionListenerreadOnly, readOnly, required, required, withValueChangeListenerhidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamestyleName, styleNamesdisabled, enableddeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledlabel, label, labelB itemEnabledProvider(com.vaadin.flow.function.SerializablePredicate<ITEM> itemEnabledProvider)
true) or disabled (false).itemEnabledProvider - the item enable predicate, 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 dataSource(com.vaadin.flow.data.provider.ListDataProvider<ITEM> dataProvider)
ListDataProvider.dataProvider - The data provider to setstatic <T,ITEM> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<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)OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilder<T,T> create(Class<T> type)
T - Value typetype - Selection value type (not null)OptionsModeMultiSelectInputBuilder.ItemOptionsModeMultiSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty)
OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder using given selection Property and
converter.T - Value typeselectionProperty - The property to use to represent the selection value (not null)OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilderstatic <T> OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
OptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilder 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
itemOptionsModeMultiSelectInputBuilder.PropertyOptionsModeMultiSelectInputBuilderCopyright © 2019 The Holon Platform. All rights reserved.