Class NodeDataTable
java.lang.Object
com.orchestranetworks.addon.dmdv.template.bean.NodeElement
com.orchestranetworks.addon.dmdv.template.bean.NodeDataTable
Defines a data table that displays data in a tabular form. You must set the number of columns before adding row data.
- Since:
- 1.2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRowData
(String... cellDatas) Adds row data for each row.Returns border color of the table in hex.Returns the column separator color in hex.int[]
Returns an array of the columns width.int
Returns the total number of columns.Returns the row separator color in hex.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.Methods inherited from class com.orchestranetworks.addon.dmdv.template.bean.NodeElement
getAlignment, getBackgroundColor, getBindingValuesPublic, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
-
Constructor Details
-
NodeDataTable
public NodeDataTable()Constructs a newNodeDataTable
with empty data.
-
-
Method Details
-
getTextColor
Returns text color in hex. -
setTextColor
Sets text color.- Parameters:
textColor
- a color in hex
-
getBorderColor
Returns border color of the table in hex. -
setBorderColor
Sets border color.- Parameters:
borderColor
- a color in hex
-
getRowSeparatorColor
Returns the row separator color in hex. -
setRowSeparatorColor
Sets the row separator color in hex.- Parameters:
rowSeparatorColor
- a color in hex
-
getColumnSeparatorColor
Returns the column separator color in hex. -
setColumnSeparatorColor
Sets the column separator color in hex.- Parameters:
columnSeparatorColor
- a color in hex
-
getNumberOfColumns
public int getNumberOfColumns()Returns the total number of columns. -
setNumberOfColumns
public void setNumberOfColumns(int numberOfColumns) Sets the total number of columns.- Parameters:
numberOfColumns
- a non-negative integer for number of columns.
-
getColumnsWidth
public int[] getColumnsWidth()Returns an array of the columns width. -
setColumnsWidth
public void setColumnsWidth(int[] columnsWidth) Sets the width for each data table column. The array size must equal the total number of columns.- Parameters:
columnsWidth
- an array of integer for each column.
-
addRowData
Adds row data for each row. Data can include strings, a field path, or a combination of both. When entering a field path, you must follow this pattern: ${fieldPath} Do not include table path. Example: - Fixed string: "Name". - Field path: "${/group1/label}". - Combination of string and field path: "Name: ${/group1/label}"- Parameters:
cellDatas
- an array of string data for each column.
-