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>, Input.InputPropertyRenderer<T>ValueHolder.ValueChangeEvent<V>, ValueHolder.ValueChangeListener<V>ItemSet.ItemCaptionGenerator<ITEM>, ItemSet.ItemIconGenerator<ITEM>| Modifier and Type | Method and Description |
|---|---|
static <T> MultiSelectInputBuilder<T> |
builder(Class<? extends T> type)
Gets a builder to create a
MultiSelect. |
static <T> MultiSelectInputBuilder<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> MultiPropertySelectInputBuilder<T> |
property(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. |
static <T> MultiPropertySelectInputBuilder<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, isReadOnly, isRequired, setReadOnly, setRequiredaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValuegetComponent, getValuevoid 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<T> builder(Class<? extends T> type, BaseSelectInputBuilder.RenderingMode renderingMode)
MultiSelect.T - Selection value typetype - Selection value typerenderingMode - Rendering modeMultiSelect builderstatic <T> MultiSelectInputBuilder<T> builder(Class<? extends T> type)
MultiSelect.T - Selection value typetype - Selection value typeMultiSelect builderstatic <T> MultiPropertySelectInputBuilder<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> MultiPropertySelectInputBuilder<T> property(com.holonplatform.core.property.Property<T> selectProperty)
MultiSelect with a PropertyBox items data source with Property
as item properties. Default BaseSelectInputBuilder.RenderingMode.SELECT is assumed.T - Selection value typeselectProperty - Property to select (not null)MultiSelect builderCopyright © 2019 The Holon Platform. All rights reserved.