| Package | Description |
|---|---|
| org.dominokit.domino.ui.forms |
| Modifier and Type | Method and Description |
|---|---|
static SuggestItem<String> |
SuggestItem.create(String value)
Creates a SuggestItem with a String value, the same String will be used for displayValue
|
static <T> SuggestItem<T> |
SuggestItem.create(T value,
String displayValue) |
static <T> SuggestItem<T> |
SuggestItem.create(T value,
String displayValue,
BaseIcon<?> icon) |
| Modifier and Type | Method and Description |
|---|---|
Optional<SuggestItem<T>> |
SuggestBoxStore.MissingEntryProvider.getMessingSuggestion(String inputValue) |
Optional<SuggestItem<T>> |
SuggestBoxStore.MissingSuggestProvider.getMessingSuggestion(T missingValue) |
List<SuggestItem<T>> |
LocalSuggestBoxStore.getSuggestions() |
| Modifier and Type | Method and Description |
|---|---|
LocalSuggestBoxStore<T> |
LocalSuggestBoxStore.addSuggestion(SuggestItem<T> suggestion)
Adds a suggestion the suggestions List
|
protected DropdownAction<V> |
AbstractSuggestBox.dropdownAction(SuggestItem<V> suggestItem) |
boolean |
SuggestBoxStore.SuggestionFilter.filter(String searchValue,
SuggestItem<T> suggestItem) |
default boolean |
SuggestBoxStore.filterItem(String searchValue,
SuggestItem<T> suggestItem)
Defines how to check a single SuggestItem against the search text, default to SuggestItem
lowercase display text contains the search text
|
boolean |
LocalSuggestBoxStore.filterItem(String searchValue,
SuggestItem<T> suggestItem)
Defines how to check a single SuggestItem against the search text, default to SuggestItem
lowercase display text contains the search text
|
| Modifier and Type | Method and Description |
|---|---|
T |
AbstractSuggestBox.addSelectionHandler(HasSelectionHandler.SelectionHandler<SuggestItem<V>> selectionHandler)
Adds a Selection handler to the component
|
LocalSuggestBoxStore<T> |
LocalSuggestBoxStore.addSuggestions(List<SuggestItem<T>> suggestions)
Adds a List of suggestions to the store suggestions
|
static <T> LocalSuggestBoxStore<T> |
LocalSuggestBoxStore.create(List<SuggestItem<T>> suggestions)
Creates a store initialized with a List of suggestions
|
void |
SuggestBoxStore.find(T searchValue,
Consumer<SuggestItem<T>> handler)
Takes a value of T and find the matching SuggestItem for this value, this is used when we
directly set the value to the SuggestBox to check if it is actually still matching an existing
suggestion
|
void |
LocalSuggestBoxStore.find(T searchValue,
Consumer<SuggestItem<T>> handler)
Takes a value of T and find the matching SuggestItem for this value, this is used when we
directly set the value to the SuggestBox to check if it is actually still matching an existing
suggestion
|
void |
SuggestBoxStore.SuggestionsHandler.onSuggestionsReady(List<SuggestItem<T>> suggestions)
This should be called once the suggestions are ready to be fed to the SuggestBox
|
T |
AbstractSuggestBox.removeSelectionHandler(HasSelectionHandler.SelectionHandler<SuggestItem<V>> selectionHandler) |
LocalSuggestBoxStore<T> |
LocalSuggestBoxStore.setSuggestions(List<SuggestItem<T>> suggestions)
replace the store suggestions with the provided List
|
| Constructor and Description |
|---|
LocalSuggestBoxStore(List<SuggestItem<T>> suggestions)
Creates a store initialized with a List of Suggestions
|
Copyright © 2019–2022 Dominokit. All rights reserved.