Package io.keikai.doc.io.schema.docx
Class DOCXTbl
java.lang.Object
io.keikai.doc.io.schema.docx.AbstractVisitable
io.keikai.doc.io.schema.docx.AbstractBodyElement
io.keikai.doc.io.schema.docx.DOCXTbl
- All Implemented Interfaces:
ICTElement,IDOCXVisitable<Object>,IXWPFElement
Internal Use Only.
Table Definition.
Represents w:tbl in xml.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXTbl(org.apache.poi.xwpf.usermodel.XWPFTable xwpfTable, AbstractBody parent) Create a new Table by given XWPFTable. -
Method Summary
Modifier and TypeMethodDescriptionaccept(IDOCXVisitor visitor) Accepts a visitor.Create a new TableRow under this Table.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblgetCT()Returns the CT object of current element.Returns the parent element of current element.getTableRow(int pos) Returns the TableRow at the specified position.Returns the table rows.getTblPr()Returns the table properties.getTblPr(boolean create) Returns the table properties.Double[]Returns the widths of the columns.org.apache.poi.xwpf.usermodel.XWPFTablegetXWPF()Returns the XWPF object of current element.booleanReturns whether the table properties is set.voidSets the table properties.voidSets the widths of the columns.Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Constructor Details
-
DOCXTbl
Create a new Table by given XWPFTable.- Parameters:
xwpfTable- the XWPFTable object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl getCT()Description copied from interface:ICTElementReturns the CT object of current element. -
accept
Description copied from interface:IDOCXVisitableAccepts a visitor. -
getXWPF
public org.apache.poi.xwpf.usermodel.XWPFTable getXWPF()Description copied from interface:IXWPFElementReturns the XWPF object of current element. -
getParent
Description copied from interface:IXWPFElementReturns the parent element of current element. -
getTblPr
Returns the table properties.Represents the following element tag in the schema:
w:tblPr.- Returns:
- the table properties.
-
getTblPr
Returns the table properties.Represents the following element tag in the schema:
w:tblPr.- Parameters:
create- whether to create a new table properties if it doesn't exist.- Returns:
- the table properties.
-
setTblPr
Sets the table properties.Represents the following element tag in the schema:
w:tblPr.- Parameters:
tblPr- the table properties.
-
isSetTblPr
public boolean isSetTblPr()Returns whether the table properties is set.- Returns:
- whether the table properties is set.
-
getTableRows
Returns the table rows.Represents the following element tag in the schema:
w:tr.- Returns:
- the table rows.
-
getTableRow
Returns the TableRow at the specified position.- Parameters:
pos- the position of the TableRow.- Returns:
- the TableRow at the specified position.
-
createTableRow
Create a new TableRow under this Table.- Returns:
- the new TableRow.
-
getWidths
Returns the widths of the columns.- Returns:
- the widths of the columns.
-
setWidths
Sets the widths of the columns.- Parameters:
widths- the widths of the columns.
-