/** * Create an instance of {@link Cell } * */ public Cell createCell() { return new Cell(); }
public static Cell build(){return new Cell();}
public static Cell image(Image image) { Cell cell = new Cell(); cell.getContent().add(image); return cell; } }
public static Cell createParagraphCell(String text) { Paragraph p = new Paragraph(); p.getContent().add(text); Cell cell = new Cell(); cell.getContent().add(p); return cell; }
private Row getRow(TemplateKv kv) { Row row = new Row(); Paragraph p = new Paragraph(); p.getContent().add(kv.getKey()); Cell cellKey = new Cell(); cellKey.getContent().add(p); row.getCell().add(cellKey); Cell cellValue = new Cell(); try { Section section = wikiInlineProcessor.toOfx(kv.getMarkup().getValue()); for(Object s : section.getContent()) { cellValue.getContent().add((Serializable)s); } } catch (OfxInternalProcessingException e) {logger.error("",e);} row.getCell().add(cellValue); return row; }