本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFDocument.getTable()
方法的一些代码示例,展示了XWPFDocument.getTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWPFDocument.getTable()
方法的具体详情如下:
包路径:org.apache.poi.xwpf.usermodel.XWPFDocument
类名称:XWPFDocument
方法名:getTable
[英]get a table by its CTTbl-Object
[中]通过CTTbl对象获取表格
代码示例来源:origin: org.apache.poi/poi-ooxml
tables.add(0, newT);
} else {
int pos = tables.indexOf(getTable((CTTbl) o)) + 1;
tables.add(pos, newT);
代码示例来源:origin: org.apache.poi/poi-ooxml
XWPFTable table = getTable(tbl);
if (table == null) {
return null;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
tables.add(0, newT);
} else {
int pos = tables.indexOf(getTable((CTTbl) o)) + 1;
tables.add(pos, newT);
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
tables.add(0, newT);
} else {
int pos = tables.indexOf(getTable((CTTbl) o)) + 1;
tables.add(pos, newT);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
XWPFTable table = getTable(tbl);
if (table == null) {
return null;
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* get the TableCell which belongs to the TableCell
* @param cell
*/
public XWPFTableCell getTableCell(CTTc cell) {
XmlCursor cursor = cell.newCursor();
cursor.toParent();
XmlObject o = cursor.getObject();
if(!(o instanceof CTRow)){
return null;
}
CTRow row = (CTRow)o;
cursor.toParent();
o = cursor.getObject();
cursor.dispose();
if(! (o instanceof CTTbl)){
return null;
}
CTTbl tbl = (CTTbl) o;
XWPFTable table = getTable(tbl);
if(table == null){
return null;
}
XWPFTableRow tableRow = table.getRow(row);
if (tableRow == null) {
return null;
}
return tableRow.getTableCell(cell);
}
内容来源于网络,如有侵权,请联系作者删除!