T - Selection item typepublic interface SingleSelect<T> extends Selectable<T>, Input<T>, ItemSet
Selectable component in which at most one item can be selected at a time.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> SingleSelectInputBuilder<T> |
builder(Class<? extends T> type)
Gets a builder to create a
SingleSelect using default BaseSelectInputBuilder.RenderingMode.SELECT. |
static <T> SingleSelectInputBuilder<T> |
builder(Class<? extends T> type,
BaseSelectInputBuilder.RenderingMode renderingMode)
Gets a builder to create a
SingleSelect. |
default void |
deselectAll()
Deselects all currently selected items, if any.
|
default Optional<T> |
getFirstSelectedItem()
Get the first selected item.
|
Optional<T> |
getSelectedItem()
Get the currently selected item.
|
default Set<T> |
getSelectedItems()
Get an immutable set of the currently selected items.
|
default Selectable.SelectionMode |
getSelectionMode()
Get the selection mode
|
static <T> SinglePropertySelectInputBuilder<T> |
property(com.holonplatform.core.property.Property<T> selectProperty)
Gets a builder to create a
SingleSelect with a PropertyBox items data source with
Property as item properties. |
static <T> SinglePropertySelectInputBuilder<T> |
property(com.holonplatform.core.property.Property<T> selectProperty,
BaseSelectInputBuilder.RenderingMode renderingMode)
Gets a builder to create a
SingleSelect with a PropertyBox items data source with
Property as item properties. |
addSelectionListener, deselect, isSelected, selectfocus, from, isReadOnly, isRequired, setReadOnly, setRequiredaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValuegetComponent, getValueOptional<T> getSelectedItem()
default Selectable.SelectionMode getSelectionMode()
SelectablegetSelectionMode in interface Selectable<T>default Set<T> getSelectedItems()
SelectableThe iteration order of the items in the returned set is implementation dependent.
getSelectedItems in interface Selectable<T>default Optional<T> getFirstSelectedItem()
SelectablegetFirstSelectedItem in interface Selectable<T>default void deselectAll()
SelectabledeselectAll in interface Selectable<T>static <T> SingleSelectInputBuilder<T> builder(Class<? extends T> type, BaseSelectInputBuilder.RenderingMode renderingMode)
SingleSelect.T - Selection value typetype - Selection value typerenderingMode - Rendering modeSingleSelect builderstatic <T> SingleSelectInputBuilder<T> builder(Class<? extends T> type)
SingleSelect using default BaseSelectInputBuilder.RenderingMode.SELECT.T - Selection value typetype - Selection value typeSingleSelect builderstatic <T> SinglePropertySelectInputBuilder<T> property(com.holonplatform.core.property.Property<T> selectProperty, BaseSelectInputBuilder.RenderingMode renderingMode)
SingleSelect with a PropertyBox items data source with
Property as item properties.T - Selection value typeselectProperty - Property to select (not null)renderingMode - Rendering modeSingleSelect builderstatic <T> SinglePropertySelectInputBuilder<T> property(com.holonplatform.core.property.Property<T> selectProperty)
SingleSelect 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)SingleSelect builderCopyright © 2019 The Holon Platform. All rights reserved.