/** * Use MaterialAutocomplete to search for matches from local or remote data sources. * * @see #setSuggestions(SuggestOracle) */ public MaterialAutoComplete(SuggestOracle suggestions) { initWidget(panel); generateAutoComplete(suggestions); }
/** * Sets the SuggestOracle to be used to provide suggestions. Also setups the component with the * needed event handlers and UI elements. * * @param suggestions the suggestion oracle to set */ public void setSuggestions(SuggestOracle suggestions) { this.suggestions = suggestions; generateAutoComplete(suggestions); }