Class TableBuilder
java.lang.Object
com.aquima.interactions.composer.model.table.TableBuilder
This class may be used to create a container structure that represents a table.
- Since:
- 8.4
- Author:
- Jon van Leuven
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderCell
(IElement cellContent) This method adds an header cell.void
addHeaderCell
(IElement[] cellContent) This method adds an header cell.void
This method adds a presentation style to the current header cell.void
addRow()
This method adds a row.void
addRowCell
(Element cellContent) This method adds a cell to the current row.void
addRowCell
(Element[] cellContent) This method adds a cell to the current row.void
This method adds a presentation style to the current row cell.void
This method adds a presentation style to the current row.void
addRowProperty
(String key, String value) void
setHeaderCellAlignment
(AlignType align) This method sets the alignment for the current header cell.void
setRowCellAlignment
(AlignType align) This method set the alignment for the current row cell.void
setRowCellColspan
(int colspan) This method sets the colspan for the current row cell.void
This method set the id of the current row.This method creates a container structure for the build table.
-
Constructor Details
-
TableBuilder
Construct a table builder.- Parameters:
name
- The name that is used as container name of the root container, may not be null or emptycolumnCount
- The number of columns that the resulting table will have, may not be 0 or negative
-
-
Method Details
-
addRow
public void addRow()This method adds a row. -
setRowId
This method set the id of the current row.- Parameters:
rowId
- The id of the row.
-
addRowPresentationStyle
This method adds a presentation style to the current row. When null is passed, no style will be added.- Parameters:
style
- The style of the row, may be null.
-
addRowProperty
-
addRowCellPresentationStyle
This method adds a presentation style to the current row cell. When null is passed, no style will be added.- Parameters:
style
- The style of the row cell, may be null.
-
addHeaderCellPresentationStyle
This method adds a presentation style to the current header cell. When null is passed, no style will be added.- Parameters:
style
- The style of the header cell, may be null.
-
setRowCellColspan
public void setRowCellColspan(int colspan) This method sets the colspan for the current row cell.- Parameters:
colspan
- The colspan of the cell.
-
setRowCellAlignment
This method set the alignment for the current row cell.- Parameters:
align
- The alignment of the cell, may be null.
-
addRowCell
This method adds a cell to the current row.- Parameters:
cellContent
- The content of the cell, may be null.
-
addRowCell
This method adds a cell to the current row.- Parameters:
cellContent
- The content of the cell, may be null.
-
setHeaderCellAlignment
This method sets the alignment for the current header cell.- Parameters:
align
- The alignment of the cell, may be null.
-
addHeaderCell
This method adds an header cell.- Parameters:
cellContent
- The cell content cell, may be null.
-
addHeaderCell
This method adds an header cell.- Parameters:
cellContent
- The cell content cell, may be null.
-
toContainer
This method creates a container structure for the build table.- Returns:
- The container, never null.
-