Package org.geomajas.widget.searchandfilter.command.dto

Examples of org.geomajas.widget.searchandfilter.command.dto.FeatureSearchResponse


    GwtCommand commandRequest = new GwtCommand(FeatureSearchRequest.COMMAND);
    commandRequest.setCommandRequest(request);
    Deferred def = GwtCommandDispatcher.getInstance().execute(commandRequest, new CommandCallback() {
      public void execute(CommandResponse commandResponse) {
        if (commandResponse instanceof FeatureSearchResponse) {
          FeatureSearchResponse response = (FeatureSearchResponse) commandResponse;
          onFinished.execute(convertFromDto(response.getFeatureMap(),
              mapWidget.getMapModel()));
        }
      }
    });
    if (onError != null) {
View Full Code Here


          features = new Feature[0];
        }
      }
    } else if (request.getSearchByCriterionRequest() != null) {
      log.debug("CSV export using CriterionRequest");
      FeatureSearchResponse result = (FeatureSearchResponse) dispatch.execute(FeatureSearchRequest.COMMAND,
          request.getSearchByCriterionRequest(), token, locale);
      if (result.isError()) {
        response.getErrorMessages().addAll(result.getErrorMessages());
        response.getErrors().addAll(result.getErrors());
      } else {
        List<Feature> res = result.getFeatureMap().get(request.getLayerId());
        if (res != null) {
          features = res.toArray(new Feature[res.size()]);
        } else {
          features = new Feature[0];
        }
View Full Code Here

      }
    }
  }

  public FeatureSearchResponse getEmptyCommandResponse() {
    return new FeatureSearchResponse();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.widget.searchandfilter.command.dto.FeatureSearchResponse

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.