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; }
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; }
private Table getTable(List<TemplateKv> listKv) { Table table = new Table(); table.setTitle(XmlTitleFactory.build("TestTitle")); table.setSpecification(getSpecification()); table.setContent(getTableContent(listKv)); 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; }