|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xwpf.usermodel.XWPFTable
public class XWPFTable
Sketch of XWPFTable class. Only table's text is being hold.
Specifies the contents of a table present in the document. A table is a set of paragraphs (and other block-level content) arranged in rows and columns.
| Constructor Summary | |
|---|---|
XWPFTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
IBody part)
|
|
XWPFTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
IBody part,
int row,
int col)
|
|
| Method Summary | |
|---|---|
void |
addNewCol()
add a new column for each row in this table |
void |
addNewRowBetween(int start,
int end)
|
void |
addRow(XWPFTableRow row)
add a new Row to the table |
boolean |
addRow(XWPFTableRow row,
int pos)
add a new Row to the table at position pos |
XWPFTableRow |
createRow()
create a new XWPFTableRow object with as many cells as the number of columns defined in that moment |
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl |
getCTTbl()
|
BodyElementType |
getElementType()
returns the type of the BodyElement Table |
int |
getNumberOfRows()
|
IBody |
getPart()
returns the part of the bodyElement |
BodyType |
getPartType()
returns the partType of the bodyPart which owns the bodyElement |
XWPFTableRow |
getRow(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow row)
returns the XWPFRow which belongs to the CTRow row if this row is not existing in the table null will be returned |
XWPFTableRow |
getRow(int pos)
|
java.util.List |
getRows()
|
java.lang.String |
getStyleID()
get the StyleID of the table |
java.lang.String |
getText()
|
int |
getWidth()
|
XWPFTableRow |
insertNewTableRow(int pos)
inserts a new tablerow |
boolean |
removeRow(int pos)
Remove a row at position pos from the table |
void |
setWidth(int width)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XWPFTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
IBody part,
int row,
int col)
public XWPFTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table,
IBody part)
| Method Detail |
|---|
public org.openxmlformats.schemas.wordprocessingml.x2006.main.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 row
public void setWidth(int width)
width - public int getWidth()
public int getNumberOfRows()
public java.lang.String getStyleID()
public void addRow(XWPFTableRow row)
row - the row which should be added
public boolean addRow(XWPFTableRow row,
int pos)
row - the row which should be addedpublic XWPFTableRow insertNewTableRow(int pos)
pos -
public boolean removeRow(int pos)
throws java.lang.IndexOutOfBoundsException
pos - position the Row in the Table
java.lang.IndexOutOfBoundsExceptionpublic java.util.List getRows()
public BodyElementType getElementType()
getElementType in interface IBodyElementIBodyElement.getElementType()public IBody getPart()
getPart in interface IBodyElementIBody.getPart()public BodyType getPartType()
getPartType in interface IBodyElementIBody.getPartType()public XWPFTableRow getRow(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow row)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||