Examples of ListGridRecord


Examples of com.smartgwt.client.widgets.grid.ListGridRecord

        }
      }
    }

    private void showFeatureDetail() {
      ListGridRecord selected = featureListGrid.getSelectedRecord();
      if (selected != null) {
        String featureId = selected.getAttribute("featureId");
        if (featureId != null && featureListGrid.getLayer() != null) {
          featureListGrid.getLayer().getFeatureStore()
              .getFeature(featureId, GeomajasConstant.FEATURE_INCLUDE_ATTRIBUTES, new LazyLoadCallback() {

                public void execute(List<Feature> response) {
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

   *
   * @since 1.0.0
   */
  @Api
  public void onDeselectLayer(LayerDeselectedEvent event) {
    ListGridRecord selected = treeGrid.getSelectedRecord();
    if (selected != null) {
      treeGrid.deselectRecord(selected);
    }
    selectedLayerTreeNode = null;
    htmlSelectedLayer.setContents(I18nProvider.getLayerTree().activeLayer(I18nProvider.getLayerTree().none()));
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

            }
          });
          rollOverTools.addMember(showInfo);
        }

        ListGridRecord lgr = this.getRecord(rowNum);
        if (lgr instanceof LayerTreeLegendItemNode) {
          rollOverLayerTreeNode = ((LayerTreeLegendItemNode) lgr).parent;
        } else if (lgr instanceof LayerTreeLegendNode) {
          rollOverLayerTreeNode = (LayerTreeTreeNode) lgr;
        } else {
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

            }
          }
          toolButtons = rollOverTools.getMembers();
        }

        ListGridRecord lgr = this.getRecord(rowNum);
        if (lgr instanceof LayerTreeLegendItemNode) {
          rollOverLayerTreeNode = ((LayerTreeLegendItemNode) lgr).parent;
        } else if (lgr instanceof LayerTreeLegendNode) {
          rollOverLayerTreeNode = (LayerTreeTreeNode) lgr;
        } else {
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

    // ----------------------------------------------------------

    ListGridRecord[] records = new ListGridRecord[5];
    for (int i = 0; i < 5; i++) {
      records[i] = new ListGridRecord();
    }
    records[0].setAttribute(LABEL, messages.layerInfoLayerInfoFldLayer());
    records[0].setAttribute(VALUE, layer.getLabel());
    records[1].setAttribute(LABEL, messages.layerInfoLayerInfoFldLayerType());
    records[1].setAttribute(VALUE, layerType);
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

  }

  private Canvas createFeatureInfo(VectorLayer layer) {
    List<ListGridRecord> records = new ArrayList<ListGridRecord>();
    for (AttributeInfo attInfo : layer.getLayerInfo().getFeatureInfo().getAttributes()) {
      ListGridRecord r = new ListGridRecord();
      records.add(r);
      String type = getType(attInfo);
      r.setAttribute(ATTRI, attInfo.getName());
      r.setAttribute(LABEL, attInfo.getLabel());
      r.setAttribute(TYPE, type);
      r.setAttribute(EDITA,
          (attInfo.isEditable() ? messages.layerInfoLayerInfoAttYes() : messages.layerInfoLayerInfoAttNo()));
      r.setAttribute(IDENT, (attInfo.isIdentifying() ? messages.layerInfoLayerInfoAttYes() :
        messages.layerInfoLayerInfoAttNo()));
      r.setAttribute(HIDDE,
          (attInfo.isHidden() ? messages.layerInfoLayerInfoAttYes() : messages.layerInfoLayerInfoAttNo()));
      r.setAttribute(NUMER,
          (isNumeric(type) ? messages.layerInfoLayerInfoAttYes() : messages.layerInfoLayerInfoAttNo()));
    }

    // ----------------------------------------------------------
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

  private ListGridRecord[] toRecords(List<GetLocationForStringAlternative> alternatives) {
    ListGridRecord[] records = new ListGridRecord[alternatives.size()];
    for (int i = 0; i < records.length; i++) {
      GetLocationForStringAlternative alt = alternatives.get(i);
      ListGridRecord record = new ListGridRecord();

      record.setAttribute(LOCATION_FIELD, alt.getCanonicalLocation());
      record.setAttribute(LOCATION_OBJECT, alt);

      records[i] = record;
    }
    return records;
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

    /**
     * Implementation of the {@link DoubleClickHandler}, that will show a {@link FeatureAttributeWindow} containing
     * the feature of the row upon which was double clicked. This happens only if the
     */
    public void onDoubleClick(DoubleClickEvent event) {
      ListGridRecord selected = getSelectedRecord();
      String featureId = selected.getAttribute(FEATURE_ID_FIELD_NAME);
      if (featureId != null && layer != null) {
        layer.getFeatureStore().getFeature(featureId, GeomajasConstant.FEATURE_INCLUDE_ATTRIBUTES,
            new LazyLoadCallback() {

              public void execute(List<Feature> response) {
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

    }

    public void onCellOver(CellOverEvent event) {
      ListGridField gridField = FeatureListGrid.this.getField(event.getColNum());
      if (gridField.getName().equals(attributeInfo.getName())) {
        ListGridRecord record = event.getRecord();
        String value = record.getAttribute(attributeInfo.getName());
        if (event.getRowNum() != row) {
          if (img != null) {
            cleanup();
          }
          img = new Img(value);
View Full Code Here

Examples of com.smartgwt.client.widgets.grid.ListGridRecord

    }

    public void onCellClick(CellClickEvent event) {
      ListGridField gridField = FeatureListGrid.this.getField(event.getColNum());
      if (gridField.getName().equals(attributeInfo.getName())) {
        ListGridRecord record = event.getRecord();
        String value = record.getAttribute(attributeInfo.getName());
        Window.open(value, "urlWindow", null);
      }
    }
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.