Examples of IUtilTable


Examples of org.mmisw.orrportal.gwt.client.util.table.IUtilTable

   
    List<String> colNames = new ArrayList<String>();
    colNames.addAll(header);
    colNames.add(0, "Name");

    IUtilTable utilTable = UtilTableCreator.create(colNames);
    List<IRow> rows = new ArrayList<IRow>();
   
    for ( EntityInfo entity : entities ) {
      Orr.log("_createOtherWidgetForEntities: entity=" + entity.getUri());
     
      // vals: propName -> all corresp. values
      final Map<String, String> vals = new HashMap<String, String>();
     
      List<PropValue> props = entity.getProps();
     
      for ( PropValue pv : props ) {
        // Issue 310: multiple property values not shown
        // Simply put as value the concatenation of all the values for the same property:
       
        final String n = pv.getPropName();
        final String v = pv.getValueName();
       
        String rv = vals.get(n);
        //Orr.log("_createOtherWidgetForEntities: n=" + n + " v=" +v+ " rv=" +rv);
        if (rv == null) {
          rv = v;
        }
        else {
          rv += ", " + v;
        }
        vals.put(n, rv);
      }

      vals.put("Name", entity.getLocalName());
     
      rows.add(new RowAdapter() {
        public String getColValue(String sortColumn) {
          return vals.get(sortColumn);
        }
      });
    }
    utilTable.setRows(rows);
   
    return utilTable.getWidget();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.table.IUtilTable

      VerticalPanel tp = new VerticalPanel();
      tp.add(new Label("Class: " +className));
     
      String[] colNames = classHeader.toArray(new String[classHeader.size()]);
     
      IUtilTable utilTable = UtilTableCreator.create(colNames);
      tp.add(utilTable.getWidget());

      List<IndividualInfo> individuals = classData.getIndividuals();
      Orr.log("num individuals: " +individuals.size());
     
      List<IRow> rows = new ArrayList<IRow>();
      for ( IndividualInfo entity : individuals ) {
       
        final Map<String, String> vals = new HashMap<String, String>();
        List<PropValue> props = entity.getProps();
        for ( PropValue pv : props ) {
          vals.put(pv.getPropName(), pv.getValueName());
        }

        vals.put("Name", entity.getLocalName());
       
        rows.add(new RowAdapter() {
          public String getColValue(String sortColumn) {
            return vals.get(sortColumn);
          }
        });
      }
     
      utilTable.setRows(rows);
     
      vp.add(tp);
     
    }
   
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.table.IUtilTable

   
    List<String> colNames = new ArrayList<String>();
    colNames.addAll(header);
    colNames.add(0, "Name");

    IUtilTable utilTable = UtilTableCreator.create(colNames);
    List<IRow> rows = new ArrayList<IRow>();
    for ( EntityInfo entity : entities ) {
      final Map<String, String> vals = new HashMap<String, String>();
      List<PropValue> props = entity.getProps();
      for ( PropValue pv : props ) {
        vals.put(pv.getPropName(), pv.getValueName());
      }

      vals.put("Name", entity.getLocalName());
     
      rows.add(new RowAdapter() {
        public String getColValue(String sortColumn) {
          return vals.get(sortColumn);
        }
      });
    }
    utilTable.setRows(rows);
   
    return utilTable.getWidget();
  }
View Full Code Here

Examples of org.mmisw.orrportal.gwt.client.util.table.IUtilTable

   
    List<String> colNames = new ArrayList<String>();
    colNames.addAll(header);
    colNames.add(0, "Name");

    IUtilTable utilTable = UtilTableCreator.create(colNames);
    List<IRow> rows = new ArrayList<IRow>();
    for ( EntityInfo entity : entities ) {
      final Map<String, String> vals = new HashMap<String, String>();
      List<PropValue> props = entity.getProps();
      for ( PropValue pv : props ) {
        vals.put(pv.getPropName(), pv.getValueName());
      }

      vals.put("Name", entity.getLocalName());
     
      rows.add(new RowAdapter() {
        public String getColValue(String sortColumn) {
          return vals.get(sortColumn);
        }
      });
    }
    utilTable.setRows(rows);
   
    return utilTable.getWidget();
  }
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.