public class TableWrapper extends Object implements IWrapElement
table element.| Constructor and Description |
|---|
TableWrapper()
Create new
TableWrapper instance. |
TableWrapper(boolean isRtl)
Create new
TableWrapper instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
getRowsSize()
Gets the number of rows.
|
void |
newFooterRow()
Adds a new footer row.
|
void |
newHeaderRow()
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)
Set footer language attribute of the table.
|
void |
setHeaderLang(String headerLang)
Set header language attribute of the table.
|
void |
setLang(String lang)
Set language attribute of the table.
|
com.itextpdf.layout.element.Table |
toTable(WaitingColgroupsHelper colgroupsHelper)
Renders all the rows to a
Table object. |
public TableWrapper()
TableWrapper instance.public TableWrapper(boolean isRtl)
TableWrapper instance.isRtl - table direction value, true for right to left direction, false for left to rightpublic int getRowsSize()
public void newRow()
public void newHeaderRow()
public void newFooterRow()
public void addHeaderCell(com.itextpdf.layout.element.Cell cell)
cell - the cellpublic void addFooterCell(com.itextpdf.layout.element.Cell cell)
cell - the cellpublic void addCell(com.itextpdf.layout.element.Cell cell)
cell - the cellpublic void setLang(String lang)
lang - language code string value (e.g en-us)public void setFooterLang(String footerLang)
footerLang - language code string value (e.g en-us)public void setHeaderLang(String headerLang)
headerLang - language code string value (e.g en-us)public void setCaption(com.itextpdf.layout.element.Div caption)
caption - the caption to be setpublic com.itextpdf.layout.element.Table toTable(WaitingColgroupsHelper colgroupsHelper)
Table object.colgroupsHelper - the colgroups helper classCopyright © 1998–2026 Apryse Group NV. All rights reserved.