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(JsonObject item)
Returns the caption for the given item.
|
static Optional<String> |
getIconUrl(JsonObject item)
Returns the optional icon URL for the given item.
|
static String |
getKey(JsonObject item)
Returns the key for the given item.
|
static boolean |
isEnabled(JsonObject item)
Returns whether the given item is enabled or not.
|
static boolean |
isSelected(JsonObject item)
Returns whether this item is selected or not.
|
void |
setItems(List<JsonObject> items)
Sets the given items to the select.
|
void setItems(List<JsonObject> items)
items - the items for the selectRegistration addSelectionChangeListener(BiConsumer<Set<String>,Set<String>> selectionChangeListener)
selectionChangeListener - the listener to add, not nullstatic String getCaption(JsonObject item)
item - the item, not nullstatic String getKey(JsonObject item)
item - the item, not nullstatic boolean isEnabled(JsonObject item)
Disabling items is not supported by all multiselects.
item - the item, not nulltrue enabled, false if notstatic boolean isSelected(JsonObject item)
item - the item, not nulltrue is selected, false if notstatic Optional<String> getIconUrl(JsonObject item)
Item icons are not supported by all multiselects.
item - the itemCopyright © 2018 Vaadin Ltd. All rights reserved.