public static interface AbstractMultiSelectConnector.MultiSelectWidget
| Modifier and Type | Method and Description |
|---|---|
Registration |
addSelectionChangeListener(BiConsumer<Set<String>,Set<String>> selectionChangeListener)
Adds a selection change listener the select.
|
static String |
getCaption(elemental.json.JsonObject item)
Returns the caption for the given item.
|
static Optional<String> |
getIconUrl(elemental.json.JsonObject item)
Returns the optional icon URL for the given item.
|
static String |
getKey(elemental.json.JsonObject item)
Returns the key for the given item.
|
static boolean |
isEnabled(elemental.json.JsonObject item)
Returns whether the given item is enabled or not.
|
static boolean |
isSelected(elemental.json.JsonObject item)
Returns whether this item is selected or not.
|
void |
setItems(List<elemental.json.JsonObject> items)
Sets the given items to the select.
|
void setItems(List<elemental.json.JsonObject> items)
items - the items for the selectRegistration addSelectionChangeListener(BiConsumer<Set<String>,Set<String>> selectionChangeListener)
selectionChangeListener - the listener to add, not nullstatic String getCaption(elemental.json.JsonObject item)
item - the item, not nullstatic String getKey(elemental.json.JsonObject item)
item - the item, not nullstatic boolean isEnabled(elemental.json.JsonObject item)
Disabling items is not supported by all multiselects.
item - the item, not nulltrue enabled, false if notstatic boolean isSelected(elemental.json.JsonObject item)
item - the item, not nulltrue is selected, false if notCopyright © 2023 Vaadin Ltd. All rights reserved.