org.apache.poi.xwpf.usermodel
public class XWPFTable extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuffer |
text |
Constructor and Description |
---|
XWPFTable(XWPFDocument doc,
CTTbl table) |
XWPFTable(XWPFDocument doc,
CTTbl table,
int row,
int col) |
Modifier and Type | Method and Description |
---|---|
void |
addNewCol()
add a new column for each row in this table
|
void |
addNewRowBetween(int start,
int end) |
XWPFTableRow |
createRow()
create a new XWPFTableRow object with as many cells as the number of columns defined in that moment
|
CTTbl |
getCTTbl() |
int |
getNumberOfRows() |
XWPFTableRow |
getRow(int pos) |
java.lang.String |
getText() |
int |
getWidth() |
void |
setWidth(int width) |
public XWPFTable(XWPFDocument doc, CTTbl table, int row, int col)
public XWPFTable(XWPFDocument doc, CTTbl table)
@Internal public CTTbl getCTTbl()
public java.lang.String getText()
public void addNewRowBetween(int start, int end)
public void addNewCol()
public XWPFTableRow createRow()
public XWPFTableRow getRow(int pos)
pos
- - index of the rowpublic void setWidth(int width)
width
- public int getWidth()
public int getNumberOfRows()
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.