Directory

← Back

AutocompleteField for Vaadin

AutocompleteField for Vaadin

Author

Rating

Popularity

<100

This component retrieves suggestions from remote services while the user types

Maven dependency

com.zybnet vaadin-autocomplete 1.1.0

Thanks to Jeff T. Thorson for the focus-related patches

Sample code

AutocompleteField<WikipediaPage> search = new AutocompleteField<>();

search.setQueryListener(new AutocompleteQueryListener<WikipediaPage>() {
  @Override
  public void handleUserQuery(AutocompleteField<WikipediaPage> field, String query) {
    for (WikipediaPage page : queryWikipediaApi(query)) {
      field.addSuggestion(page, page.getTitle());
    }
  }
});

search.setSuggestionPickedListener(new AutocompleteSuggestionPickedListener<WikipediaPage>() {
  @Override
  public void onSuggestionPicked(WikipediaPage page) {
    handleSuggestionSelection(page);
  }
});

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Keep selected text when switching tab

Released
2014-11-29
Maturity
BETA
License
Public Domain

Compatibility

Framework
Vaadin 7.2+
Vaadin 7.0+ in 1.0-SNAPSHOT
Browser
N/A

AutocompleteField for Vaadin - Vaadin Add-on Directory

AutocompleteField for Vaadin AutocompleteField for Vaadin - Vaadin Add-on Directory
This component retrieves suggestions from remote services while the user types Maven dependency com.zybnet vaadin-autocomplete 1.1.0 Thanks to Jeff T. Thorson for the focus-related patches
Online