Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.GetMapConfigurationRequest


    Assert.assertEquals(-85.05112877980659, configMaxExtent.getX(), DOUBLE_TOLERANCE);
    Assert.assertEquals(-85.05112877980659, configMaxExtent.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getWidth(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getHeight(), DOUBLE_TOLERANCE);

    GetMapConfigurationRequest request = new GetMapConfigurationRequest();
    request.setApplicationId("simplevectors");
    request.setMapId("coordTestMap");
    GetMapConfigurationResponse response = (GetMapConfigurationResponse) dispatcher.execute(
        GetMapConfigurationRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
View Full Code Here


    getMapButton.setWidth(150);
    getMapButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND);
        commandRequest.setCommandRequest(new GetMapConfigurationRequest("mapOsm", "gwt-samples"));
        GwtCommandDispatcher.getInstance().execute(commandRequest, new CommandCallback() {

          public void execute(CommandResponse response) {
            SC.say("Command executed successfully");
          }
View Full Code Here

  }

  @Test
  public void testGetConfigurationFilterToolsAndInvisibleLayers() throws Exception {
    login("luc");
    GetMapConfigurationRequest request = new GetMapConfigurationRequest();
    request.setApplicationId(APP_ID);
    request.setMapId(MAP_ID);
    CommandResponse response = commandDispatcher.execute(GetMapConfigurationRequest.COMMAND, request,
        securityContext.getToken(), "en");
    Assert.assertFalse(response.isError());
    Assert.assertTrue(response instanceof GetMapConfigurationResponse);
    ClientMapInfo mapInfo = ((GetMapConfigurationResponse)response).getMapInfo();
View Full Code Here

  }

  @Test
  public void testGetConfigurationFilterAttributes() throws Exception {
    login("marino");
    GetMapConfigurationRequest request = new GetMapConfigurationRequest();
    request.setApplicationId(APP_ID);
    request.setMapId(MAP_ID);
    CommandResponse response = commandDispatcher.execute(GetMapConfigurationRequest.COMMAND, request,
        securityContext.getToken(), "en");
    Assert.assertFalse(response.isError());
    Assert.assertTrue(response instanceof GetMapConfigurationResponse);
    ClientMapInfo mapInfo = ((GetMapConfigurationResponse)response).getMapInfo();
View Full Code Here

   * @since 1.6.0
   */
  @Api
  public void init() {
    GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND);
    commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId));
    GwtCommandDispatcher.getInstance().execute(commandRequest, new CommandCallback() {

      public void execute(CommandResponse response) {
        if (response instanceof GetMapConfigurationResponse) {
          GetMapConfigurationResponse r = (GetMapConfigurationResponse) response;
View Full Code Here

    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

TOP

Related Classes of org.geomajas.command.dto.GetMapConfigurationRequest

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.