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<java.lang.Object>,IXWPFElement
public class DOCXTc extends AbstractBody
Internal Use Only.Table Cell Definition.
Represents
w:tcin xml.- Author:
- Jamson Chan
-
-
Field Summary
-
Fields inherited from class io.keikai.doc.io.schema.docx.AbstractBody
_bodyElements
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IDOCXVisitor visitor)Accepts a visitor.DOCXPcreateParagraph()Create a new Paragraph.DOCXTblcreateTable()Create a new Table.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcgetCT()Returns the CT object of current element.DOCXPgetParagraph(int pos)Get the Paragraph by given position.DOCXTrgetParent()Returns the parent element of current element.DOCXTblgetTable(int pos)Get the Table by given position.DOCXTcPrgetTcPr()Returns the table cell properties of the table cell.DOCXTcPrgetTcPr(boolean create)Returns the table cell properties of the table cell.org.apache.poi.xwpf.usermodel.XWPFTableCellgetXWPF()Returns the XWPF object of current element.booleanisSetTcPr()Returns whether the table cell properties of the table cell is set.voidsetTcPr(DOCXTcPr tcPr)Sets the table cell properties of the table cell.-
Methods inherited from class io.keikai.doc.io.schema.docx.AbstractBody
getBodyElements
-
Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
-
-
-
Constructor Detail
-
DOCXTc
public DOCXTc(org.apache.poi.xwpf.usermodel.XWPFTableCell xwpfTableCell, DOCXTr parent)Create a new TableCell by given XWPFTableCell.- Parameters:
xwpfTableCell- the XWPFTableCell object.
-
-
Method Detail
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc getCT()
Description copied from interface:ICTElementReturns the CT object of current element.
-
accept
public java.lang.Object accept(IDOCXVisitor visitor)
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
public DOCXTr getParent()
Description copied from interface:IXWPFElementReturns the parent element of current element.
-
getTcPr
public DOCXTcPr 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
public DOCXTcPr getTcPr(boolean create)
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
public void setTcPr(DOCXTcPr tcPr)
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
public DOCXP getParagraph(int pos)
Get the Paragraph by given position.- Parameters:
pos- the position.- Returns:
- the Paragraph, or null if the position is out of range.
-
createParagraph
public DOCXP createParagraph()
Description copied from class:AbstractBodyCreate a new Paragraph.- Specified by:
createParagraphin classAbstractBody- Returns:
- the new Paragraph.
-
getTable
public DOCXTbl getTable(int pos)
Get the Table by given position.- Parameters:
pos- the position.- Returns:
- the Table, or null if the position is out of range.
-
createTable
public DOCXTbl createTable()
Description copied from class:AbstractBodyCreate a new Table.- Specified by:
createTablein classAbstractBody- Returns:
- the new Table.
-
-