Package org.olat.core.gui.components.table

Examples of org.olat.core.gui.components.table.ColumnDescriptor


    sb.append('\n');
    sb.append(translate("cl.title")).append('\t').append(this.checklist.getTitle());
    sb.append('\n').append('\n');
    // header
    for (int c = 0; c < (cdcnt-1); c++) { // skip last column (action)
      ColumnDescriptor cd = manageChecklistTable.getColumnDescriptor(c);
      String headerKey = cd.getHeaderKey();
      String headerVal = cd.translateHeaderKey() ? translate(headerKey) : headerKey;
      sb.append('\t').append(headerVal);
    }
    sb.append('\n');
    // checkpoint description
    sb.append('\t');
    for (Checkpoint checkpoint : checklist.getCheckpoints()) {
      sb.append('\t').append(checkpoint.getDescription());
    }
    sb.append('\n');
    // data
    for (int r = 0; r < rcnt; r++) {
      for (int c = 0; c < (cdcnt-1); c++) { // skip last column (action)
        ColumnDescriptor cd = manageChecklistTable.getColumnDescriptor(c);
        StringOutput so = new StringOutput();
        cd.renderValue(so, r, null);
        String cellValue = so.toString();
        cellValue = StringHelper.stripLineBreaks(cellValue);
        sb.append('\t').append(cellValue);
      }
      sb.append('\n');
View Full Code Here


      if (chd.length()!=0) {
        chd.append(",");
      }
      chd.append(v);
     
      ColumnDescriptor cd = tableCtr_.getColumnDescriptor(column);
      String headerKey = cd.getHeaderKey();
      if (cd.translateHeaderKey()) {
        headerKey = headerTranslator_.translate(headerKey);
      }
      labelList.add(headerKey);
    }
    Graph result = new Graph();
View Full Code Here

    result.numElements = columnCnt-2;
    return result;
  }

  private Graph calculateTotalGraph(UserRequest ureq, int columnId) {
    ColumnDescriptor cd = tableCtr_.getColumnDescriptor(columnId);
    String headerKey = cd.getHeaderKey();
    if (cd.translateHeaderKey()) {
      headerKey = headerTranslator_.translate(headerKey);
    }
    String selectionInfo = headerKey;
    String chartIntroStr;
    if (columnId==tableCtr_.getTableDataModel().getColumnCount()-1) {
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.table.ColumnDescriptor

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.