Examples of AppendixTable


Examples of factbookxml.converter.schema.AppendixTable

            lst.getEntry().add(e);
            e.setName(pivotCells[i][0][0]);
            e.setValue(parseAppendixListEntryValue(pivotCells[i][1][0]));
          }
        } else { // table
          AppendixTable tbl = new AppendixTable();
          appendix.getTable().add(tbl);
          if (tableRow[1].equals("1"))
            tbl.setLettergrouped(1);
          tbl.setTitle(tableRow[2]);
          for (int i = 1; i <= tableColumns; i++) {
            if (pivotCells[0][i][1].equals("1")) {
              AppendixTable.ColumnHeader ch = tbl.getColumnHeader().get(tbl.getColumnHeader().size() - 1);
              ch.setColspan(ch.getColspan() + 1);
            } else {
              AppendixTable.ColumnHeader ch = new AppendixTable.ColumnHeader();
              tbl.getColumnHeader().add(ch);
              ch.setTitle(parseHTML(pivotCells[0][i][0]));
              ch.setColspan(1);
            }
          }
          for (int i = 1; i < pivotCells.length; i++) {
            AppendixTable.Row r = new AppendixTable.Row();
            tbl.getRow().add(r);
            for (int j = 1; j <= tableColumns; j++) {
              AppendixTable.Row.Cell c = new AppendixTable.Row.Cell();
              r.getCell().add(c);
              c.setContent(pivotCells[i][j][0]);
              c.setCenter(pivotCells[i][j][1].equals("1") ? 1 : null);
              c.setCountry(pivotCells[i][j][2].length() == 0 ? null : pivotCells[i][j][2]);
            }
          }
          for (int i = 1; i < pivotCells.length; i++) {
            if (pivotCells[i][0][0] == null)
              break;
            tbl.getFootnote().add(parseHTML(pivotCells[i][0][0]));
          }
        }
      }
    }
  }
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.