Examples of addRow()


Examples of org.apache.karaf.shell.table.ShellTable.addRow()

        ShellTable table = new ShellTable();
        table.column("Logger");
        table.column("Level");

        for (String logger : loggers.keySet()) {
            table.addRow().addContent(logger, loggers.get(logger));
        }

        table.print(System.out, !noFormat);

        return null;
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable.addRow()

        TextTable txtTable = new TextTable(3);

        txtTable.addHeaders("ID", "Name", "Deployment Time");
        for (Deployment dep : depList) {
            txtTable.addRow(dep.getId(), dep.getName(), formatDate(dep.getDeploymentTime()));
        }
        txtTable.print(out);
    }

    private void printProcessDefinitions(PrintWriter out, RepositoryService repo) {
View Full Code Here

Examples of org.apache.wink.common.model.csv.CsvTable.addRow()

    @Produces
    public CsvTable getCsv() {
        CsvTable cvs = new CsvTable("Id", "Name", "Severity", "Status", "Author");
        for (DefectBean defectBean : defects) {
            cvs.addRow(defectBean.getId(),
                       defectBean.getName(),
                       defectBean.getSeverity(),
                       defectBean.getStatus(),
                       defectBean.getAuthor());
        }
View Full Code Here

Examples of org.beryl.gui.model.TableDataModel.addRow()

        if (!properties.contains(entry.propertyName)) {

          if (entry.propertyName.equals("anchor")) {
            if (info.getSupportsAnchor()) {
              tableModel.addRow(new PropertyEntryTableRow(entry));
            }
          } else {
            tableModel.addRow(new PropertyEntryTableRow(entry));
          }
        }
View Full Code Here

Examples of org.boris.expr.util.ExprArrayBuilder.addRow()

    }

    public static ExprArray loadArray(String filename) throws IOException {
        ExprArrayBuilder ab = new ExprArrayBuilder();
        for (String line : IO.readLines(TH.class, filename)) {
            ab.addRow(Exprs.parseValues(CSV.parseLine(line, ',', false)));
        }
        return ab.toArray();
    }
}
View Full Code Here

Examples of org.broadinstitute.gatk.engine.report.GATKReport.addRow()

        if (calculateFilteredDistribution) {
            report = GATKReport.newSimpleReport("BaseCoverageDistribution", "Coverage", "Count", "Filtered");
        } else {
            report = GATKReport.newSimpleReport("BaseCoverageDistribution", "Coverage", "Count");
            report.addRow(0, uncoveredBases); // preemptively add the uncovered bases row (since they'll never exist in the Map)
        }

        for (Map.Entry<Integer, ArrayList<Long>> entry : result.entrySet()) {
            final ArrayList<Long> values = entry.getValue();
            final int coverage = entry.getKey();
View Full Code Here

Examples of org.broadleafcommerce.common.util.TableCreator.addRow()

            new TableCreator.Col("Total Adj"),
            new TableCreator.Col("Total Price")
        });

        for (OrderItem oi : order.getOrderItems()) {
            tc.addRow(new String[] {
                oi.getName(),
                String.valueOf(oi.getQuantity()),
                String.valueOf(oi.getPriceBeforeAdjustments(true)),
                String.valueOf(oi.getAverageAdjustmentValue()),
                String.valueOf(oi.getTotalAdjustmentValue()),
View Full Code Here

Examples of org.cipres.treebase.domain.matrix.CharacterMatrix.addRow()

      TaxonLabel label = taxonLabels.get(rowIndex);

      MatrixRow aRow = new MatrixRow();
      aRow.setTaxonLabel(label);
      m.addRow(aRow);

      // add elements for a row: replaced by the direct jdbc version
      // addRowElements(aRow, rowIndex, pMesqMatrix);
    }
View Full Code Here

Examples of org.cipres.treebase.domain.matrix.StandardMatrix.addRow()

    seg2.setStartIndex(1);
    seg2.setEndIndex(1);
    r1.addSegment(seg2);

    matrix.addRow(r1);

    // TODO: add a second row.
 
    //getMatrixHome().store(taxonLabel);
    getMatrixHome().store(c1);
View Full Code Here

Examples of org.dbunit.dataset.DefaultTable.addRow()

      columns[i] = new Column(cols[i], DataType.UNKNOWN);
    }
    DefaultTable result = new DefaultTable(name, columns);
    for (String[] row : data) {
      try {
        result.addRow(row);
      }
      catch (DataSetException ex) {
        throw new RuntimeException(ex);
      }
    }
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.