Package com.smartgwt.client.widgets.layout

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


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

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

    return layout;
  }

  public String getDescription() {
View Full Code Here


    });
    DynamicForm geocoderSourceForm = new DynamicForm();
    geocoderSourceForm.setFields(geocoderSource);
    toolbar.addMember(geocoderSourceForm);

    layout.addMember(toolbar);
    layout.addMember(map);
    return layout;
  }

  private DataSource getGeocoderSelectDataSource() {
View Full Code Here

    DynamicForm geocoderSourceForm = new DynamicForm();
    geocoderSourceForm.setFields(geocoderSource);
    toolbar.addMember(geocoderSourceForm);

    layout.addMember(toolbar);
    layout.addMember(map);
    return layout;
  }

  private DataSource getGeocoderSelectDataSource() {
    DataSource dataSource = new DataSource();
View Full Code Here

    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    final MapWidget map = new MapWidget("mapLegend", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    IButton rasterButton = new IButton("Toggle Raster layer");
    rasterButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
View Full Code Here

    legendLayout.setShowEdges(true);

    final Legend legend = new Legend(map.getMapModel());
    legend.setHeight100();
    legend.setWidth100();
    legendLayout.addMember(legend);

    topLayout.addMember(buttonLayout);
    topLayout.addMember(legendLayout);

    mainLayout.addMember(topLayout);
View Full Code Here

    mapLayout.setShowEdges(true);

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

    // Create a layout with a FeatureListGrid in it:
    final FeatureListGrid grid = new FeatureListGrid(map.getMapModel());
    grid.setShowEdges(true);
    grid.setShowResizeBar(true);
View Full Code Here

    // Create a toolbar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
    HLayout infoLayout = new HLayout();
    infoLayout.setHeight("35%");
View Full Code Here

    // Create a toolbar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
    HLayout infoLayout = new HLayout();
    infoLayout.setHeight("35%");
    infoLayout.setShowEdges(true);
View Full Code Here

    layout.setHeight100();

    // Map with ID beansMap is defined in the XML configuration. (contains any type of attribute)
    final MapWidget map = new MapWidget("mapBeansCustomType", "gwt-samples");
    map.setVisible(false);
    layout.addMember(map);
    map.init();

    map.getMapModel().addMapModelHandler(new MapModelHandler() {

      public void onMapModelChange(MapModelEvent event) {
View Full Code Here

      public void onMapModelChange(MapModelEvent event) {
        VectorLayer layer = (VectorLayer) map.getMapModel().getLayer("beansLayerCustomType");
        FeatureAttributeEditor editor = new FeatureAttributeEditor(layer, false);
        editor.setWidth(400);
        layout.addMember(editor);
      }
    });

    return layout;
  }
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.