Package org.geomajas.gwt.client.widget

Examples of org.geomajas.gwt.client.widget.Toolbar.addMember()


      public void onMapModelChange(MapModelEvent event) {
        Label title = new Label("Geomajas GWT: hello world");
        title.setStyleName("appTitle");
        title.setWidth(260);
        toolbar.addFill();
        toolbar.addMember(title);
      }
    });

    VLayout mapLayout = new VLayout();
    mapLayout.addMember(toolbar);
View Full Code Here


      public void onMapModelChange(MapModelEvent event) {
        Label title = new Label("Geomajas GWT: hello world");
        title.setStyleName("appTitle");
        title.setWidth(260);
        toolbar.addFill();
        toolbar.addMember(title);
        GetMapImageAction getMapImage = new GetMapImageAction(map);
        toolbar.addSeparator();
        toolbar.addActionButton(getMapImage);
        GetLegendImageAction getLegendImageAll = new GetLegendImageAction(map, true);
        toolbar.addSeparator();
View Full Code Here

    Toolbar toolbar = new Toolbar(map);
    // @extract-skip-start
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);
    // @extract-skip-end

    toolbar.addMember(new GeocoderWidget(map, "description", "Geocoder"));

    VLayout mapLayout = new VLayout();
    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);
    mapLayout.setHeight("100%");
View Full Code Here

    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);
    final GeocoderWidget geocoderWidget = new GeocoderWidget(map, "description", "Geocoder");
    toolbar.addMember(geocoderWidget);

    SelectItem geocoderSource = new SelectItem("geocoderSource", "");
    geocoderSource.setDefaultToFirstOption(true);
    geocoderSource.setOptionDataSource(getGeocoderSelectDataSource());
    geocoderSource.setDisplayField(FIELD_LABEL);
View Full Code Here

        geocoderWidget.setServicePattern((String) event.getValue());
      }
    });
    DynamicForm geocoderSourceForm = new DynamicForm();
    geocoderSourceForm.setFields(geocoderSource);
    toolbar.addMember(geocoderSourceForm);

    layout.addMember(toolbar);
    layout.addMember(map);
    return layout;
  }
View Full Code Here

    // wait for the map to be loaded cause we need a correct map.getPixelPerUnit
    map.getMapModel().addMapModelHandler(new MapModelHandler() {

      public void onMapModelChange(MapModelEvent event) {
        ScaleSelect scaleSelect = new ScaleSelect(map.getMapModel().getMapView(), map.getPixelPerUnit());
        toolbar.addMember(scaleSelect);
      }
    });

    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.