Package | Description |
---|---|
eu.maxschuster.vaadin.autocompletetextfield | |
eu.maxschuster.vaadin.autocompletetextfield.provider |
Modifier and Type | Method and Description |
---|---|
AutocompleteSuggestion |
AutocompleteEvents.SelectEvent.getSuggestion()
Gets the selected
AutocompleteSuggestion . |
AutocompleteSuggestion |
AutocompleteSuggestion.withData(Object data)
Sets the data of the suggestion.
|
AutocompleteSuggestion |
AutocompleteSuggestion.withDescription(String description)
Sets the description.
|
AutocompleteSuggestion |
AutocompleteSuggestion.withIcon(com.vaadin.server.Resource icon)
Sets the icon.
|
AutocompleteSuggestion |
AutocompleteSuggestion.withStyleName(String... styleNames)
Adds one or more style names to the suggestion.
|
AutocompleteSuggestion |
AutocompleteSuggestion.withValue(String value)
Sets the actual value of the suggestion.
|
Modifier and Type | Method and Description |
---|---|
Optional<AutocompleteSuggestion> |
AutocompleteSuggestionTracker.getSuggestion(String key)
Gets an optional suggestion by the given key.
|
protected Set<AutocompleteSuggestion> |
AutocompleteTextFieldExtension.querySuggestions(AutocompleteQuery query)
Executes the given
AutocompleteQuery and makes sure the result is
within the boundries of the AutocompleteQuery 's limit. |
Collection<AutocompleteSuggestion> |
AutocompleteSuggestionProvider.querySuggestions(AutocompleteQuery query)
Finds
AutocompleteSuggestion s for the given
AutocompleteQuery . |
protected Set<AutocompleteSuggestion> |
AutocompleteTextFieldExtension.querySuggestions(String term)
Creates an
AutocompleteQuery from the given search term and the
internal AutocompleteTextFieldExtension.suggestionLimit and executes it. |
Modifier and Type | Method and Description |
---|---|
String |
AutocompleteSuggestionTracker.addSuggestion(AutocompleteSuggestion suggestion)
Tracks the given suggestion and returns a key to later identify it.
|
protected void |
AutocompleteTextFieldExtension.fireSelectEvent(AutocompleteSuggestion suggestion) |
protected String |
AutocompleteSuggestionTracker.generateKey(AutocompleteSuggestion suggestion)
Generates a key for the given suggestion.
|
Modifier and Type | Method and Description |
---|---|
protected elemental.json.JsonValue |
AutocompleteTextFieldExtension.suggestionsToJson(Set<AutocompleteSuggestion> suggestions)
Converts the given
AutocompleteSuggestion into a
JsonValue representation because JsonCodec can't handle
it itself. |
Constructor and Description |
---|
SelectEvent(com.vaadin.ui.AbstractTextField source,
AutocompleteSuggestion suggestion) |
Modifier and Type | Method and Description |
---|---|
Collection<AutocompleteSuggestion> |
CollectionSuggestionProvider.querySuggestions(AutocompleteQuery query) |
Copyright © 2017 Max Schuster. All Rights Reserved.