Package org.geomajas.gwt.client.widget

Examples of org.geomajas.gwt.client.widget.FeatureListGrid


    button1a.setWidth(110);
    buttonLayout.addMember(button1a);
    mainLayout.addMember(buttonLayout);

    // Create the FeatureGrid that shows alpha-numerical attributes of features:
    table = new FeatureListGrid(map.getMapModel());
    table.setEditingEnabled(true);
    mainLayout.addMember(table);
  }
View Full Code Here


    layout.setSize("100%", "100%");
    layout.setVisible(false);
    layout.setStyleName("search_panel_inner");

    // Create the FeatureListGrid - a table for displaying attributes:
    featureListGrid = new FeatureListGrid(mapModel);
    featureListGrid.setEditingEnabled(true);
    layout.addMember(featureListGrid);
    return layout;
  }
View Full Code Here

    layout.setSize("100%", "100%");
    layout.setVisible(false);
    layout.setStyleName("search_panel_inner");

    // Create the FeatureListGrid - a table for displaying attributes:
    featureListGrid = new FeatureListGrid(mapModel);
    featureListGrid.setEditingEnabled(true);
    layout.addMember(featureListGrid);
    return layout;
  }
View Full Code Here

    button1a.setWidth(110);
    buttonLayout.addMember(button1a);
    mainLayout.addMember(buttonLayout);

    // Create the FeatureGrid that shows alpha-numerical attributes of features:
    table = new FeatureListGrid(map.getMapModel());
    table.setEditingEnabled(true);
    mainLayout.addMember(table);
  }
View Full Code Here

    button1a.setWidth(110);
    buttonLayout.addMember(button1a);
    mainLayout.addMember(buttonLayout);

    // Create the FeatureGrid that shows alpha-numerical attributes of features:
    table = new FeatureListGrid(map.getMapModel());
    table.setEditingEnabled(true);
    mainLayout.addMember(table);
  }
View Full Code Here

    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);
    grid.setEditingEnabled(true);

    // Add a trigger to fill the grid when the map has finished loading:

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

      public void onMapModelChange(MapModelEvent event) {
        final VectorLayer layer = map.getMapModel().getVectorLayer("clientLayerBeansEditableGrid");
        grid.setLayer(layer);
        SearchFeatureRequest searchFeatureRequest = new SearchFeatureRequest();
        searchFeatureRequest.setCrs(map.getMapModel().getCrs());
        searchFeatureRequest.setFeatureIncludes(GeomajasConstant.FEATURE_INCLUDE_ATTRIBUTES);
        searchFeatureRequest.setLayerId("layerBeansEditableGrid");
        GwtCommand searchCommand = new GwtCommand(SearchFeatureRequest.COMMAND);
        searchCommand.setCommandRequest(searchFeatureRequest);

        GwtCommandDispatcher.getInstance().execute(searchCommand,
            new AbstractCommandCallback<SearchFeatureResponse>() {

              public void execute(SearchFeatureResponse response) {
                for (org.geomajas.layer.feature.Feature feature : response.getFeatures()) {
                  Feature f = new Feature(feature, layer);
                  grid.addFeature(f);
                  layer.getFeatureStore().addFeature(f);
                }
              }
            });
      }
View Full Code Here

    final MapWidget map = new MapWidget("mapFeatureListGrid", "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);

    // Add a trigger to fill the grid when the map has finished loading:

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

      public void onMapModelChange(MapModelEvent event) {
        final VectorLayer layer = map.getMapModel().getVectorLayer("clientLayerCountries110mGrid");
        grid.setLayer(layer);
        SearchFeatureRequest searchFeatureRequest = new SearchFeatureRequest();
        searchFeatureRequest.setCrs(map.getMapModel().getCrs());
        searchFeatureRequest.setFeatureIncludes(GeomajasConstant.FEATURE_INCLUDE_ATTRIBUTES);
        searchFeatureRequest.setLayerId("layerCountries110m");
        GwtCommand searchCommand = new GwtCommand(SearchFeatureRequest.COMMAND);
        searchCommand.setCommandRequest(searchFeatureRequest);

        GwtCommandDispatcher.getInstance().execute(searchCommand,
            new AbstractCommandCallback<SearchFeatureResponse>() {

              public void execute(SearchFeatureResponse response) {
                for (org.geomajas.layer.feature.Feature feature : response.getFeatures()) {
                  grid.addFeature(new Feature(feature, layer));
                }
              }
            });
      }
    });
View Full Code Here

    map.setVisible(false);
    layout.addMember(map);
    map.init();

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

    // Create a search widget that displays it's results in the FeatureListGrid:
    final FeatureSearch search = new FeatureSearch(map.getMapModel(), true);
    search.addSearchHandler(new DefaultSearchHandler(grid) {
View Full Code Here

    map.setVisible(false);
    layout.addMember(map);
    map.init();

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

    // Create a search widget that displays it's results in the FeatureListGrid:
    final FeatureSearch search = new FeatureSearch(map.getMapModel(), true);
    search.addSearchHandler(new DefaultSearchHandler(grid) {
View Full Code Here

        }
      });
      toolStrip.addButton(focusButton);
      toolStrip.addButton(showButton);
      toolStrip.addButton(exportButton);
      featureListGrid = new FeatureListGrid(mapWidget.getMapModel(), new DoubleClickHandler() {

        public void onDoubleClick(DoubleClickEvent event) {
          showFeatureDetail();
        }
      });
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.widget.FeatureListGrid

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.