private Content getTableContent(List<TemplateKv> listKv) { Content tgroup = new Content(); tgroup.setHead(getTableHead()); tgroup.getBody().add(getTableBody(listKv)); return tgroup; }
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; }
public Table cron(String fileName) throws FileNotFoundException { Document doc = JDomUtil.load(mrl.searchIs(fileName)); Table table = new Table(); table.setSpecification(createSpecifications()); table.setContent(createContent(doc)); table.getContent().setHead(buildHead()); table.setId("my.id"); table.setComment(comment(table.getId())); table.setTitle(XmlTitleFactory.build("Cron Jobs")); return table; }