1

I am trying to add a list of strings to the autocomplete values returned to the autcomplete Text bar when these values are selected i must process them locally before retrieving information from the google servers.

这是将 AutoComplete 实体绑定到自动文本字段的代码。

final AutoCompleteOptions options = new AutoCompleteOptions();
options.setTypes(Arrays.asList(new String[] { "geocode" }));
final AutoComplete autoComplete = new AutoComplete(this.auto.getElement(), options);
autoComplete.bindTo("bounds", (com.google.gwt.maps.client.Map) this.mapWidget.getMap());

有任何想法吗?

4

0 回答 0