Package org.odftoolkit.simple.table

Examples of org.odftoolkit.simple.table.Row


  public void visit(TableTableElement ele) {
    Table table = Table.getInstance(ele);
    List<Row> rowlist = table.getRowList();
    int column = table.getColumnCount();
    for (int i = 0; i < rowlist.size(); i++) {
      Row row = rowlist.get(i);
      for (int j = 0; j < column; j++) {
        mTextBuilder.append(row.getCellByIndex(j).getDisplayText());
        mTextBuilder.append(TabChar);
      }
      mTextBuilder.appendLine();
    }
  }
View Full Code Here


  }
  private Paragraph getLastParagraphInTable(Table table) {
    Paragraph paragraph = null;
    int rowCount = table.getRowCount();
    for (int i = rowCount - 1; i >= 0; i--) {
      Row row = table.getRowByIndex(i);
      int cellCount = row.getCellCount();
      for (int j = cellCount - 1; j >= 0; j--) {
        Cell cell = row.getCellByIndex(j);
        paragraph = cell.getParagraphByReverseIndex(0, false);
        if (paragraph != null)
          return paragraph;
      }
    }
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.table.Row

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.