|
Geomajas, geocoder (PureGWT face) 1.4.0-M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geomajas.plugin.geocoder.client.GeocoderPresenter
public class GeocoderPresenter
Widget for starting a geocoder location search.
| Field Summary |
|---|
| Fields inherited from interface org.geomajas.plugin.geocoder.client.event.SelectLocationHandler |
|---|
TYPE |
| Fields inherited from interface org.geomajas.plugin.geocoder.client.event.SelectAlternativeHandler |
|---|
TYPE |
| Method Summary | |
|---|---|
void |
clearLocation()
Clear the current location. |
void |
fireEvent(GwtEvent<?> event)
Fire an event. |
String |
getServicePattern()
Get the regular expression which is used to select which geocoder services to use. |
void |
goToLocation(GetLocationForStringResponse response,
String location)
Go to the location which matches the given string. |
void |
goToLocation(String location)
Go to the location which matches the given string. |
void |
onSelectAlternative(SelectAlternativeEvent event)
Called when the geocoder returned multiple alternatives, purpose is to allow the user to select one. |
void |
onSelectLocation(SelectLocationEvent event)
Called when the location is selected either because the geocoder returned a match or because the user chose one of the alternatives. |
HandlerRegistration |
setSelectAlternativeHandler(SelectAlternativeHandler handler)
Set the select alternative handler. |
HandlerRegistration |
setSelectLocationHandler(SelectLocationHandler handler)
Set the select location handler. |
void |
setServicePattern(String servicePattern)
Set the regular expression which is used to select which geocoder services to use. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void clearLocation()
public void goToLocation(String location)
location - location
public void goToLocation(GetLocationForStringResponse response,
String location)
response - get location command responselocation - location to go topublic String getServicePattern()
public void setServicePattern(String servicePattern)
servicePattern - geocoder selection regular expressionpublic HandlerRegistration setSelectAlternativeHandler(SelectAlternativeHandler handler)
handler - select alternative handler
public HandlerRegistration setSelectLocationHandler(SelectLocationHandler handler)
handler - select location handler
public void onSelectAlternative(SelectAlternativeEvent event)
SelectAlternativeHandler
onSelectAlternative in interface SelectAlternativeHandlerevent - event, contains the list of alternativespublic void onSelectLocation(SelectLocationEvent event)
SelectLocationHandler
onSelectLocation in interface SelectLocationHandlerevent - event, contains the location which is selectedpublic void fireEvent(GwtEvent<?> event)
event - event to fire
|
Geomajas, geocoder (PureGWT face) 1.4.0-M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||