public class Autocomplete extends MVCObject<Autocomplete>
Modifier | Constructor and Description |
---|---|
protected |
Autocomplete()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
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.
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
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
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.