Package io.keikai.doc.io.schema.docx
Class DOCXTr
java.lang.Object
io.keikai.doc.io.schema.docx.AbstractVisitable
io.keikai.doc.io.schema.docx.DOCXTr
- All Implemented Interfaces:
ICTElement,IDOCXVisitable<Object>,IXWPFElement
Internal Use Only.
Table Row Definition.
Represents w:tr in xml.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(IDOCXVisitor visitor) Accepts a visitor.voidClear all TableCells.Create a new TableCell under this TableRow.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRowgetCT()Returns the CT object of current element.Returns the parent element of current element.Returns the table cells.getTrPr()Returns the table row properties of the table row.getTrPr(boolean create) Returns the table row properties of the table row.org.apache.poi.xwpf.usermodel.XWPFTableRowgetXWPF()Returns the XWPF object of current element.booleanReturns whether the table row properties of the table row is set.voidremoveTableCell(int pos) Remove a TableCell by given position.voidSets the table row properties of the table row.Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Constructor Details
-
DOCXTr
Create a new TableRow by given XWPFTableRow.- Parameters:
xwpfTableRow- the XWPFTableRow object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow 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.XWPFTableRow getXWPF()Description copied from interface:IXWPFElementReturns the XWPF object of current element. -
getParent
Description copied from interface:IXWPFElementReturns the parent element of current element. -
getTrPr
Returns the table row properties of the table row.Represents the following element tag in the schema:
w:trPr.- Returns:
- the table row properties of the table row.
-
getTrPr
Returns the table row properties of the table row.If the create parameter is true, create a new table row properties if it is not set.
- Parameters:
create- whether to create a new table row properties if it is not set.- Returns:
- the table row properties of the table row.
-
setTrPr
Sets the table row properties of the table row.Represents the following element tag in the schema:
w:trPr.- Parameters:
trPr- the table row properties of the table row.
-
isSetTrPr
public boolean isSetTrPr()Returns whether the table row properties of the table row is set.- Returns:
- whether the table row properties of the table row is set.
-
getTableCells
Returns the table cells.Represents the following element tag in the schema:
w:tc.- Returns:
- the table cells.
-
createTableCell
Create a new TableCell under this TableRow.- Returns:
- the new TableCell.
-
removeTableCell
public void removeTableCell(int pos) Remove a TableCell by given position.- Parameters:
pos- the position of the TableCell.
-
clearTableCells
public void clearTableCells()Clear all TableCells.
-