コード例 #1
0
 /**
  * Use MaterialAutocomplete to search for matches from local or remote data sources.
  *
  * @see #setSuggestions(SuggestOracle)
  */
 public MaterialAutoComplete(SuggestOracle suggestions) {
   initWidget(panel);
   generateAutoComplete(suggestions);
 }
コード例 #2
0
 /**
  * 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);
 }