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.InputPropertyRenderer<T>, Input.InputValueConversionException, Input.PropertyHandler<P,T,V extends com.vaadin.flow.component.HasValue<?,T>,C extends com.vaadin.flow.component.Component>ValueHolder.ValueChangeEvent<V>, ValueHolder.ValueChangeListener<V,E extends ValueHolder.ValueChangeEvent<V>>| Modifier and Type | Method and Description |
|---|---|
static <T> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> |
create(Class<T> type)
Gets a builder to create a filterable
SingleSelect, which
uses a ComboBox as input component. |
static <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> |
create(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a filterable
SingleSelect, which
uses a ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based filterable
SingleSelect, which uses a ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
create(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based filterable
SingleSelect, which uses a ComboBox as input component. |
default void |
deselectAll()
Deselects all currently selected items, if any.
|
static <T> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> |
filterable(Class<T> type)
Gets a builder to create a filterable
SingleSelect, which
uses a ComboBox as input component. |
static <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> |
filterable(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a filterable
SingleSelect, which
uses a ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
filterable(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based filterable
SingleSelect, which uses a ComboBox as input component. |
static <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> |
filterable(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based filterable
SingleSelect, which uses a ComboBox as input component. |
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> ListSingleSelectConfigurator.ListSingleSelectInputBuilder<T,T> |
list(Class<T> type)
Gets a builder to create a
SingleSelect, which uses a ListBox
as input component. |
static <T,ITEM> ListSingleSelectConfigurator.ListSingleSelectInputBuilder<T,ITEM> |
list(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a
SingleSelect, which uses a ListBox
as input component. |
static <T> ListSingleSelectConfigurator.PropertyListSingleSelectInputBuilder<T> |
list(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based SingleSelect,
which uses a ListBox as input component. |
static <T> ListSingleSelectConfigurator.PropertyListSingleSelectInputBuilder<T> |
list(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based SingleSelect,
which uses a ListBox as input component. |
static <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> |
options(Class<T> type)
Gets a builder to create a options
SingleSelect, which uses
a RadioButtonGroup as input component. |
static <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> |
options(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a options
SingleSelect, which uses
a RadioButtonGroup as input component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
options(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based options
SingleSelect, which uses a RadioButtonGroup as input
component. |
static <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> |
options(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based options
SingleSelect, which uses a RadioButtonGroup as input
component. |
static <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> |
select(Class<T> type)
Gets a builder to create a
SingleSelect, which uses a Select
as input component. |
static <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> |
select(Class<T> type,
Class<ITEM> itemType,
ItemConverter<T,ITEM> itemConverter)
Gets a builder to create a
SingleSelect, which uses a Select
as input component. |
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
select(com.holonplatform.core.property.Property<T> selectionProperty)
Gets a builder to create a
Property model based SingleSelect,
which uses a Select as input component. |
static <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> |
select(com.holonplatform.core.property.Property<T> selectionProperty,
Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Gets a builder to create a
Property model based SingleSelect,
which uses a Select as input component. |
addSelectionListener, deselect, isSelected, selectaddReadonlyChangeListener, as, asHasValue, boolean_, builder, builder, builder, date, dateTime, enumMultiSelect, enumOptionSelect, enumSelect, focus, from, from, from, from, from, hasInvalidChangeEventNotifier, hasPlaceholder, hasTitle, isReadOnly, isRequired, localDate, localDateTime, localTime, multiListSelect, multiListSelect, multiListSelect, multiListSelect, multiOptionSelect, multiOptionSelect, multiOptionSelect, multiOptionSelect, number, password, setReadOnly, setRequired, singleListSelect, singleListSelect, singleListSelect, singleListSelect, singleOptionSelect, singleOptionSelect, singleOptionSelect, singleOptionSelect, singleSelect, singleSelect, singleSelect, singleSelect, singleSimpleSelect, singleSimpleSelect, singleSimpleSelect, singleSimpleSelect, string, stringAreaaddValueChangeListener, clear, getEmptyValue, getValue, getValueIfPresent, isEmpty, setValuegetValue, hasValueChangeModecreate, getComponent, getElement, hasEnabled, hasLabel, hasSize, hasStyle, hasValidation, isVisible, setVisibleOptional<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> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> create(Class<T> type)
SingleSelect, which
uses a ComboBox as input component.
Alias for filterable(Class).
This builder can be used when the selection items type and the selection
value type are consistent. Use create(Class, Class, ItemConverter)
if not.
create in interface Input<T>T - Value typetype - Selection value type (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> create(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect, which
uses a ComboBox as input component.
Alias for filterable(Class, Class, ItemConverter).
This builder can be used when the selection items type and the selection
value type are not consistent (i.e. of different type). When the the
selection item and the selection value types are consistent, the
create(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item
into a selection (Input) value and back (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based filterable
SingleSelect, which uses a ComboBox as input component.
Alias for filterable(Property).
create in interface Input<T>T - Value typeselectionProperty - The property to use to represent the selection value
(not null)FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderPropertyRendererRegistrystatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> create(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based filterable
SingleSelect, which uses a ComboBox as input component.
Alias for filterable(Property, Function).
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 itemFilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderstatic <T> SingleSelectConfigurator.SingleSelectInputBuilder<T,T> select(Class<T> type)
SingleSelect, which uses a Select
as input component.
This builder can be used when the selection items type and the selection
value type are consistent. Use select(Class, Class, ItemConverter)
if not.
T - Value typetype - Selection value type (not null)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T,ITEM> SingleSelectConfigurator.SingleSelectInputBuilder<T,ITEM> select(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect, which uses a Select
as input component.
This builder can be used when the selection items type and the selection
value type are not consistent (i.e. of different type). When the the
selection item and the selection value types are consistent, the
select(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item
into a selection (Input) value and back (not null)SingleSelectConfigurator.SingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> select(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based SingleSelect,
which uses a Select as input component.T - Value typeselectionProperty - The property to use to represent the selection value
(not null)SingleSelectConfigurator.PropertySingleSelectInputBuilderstatic <T> SingleSelectConfigurator.PropertySingleSelectInputBuilder<T> select(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based SingleSelect,
which uses a Select as input component.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 itemSingleSelectConfigurator.PropertySingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,T> filterable(Class<T> type)
SingleSelect, which
uses a ComboBox as input component.
This builder can be used when the selection items type and the selection
value type are consistent. Use filterable(Class, Class, ItemConverter)
if not.
T - Value typetype - Selection value type (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T,ITEM> FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilder<T,ITEM> filterable(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect, which
uses a ComboBox as input component.
This builder can be used when the selection items type and the selection
value type are not consistent (i.e. of different type). When the the
selection item and the selection value types are consistent, the
filterable(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item
into a selection (Input) value and back (not null)FilterableSingleSelectConfigurator.FilterableSingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> filterable(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based filterable
SingleSelect, which uses a ComboBox as input component.T - Value typeselectionProperty - The property to use to represent the selection value
(not null)FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderstatic <T> FilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilder<T> filterable(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based filterable
SingleSelect, which uses a ComboBox as input component.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 itemFilterableSingleSelectConfigurator.PropertyFilterableSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,T> options(Class<T> type)
SingleSelect, which uses
a RadioButtonGroup as input component.
This builder can be used when the selection items type and the selection
value type are consistent. Use options(Class, Class, ItemConverter)
if not.
T - Value typetype - Selection value type (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T,ITEM> OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilder<T,ITEM> options(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect, which uses
a RadioButtonGroup as input component.
This builder can be used when the selection items type and the selection
value type are not consistent (i.e. of different type). When the the
selection item and the selection value types are consistent, the
options(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item
into a selection (Input) value and back (not null)OptionsSingleSelectConfigurator.OptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> options(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based options
SingleSelect, which uses a RadioButtonGroup as input
component.T - Value typeselectionProperty - The property to use to represent the selection value
(not null)OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderstatic <T> OptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilder<T> options(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based options
SingleSelect, which uses a RadioButtonGroup as input
component.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 itemOptionsSingleSelectConfigurator.PropertyOptionsSingleSelectInputBuilderstatic <T> ListSingleSelectConfigurator.ListSingleSelectInputBuilder<T,T> list(Class<T> type)
SingleSelect, which uses a ListBox
as input component.
This builder can be used when the selection items type and the selection
value type are consistent. Use list(Class, Class, ItemConverter) if
not.
T - Value typetype - Selection value type (not null)ListSingleSelectConfigurator.ListSingleSelectInputBuilderstatic <T,ITEM> ListSingleSelectConfigurator.ListSingleSelectInputBuilder<T,ITEM> list(Class<T> type, Class<ITEM> itemType, ItemConverter<T,ITEM> itemConverter)
SingleSelect, which uses a ListBox
as input component.
This builder can be used when the selection items type and the selection
value type are not consistent (i.e. of different type). When the the
selection item and the selection value types are consistent, the
list(Class) method can be used.
T - Value typeITEM - Item typetype - Selection value type (not null)itemType - Selection items type (not null)itemConverter - The item converter to use to convert a selection item
into a selection (Input) value and back (not null)ListSingleSelectConfigurator.ListSingleSelectInputBuilderstatic <T> ListSingleSelectConfigurator.PropertyListSingleSelectInputBuilder<T> list(com.holonplatform.core.property.Property<T> selectionProperty)
Property model based SingleSelect,
which uses a ListBox as input component.T - Value typeselectionProperty - The property to use to represent the selection value
(not null)ListSingleSelectConfigurator.PropertyListSingleSelectInputBuilderstatic <T> ListSingleSelectConfigurator.PropertyListSingleSelectInputBuilder<T> list(com.holonplatform.core.property.Property<T> selectionProperty, Function<T,Optional<com.holonplatform.core.property.PropertyBox>> itemConverter)
Property model based SingleSelect,
which uses a ListBox as input component.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 itemListSingleSelectConfigurator.PropertyListSingleSelectInputBuilderCopyright © 2020 The Holon Platform. All rights reserved.