Class TableWrapper
java.lang.Object
com.itextpdf.html2pdf.attach.wrapelement.TableWrapper
- All Implemented Interfaces:
-
IWrapElement
Wrapper for the
table
element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCell
(com.itextpdf.layout.element.Cell cell) Adds a new cell to the body rows.void
addFooterCell
(com.itextpdf.layout.element.Cell cell) Adds a new cell to the footer rows.void
addHeaderCell
(com.itextpdf.layout.element.Cell cell) Adds a new cell to the header rows.int
Gets the number of rows.void
Adds a new footer row.void
Adds a new header row.void
newRow()
Adds a new body row.void
setCaption
(com.itextpdf.layout.element.Div caption) Sets the table's caption.void
setFooterLang
(String footerLang) void
setHeaderLang
(String headerLang) void
com.itextpdf.layout.element.Table
toTable
(WaitingColgroupsHelper colgroupsHelper) Renders all the rows to aTable
object.
-
Constructor Details
-
TableWrapper
public TableWrapper() -
TableWrapper
public TableWrapper(boolean isRtl)
-
-
Method Details
-
getRowsSize
public int getRowsSize()Gets the number of rows.- Returns:
- the number of rows
-
newRow
public void newRow()Adds a new body row. -
newHeaderRow
public void newHeaderRow()Adds a new header row. -
addHeaderCell
public void addHeaderCell(com.itextpdf.layout.element.Cell cell) Adds a new cell to the header rows.- Parameters:
-
cell
- the cell
-
addCell
public void addCell(com.itextpdf.layout.element.Cell cell) Adds a new cell to the body rows.- Parameters:
-
cell
- the cell
-
setLang
-
setHeaderLang
-
setCaption
public void setCaption(com.itextpdf.layout.element.Div caption) Sets the table's caption.- Parameters:
-
caption
- the caption to be set
-
toTable
Renders all the rows to aTable
object.- Parameters:
-
colgroupsHelper
- the colgroups helper class - Returns:
- the table
-