public final class NodeDataTable extends NodeElement
Constructor and Description |
---|
NodeDataTable()
Constructs a new
NodeDataTable with empty data. |
Modifier and Type | Method and Description |
---|---|
void |
addRowData(String... cellDatas)
Adds row data for each row.
|
String |
getBorderColor()
Returns border color of the table in hex.
|
String |
getColumnSeparatorColor()
Returns the column separator color in hex.
|
int[] |
getColumnsWidth()
Returns an array of the columns width.
|
int |
getNumberOfColumns()
Returns the total number of columns.
|
String |
getRowSeparatorColor()
Returns the row separator color in hex.
|
String |
getTextColor()
Returns text color in hex.
|
void |
setBorderColor(String borderColor)
Sets border color.
|
void |
setColumnSeparatorColor(String columnSeparatorColor)
Sets the column separator color in hex.
|
void |
setColumnsWidth(int[] columnsWidth)
Sets the width for each data table column.
|
void |
setNumberOfColumns(int numberOfColumns)
Sets the total number of columns.
|
void |
setRowSeparatorColor(String rowSeparatorColor)
Sets the row separator color in hex.
|
void |
setTextColor(String textColor)
Sets text color.
|
getAlignment, getBackgroundColor, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
public NodeDataTable()
NodeDataTable
with empty data.public String getTextColor()
public void setTextColor(String textColor)
textColor
- a color in hexpublic String getBorderColor()
public void setBorderColor(String borderColor)
borderColor
- a color in hexpublic String getRowSeparatorColor()
public void setRowSeparatorColor(String rowSeparatorColor)
rowSeparatorColor
- a color in hexpublic String getColumnSeparatorColor()
public void setColumnSeparatorColor(String columnSeparatorColor)
columnSeparatorColor
- a color in hexpublic int getNumberOfColumns()
public void setNumberOfColumns(int numberOfColumns)
numberOfColumns
- a non-negative integer for number of columns.public int[] getColumnsWidth()
public void setColumnsWidth(int[] columnsWidth)
columnsWidth
- an array of integer for each column.public void addRowData(String... cellDatas)
cellDatas
- an array of string data for each column.