T - Selection item typepublic interface MultiSelect<T> extends Selectable<T>, Input<Set<T>>, ItemSet
Selectable component in which multiple items can be selected at the same time. Selecting an item adds it to
the selection.Selectable.SelectionEvent<T>, Selectable.SelectionListener<T>, Selectable.SelectionModeInput.InputFieldPropertyRenderer<T,F extends com.vaadin.data.HasValue<T> & com.vaadin.ui.Component>, Input.InputPropertyRenderer<T>ValueHolder.MaySupportValueChangeMode, ValueHolder.ValueChangeEvent<V>, ValueHolder.ValueChangeListener<V>ItemSet.ItemCaptionGenerator<ITEM>, ItemSet.ItemDescriptionGenerator<ITEM>, ItemSet.ItemIconGenerator<ITEM>| Modifier and Type | Method and Description |
|---|---|
static <T> MultiSelectInputBuilder.GenericMultiSelectInputBuilder<T> |
builder(Class<? extends T> type,
BaseSelectInputBuilder.RenderingMode renderingMode)
Gets a builder to create a
MultiSelect. |
void |
deselect(Iterable<T> items)
Removes the given items from the set of currently selected items.
|
default void |
deselect(T... items)
Removes the given items from the set of currently selected items.
|
default void |
deselect(T item)
Deselects the given item.
|
default Optional<T> |
getFirstSelectedItem()
Get the first selected item.
|
default Selectable.SelectionMode |
getSelectionMode()
Get the selection mode
|
static <T> BaseSelectModeMultiSelectInputBuilder.SelectModeMultiSelectInputBuilder<T> |
list(Class<? extends T> type)
Gets a builder to create a
MultiSelect using BaseSelectInputBuilder.RenderingMode.SELECT. |
static <T> BaseSelectModeMultiPropertySelectInputBuilder.SelectModeMultiPropertySelectInputBuilder<T> |
list(com.holonplatform.core.property.Property<T> selectProperty)
Gets a builder to create a
MultiSelect with a PropertyBox items data source with Property
as item properties using BaseSelectInputBuilder.RenderingMode.SELECT. |
static <T> BaseSelectModeMultiSelectInputBuilder.OptionsModeMultiSelectInputBuilder<T> |
options(Class<? extends T> type)
Gets a builder to create a
MultiSelect using BaseSelectInputBuilder.RenderingMode.OPTIONS. |
static <T> BaseSelectModeMultiPropertySelectInputBuilder.OptionsModeMultiPropertySelectInputBuilder<T> |
options(com.holonplatform.core.property.Property<T> selectProperty)
Gets a builder to create a
MultiSelect with a PropertyBox items data source with Property
as item properties using BaseSelectInputBuilder.RenderingMode.OPTIONS. |
static <T> MultiPropertySelectInputBuilder.GenericMultiPropertySelectInputBuilder<T> |
property(com.holonplatform.core.property.Property<T> selectProperty,
BaseSelectInputBuilder.RenderingMode renderingMode)
Gets a builder to create a
MultiSelect with a PropertyBox items data source with Property
as item properties. |
void |
select(Iterable<T> items)
Adds the given item to the set of currently selected items.
|
default void |
select(T... items)
Adds the given item to the set of currently selected items.
|
default void |
select(T item)
Selects the given item.
|
void |
selectAll()
Selects all available the items.
|
addSelectionListener, deselectAll, getSelectedItems, isSelectedfocus, from, from, from, from, from, getValueChangeMode, getValueChangeTimeout, isReadOnly, isRequired, isValueChangeModeSupported, setReadOnly, setRequired, setValueChangeMode, setValueChangeTimeoutaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, getValueIfPresent, isEmpty, setValuegetValuegetComponentvoid select(Iterable<T> items)
By default this does not clear any previous selection. To do that, use Selectable.deselectAll().
items - Items to select (not null)default void select(T... items)
By default this does not clear any previous selection. To do that, use Selectable.deselectAll().
items - Items to select (not null)void deselect(Iterable<T> items)
items - Items to deselect (not null)default void deselect(T... items)
items - Items to deselect (not null)void selectAll()
default Selectable.SelectionMode getSelectionMode()
SelectablegetSelectionMode in interface Selectable<T>default Optional<T> getFirstSelectedItem()
SelectablegetFirstSelectedItem in interface Selectable<T>default void select(T item)
Selectable
When in Selectable.SelectionMode.SINGLE, any previously selected item is deselected.
select in interface Selectable<T>item - the item to select (not null)default void deselect(T item)
Selectabledeselect in interface Selectable<T>item - the item to deselect (not null)static <T> MultiSelectInputBuilder.GenericMultiSelectInputBuilder<T> builder(Class<? extends T> type, BaseSelectInputBuilder.RenderingMode renderingMode)
MultiSelect.T - Selection value typetype - Selection value typerenderingMode - Rendering modeMultiSelect builderstatic <T> BaseSelectModeMultiSelectInputBuilder.OptionsModeMultiSelectInputBuilder<T> options(Class<? extends T> type)
MultiSelect using BaseSelectInputBuilder.RenderingMode.OPTIONS.T - Selection value typetype - Selection value typeMultiSelect builderstatic <T> BaseSelectModeMultiSelectInputBuilder.SelectModeMultiSelectInputBuilder<T> list(Class<? extends T> type)
MultiSelect using BaseSelectInputBuilder.RenderingMode.SELECT.T - Selection value typetype - Selection value typeMultiSelect builderstatic <T> MultiPropertySelectInputBuilder.GenericMultiPropertySelectInputBuilder<T> property(com.holonplatform.core.property.Property<T> selectProperty, BaseSelectInputBuilder.RenderingMode renderingMode)
MultiSelect with a PropertyBox items data source with Property
as item properties.T - Selection value typeselectProperty - Property to select (not null)renderingMode - Rendering modeMultiSelect builderstatic <T> BaseSelectModeMultiPropertySelectInputBuilder.OptionsModeMultiPropertySelectInputBuilder<T> options(com.holonplatform.core.property.Property<T> selectProperty)
MultiSelect with a PropertyBox items data source with Property
as item properties using BaseSelectInputBuilder.RenderingMode.OPTIONS.T - Selection value typeselectProperty - Property to select (not null)MultiSelect builderstatic <T> BaseSelectModeMultiPropertySelectInputBuilder.SelectModeMultiPropertySelectInputBuilder<T> list(com.holonplatform.core.property.Property<T> selectProperty)
MultiSelect with a PropertyBox items data source with Property
as item properties using BaseSelectInputBuilder.RenderingMode.SELECT.T - Selection value typeselectProperty - Property to select (not null)MultiSelect builderCopyright © 2019 The Holon Platform. All rights reserved.