public static Table build(List<Object[]> data) { Table table = new Table(); Content content = new Content(); content.getBody().add(buildBody(data)); table.setContent(content); return table; }
private Content getTableContent(List<TemplateKv> listKv) { Content tgroup = new Content(); tgroup.setHead(getTableHead()); tgroup.getBody().add(getTableBody(listKv)); return tgroup; }
private Content createContent(Document doc) { Body body = new Body(); Element rootNode = doc.getRootElement(); for(Element cron : rootNode.getChildren("cron")) { body.getRow().add(createRow(cron)); } Content content = new Content(); content.getBody().add(body); return content; }
public static Table build(List<String> header, List<Object[]> data) { Table table = new Table(); Content content = new Content(); content.setHead(buildHead(header)); content.getBody().add(buildBody(data)); table.setContent(content); return table; }