Package io.keikai.doc.io.schema.docx
Class DOCXTc
java.lang.Object
io.keikai.doc.io.schema.docx.AbstractVisitable
io.keikai.doc.io.schema.docx.AbstractBody
io.keikai.doc.io.schema.docx.DOCXTc
- All Implemented Interfaces:
ICTElement,IDOCXVisitable<Object>,IXWPFElement
Internal Use Only.
Table Cell Definition.
Represents w:tc in xml.
- Author:
- Jamson Chan
-
Field Summary
Fields inherited from class io.keikai.doc.io.schema.docx.AbstractBody
_bodyElements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(IDOCXVisitor visitor) Accepts a visitor.Create a new Paragraph.Create a new Table.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcgetCT()Returns the CT object of current element.getParagraph(int pos) Get the Paragraph by given position.Returns the parent element of current element.getTable(int pos) Get the Table by given position.getTcPr()Returns the table cell properties of the table cell.getTcPr(boolean create) Returns the table cell properties of the table cell.org.apache.poi.xwpf.usermodel.XWPFTableCellgetXWPF()Returns the XWPF object of current element.booleanReturns whether the table cell properties of the table cell is set.voidSets the table cell properties of the table cell.Methods inherited from class io.keikai.doc.io.schema.docx.AbstractBody
getBodyElementsMethods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Constructor Details
-
DOCXTc
Create a new TableCell by given XWPFTableCell.- Parameters:
xwpfTableCell- the XWPFTableCell object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc 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.XWPFTableCell getXWPF()Description copied from interface:IXWPFElementReturns the XWPF object of current element.- Specified by:
getXWPFin interfaceIXWPFElement- Overrides:
getXWPFin classAbstractBody
-
getParent
Description copied from interface:IXWPFElementReturns the parent element of current element. -
getTcPr
Returns the table cell properties of the table cell.Represents the following element tag in the schema:
w:tcPr.- Returns:
- the table cell properties of the table cell.
-
getTcPr
Returns the table cell properties of the table cell.Represents the following element tag in the schema:
w:tcPr.- Parameters:
create- whether to create it if it does not exist.- Returns:
- the table cell properties of the table cell.
-
setTcPr
Sets the table cell properties of the table cell.Represents the following element tag in the schema:
w:tcPr.- Parameters:
tcPr- the table cell properties of the table cell.
-
isSetTcPr
public boolean isSetTcPr()Returns whether the table cell properties of the table cell is set.- Returns:
- whether the table cell properties of the table cell is set.
-
getParagraph
Get the Paragraph by given position.- Parameters:
pos- the position.- Returns:
- the Paragraph, or null if the position is out of range.
-
createParagraph
Description copied from class:AbstractBodyCreate a new Paragraph.- Specified by:
createParagraphin classAbstractBody- Returns:
- the new Paragraph.
-
getTable
Get the Table by given position.- Parameters:
pos- the position.- Returns:
- the Table, or null if the position is out of range.
-
createTable
Description copied from class:AbstractBodyCreate a new Table.- Specified by:
createTablein classAbstractBody- Returns:
- the new Table.
-