Package org.geomajas.puregwt.client.command

Examples of org.geomajas.puregwt.client.command.Command


    eventBus.addHandler(ViewPortChangedHandler.TYPE, mapGadgetRenderer);
    eventBus.addHandler(MapResizedEvent.TYPE, mapGadgetRenderer);

    setFallbackController(new NavigationController());

    Command commandRequest = new Command(GetMapConfigurationRequest.COMMAND);
    commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId));
    CommandService cmdService = new CommandService();
    cmdService.execute(commandRequest, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
        if (response instanceof GetMapConfigurationResponse) {
View Full Code Here


    request.setSearchType(searchType.getValue());
    request.setRatio(ratio);
    request.setCrs(crs);
    request.setFeatureIncludes(11);

    Command command = new Command(SearchByLocationRequest.COMMAND);
    command.setCommandRequest(request);
    commandService.execute(command, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
        if (response instanceof SearchByLocationResponse) {
          SearchByLocationResponse sblr = (SearchByLocationResponse) response;
View Full Code Here

      request.setLayerId(layer.getServerLayerId());
      request.setCrs(crs);
      request.setFilter(fs.getFilter());
      request.setFeatureIncludes(11);

      Command command = new Command(SearchFeatureRequest.COMMAND);
      command.setCommandRequest(request);
      commandService.execute(command, new CommandCallback() {

        public void onSuccess(CommandResponse response) {
          if (response instanceof SearchFeatureResponse) {
            SearchFeatureResponse sfr = (SearchFeatureResponse) response;
View Full Code Here

    request.setBbox(new org.geomajas.geometry.Bbox(currentTileBounds.getX(), currentTileBounds.getY(),
        currentTileBounds.getWidth(), currentTileBounds.getHeight()));
    request.setCrs(viewPort.getCrs());
    request.setLayerId(rasterLayer.getServerLayerId());
    request.setScale(viewPort.getScale());
    Command command = new Command(GetRasterTilesRequest.COMMAND);
    command.setCommandRequest(request);

    // Execute the fetch, and render on success:
    deferred = commandService.execute(command, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
View Full Code Here

    request.setBbox(new org.geomajas.geometry.Bbox(currentTileBounds.getX(), currentTileBounds.getY(),
        currentTileBounds.getWidth(), currentTileBounds.getHeight()));
    request.setCrs(viewPort.getCrs());
    request.setLayerId(rasterLayer.getServerLayerId());
    request.setScale(viewPort.getScale());
    Command command = new Command(GetRasterTilesRequest.COMMAND);
    command.setCommandRequest(request);

    // Execute the fetch, and render on success:
    deferred = commandService.execute(command, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
View Full Code Here

  // -------------------------------------------------------------------------
  // Private methods:
  // -------------------------------------------------------------------------

  private void render(final boolean renderSiblings) {
    Command command = createCommand();
    deferred = service.execute(command, new CommandCallback() {

      public void onSuccess(CommandResponse response) {
        if (!(deferred != null && deferred.isCancelled()) && response instanceof GetVectorTileResponse) {
          GetVectorTileResponse tileResponse = (GetVectorTileResponse) response;
View Full Code Here

    request.setPanOrigin(renderer.getViewPort().getPanOrigin());
    request.setRenderer(Geomajas.isIE() ? "VML" : "SVG");
    request.setScale(renderer.getViewPort().getScale());
    request.setStyleInfo(renderer.getLayer().getLayerInfo().getNamedStyleInfo());
    request.setFeatureIncludes(0);
    Command command = new Command(GetVectorTileRequest.COMMAND);
    command.setCommandRequest(request);
    return command;
  }
View Full Code Here

      request.setLocation(geometryConverter.toDto(location));
      request.setSearchType(SearchType.SEARCH_ALL_LAYERS.getValue());
      request.setCrs(crs);
      request.setFeatureIncludes(11);

      Command command = new Command(SearchByLocationRequest.COMMAND);
      command.setCommandRequest(request);
      commandService.execute(command, new CommandCallback() {

        public void onSuccess(CommandResponse response) {
          if (response instanceof SearchByLocationResponse) {
            SearchByLocationResponse sblr = (SearchByLocationResponse) response;
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.command.Command

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.