Package com.smartgwt.client.widgets.layout

Examples of com.smartgwt.client.widgets.layout.HLayout.addMember()


    mapLayout.setShowEdges(true);

    // Map with ID osmNavigationToolbarMap is defined in the XML configuration.
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Create a layout for the overview map:
    HLayout bottomLayout = new HLayout();
    bottomLayout.setHeight(300);
    bottomLayout.setMembersMargin(10);
View Full Code Here


        nextStyle = overviewMap.getRectangleStyle();
        overviewMap.setRectangleStyle(temp);
      }
    });
    button1.setWidth100();
    buttonLayout.addMember(button1);

    // Button2: Toggle the maximum extent style:
    IButton button2 = new IButton(I18nProvider.getSampleMessages().overviewMapToggleExtentStyle());
    button2.addClickHandler(new ClickHandler() {
View Full Code Here

        nextStyle = overviewMap.getTargetMaxExtentRectangleStyle();
        overviewMap.setTargetMaxExtentRectangleStyle(temp);
      }
    });
    button2.setWidth100();
    buttonLayout.addMember(button2);

    // Button3: Toggle drawing the maximum extent:
    IButton button3 = new IButton(I18nProvider.getSampleMessages().overviewMapToggleExtent());
    button3.addClickHandler(new ClickHandler() {
View Full Code Here

      public void onClick(ClickEvent event) {
        overviewMap.setDrawTargetMaxExtent(!overviewMap.isDrawTargetMaxExtent());
      }
    });
    button3.setWidth100();
    buttonLayout.addMember(button3);

    // ---------------------------------------------------------------------
    // Place the layouts together:
    // ---------------------------------------------------------------------
View Full Code Here

          featureAttributeWindow.destroy();
          featureAttributeWindow = null;
        }
      }
    });
    buttonLayout.addMember(loginButtonMarino);

    // Create a button that logs in user "luc":
    IButton loginButtonLuc = new IButton(I18nProvider.getSampleMessages().securityLogInWith("luc"));
    loginButtonLuc.setWidth(150);
    loginButtonLuc.addClickHandler(new ClickHandler() {
View Full Code Here

          featureAttributeWindow.destroy();
          featureAttributeWindow = null;
        }
      }
    });
    buttonLayout.addMember(loginButtonLuc);

    // Set up the search command, that will fetch a feature:
    // Searches for ID=1, but we might as well have created a filter on one of the attributes...
    SearchFeatureRequest request = new SearchFeatureRequest();
    request.setBooleanOperator("AND");
View Full Code Here

      public void onClick(ClickEvent event) {
        Authentication.getInstance().login("marino", "marino", initMapCallback);
      }
    });
    buttonLayout.addMember(loginButtonMarino);

    // Create a button that logs in user "luc":
    IButton loginButtonLuc = new IButton(I18nProvider.getSampleMessages().securityLogInWith("luc"));
    loginButtonLuc.setWidth("50%");
    loginButtonLuc.addClickHandler(new ClickHandler() {
View Full Code Here

      public void onClick(ClickEvent event) {
        Authentication.getInstance().login("luc", "luc", initMapCallback);
      }
    });
    buttonLayout.addMember(loginButtonLuc);

    layout.addMember(mapLayout);
    layout.addMember(buttonLayout);
    return layout;
  }
View Full Code Here

    // Map with ID mapOsm is defined in the XML configuration. (mapOsm.xml)
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    HLayout buttonLayout = new HLayout();
    buttonLayout.setMembersMargin(10);

    // Create a button to toggle the navigation addons on and off
View Full Code Here

    buttonLayout.setMembersMargin(10);

    // Create a button to toggle the navigation addons on and off
    final IButton butTogglePanButton = new IButton(I18nProvider.getSampleMessages().togglePanButtons());
    butTogglePanButton.setWidth100();
    buttonLayout.addMember(butTogglePanButton);

    butTogglePanButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        map.setNavigationAddonEnabled(!map.isNavigationAddonEnabled());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.