Package org.geomajas.plugin.geocoder.client.event

Examples of org.geomajas.plugin.geocoder.client.event.SelectLocationEvent


  public void goToLocation(final CommandResponse commandResponse, final String location) {
    if (commandResponse instanceof GetLocationForStringResponse) {
      GetLocationForStringResponse response = (GetLocationForStringResponse) commandResponse;
      if (response.isLocationFound()) {
        removeAltWindow();
        handlerManager.fireEvent(new SelectLocationEvent(map, response));
      } else {
        List<GetLocationForStringAlternative> alternatives = response.getAlternatives();
        if (null != alternatives && alternatives.size() > 0) {
          handlerManager.fireEvent(new SelectAlternativeEvent(map, alternatives));
        } else {
View Full Code Here


    public void onRecordClick(RecordClickEvent recordClickEvent) {
      GetLocationForStringAlternative alternative;
      alternative = (GetLocationForStringAlternative) recordClickEvent.getRecord()
          .getAttributeAsObject(LOCATION_OBJECT);
      widget.fireEvent(new SelectLocationEvent(widget.getMap(), alternative));
    }
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.geocoder.client.event.SelectLocationEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.