/** * Appends a new {@link XWPFTable} to this footnote * @param rows Number of rows to initialize the table with * @param cols Number of columns to initialize the table with * @return the new {@link XWPFTable} with the specified number of rows and columns * @since 4.0.0 */ public XWPFTable createTable(int rows, int cols) { XWPFTable table = new XWPFTable(ctFtnEdn.addNewTbl(), this, rows, cols); bodyElements.add(table); tables.add(table); return table; }
/** * Add a new {@link XWPFTable} to the end of the footnote. * * @param table CTTbl object from which to construct the {@link XWPFTable} * @return The added {@link XWPFTable} */ public XWPFTable addNewTbl(CTTbl table) { CTTbl newTable = ctFtnEdn.addNewTbl(); newTable.set(table); XWPFTable xTable = new XWPFTable(newTable, this); tables.add(xTable); return xTable; }
/** * Appends a new {@link XWPFTable} to this footnote * * @return The new {@link XWPFTable} * @since 4.0.0 */ public XWPFTable createTable() { XWPFTable table = new XWPFTable(ctFtnEdn.addNewTbl(), this); if (bodyElements.size() == 0) { XWPFParagraph p = createParagraph(); ensureFootnoteRef(p); } bodyElements.add(table); tables.add(table); return table; }
/** * Appends a new {@link XWPFTable} to this footnote * @param rows Number of rows to initialize the table with * @param cols Number of columns to initialize the table with * @return the new {@link XWPFTable} with the specified number of rows and columns * @since 4.0.0 */ public XWPFTable createTable(int rows, int cols) { XWPFTable table = new XWPFTable(ctFtnEdn.addNewTbl(), this, rows, cols); bodyElements.add(table); tables.add(table); return table; }
/** * add a new table to the end of the footnote * @param table * @return the added XWPFTable */ public XWPFTable addNewTbl(CTTbl table) { CTTbl newTable = ctFtnEdn.addNewTbl(); newTable.set(table); XWPFTable xTable = new XWPFTable(newTable, this); tables.add(xTable); return xTable; }
/** * Add a new {@link XWPFTable} to the end of the footnote. * * @param table CTTbl object from which to construct the {@link XWPFTable} * @return The added {@link XWPFTable} */ public XWPFTable addNewTbl(CTTbl table) { CTTbl newTable = ctFtnEdn.addNewTbl(); newTable.set(table); XWPFTable xTable = new XWPFTable(newTable, this); tables.add(xTable); return xTable; }
/** * Appends a new {@link XWPFTable} to this footnote * * @return The new {@link XWPFTable} * @since 4.0.0 */ public XWPFTable createTable() { XWPFTable table = new XWPFTable(ctFtnEdn.addNewTbl(), this); if (bodyElements.size() == 0) { XWPFParagraph p = createParagraph(); ensureFootnoteRef(p); } bodyElements.add(table); tables.add(table); return table; }