|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<Autocomplete>
com.google.gwt.maps.client.placeslib.Autocomplete
public class Autocomplete
A service to provide Place predictions based on a user's text input. It attaches to an input element of type text, and listens for text entry in that field. The list of predictions is presented as a drop-down list, and is updated as text is entered. This class extends MVCObject.
See Autocomplete API Doc
| Constructor Summary | |
|---|---|
protected |
Autocomplete()
use newInstance(); |
| Method Summary | |
|---|---|
HandlerRegistration |
addPlaceChangeHandler(PlaceChangeMapHandler handler)
This event is fired when a PlaceResult is made available for a Place the user has selected. |
LatLngBounds |
getBounds()
Returns the bounds to which predictions are biased. |
PlaceResult |
getPlace()
Returns the details of the Place selected by the user, or null if no Place has been selected yet. |
static Autocomplete |
newInstance(Element inputField,
AutocompleteOptions options)
Creates a new instance of Autocomplete that attaches to the specified input text field with the given options. |
void |
setBounds(LatLngBounds bounds)
Sets the preferred area within which to return Place results. |
void |
setTypes(AutocompleteType... types)
Sets the types of predictions to be returned. |
| Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
|---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Autocomplete()
| Method Detail |
|---|
public static final Autocomplete newInstance(Element inputField,
AutocompleteOptions options)
inputField - options - public final HandlerRegistration addPlaceChangeHandler(PlaceChangeMapHandler handler)
handler - public final LatLngBounds getBounds()
public final PlaceResult getPlace()
public final void setBounds(LatLngBounds bounds)
bounds - public final void setTypes(AutocompleteType... types)
types -
|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||