Class NodeDataTable
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeElement
-
- com.orchestranetworks.addon.dmdv.template.bean.NodeDataTable
-
public final class NodeDataTable extends NodeElement
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
Constructors Constructor Description NodeDataTable()Constructs a newNodeDataTablewith empty data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRowData(java.lang.String... cellDatas)Adds row data for each row.java.lang.StringgetBorderColor()Returns border color of the table in hex.java.lang.StringgetColumnSeparatorColor()Returns the column separator color in hex.int[]getColumnsWidth()Returns an array of the columns width.intgetNumberOfColumns()Returns the total number of columns.java.lang.StringgetRowSeparatorColor()Returns the row separator color in hex.java.lang.StringgetTextColor()Returns text color in hex.voidsetBorderColor(java.lang.String borderColor)Sets border color.voidsetColumnSeparatorColor(java.lang.String columnSeparatorColor)Sets the column separator color in hex.voidsetColumnsWidth(int[] columnsWidth)Sets the width for each data table column.voidsetNumberOfColumns(int numberOfColumns)Sets the total number of columns.voidsetRowSeparatorColor(java.lang.String rowSeparatorColor)Sets the row separator color in hex.voidsetTextColor(java.lang.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
-
-
-
-
Method Detail
-
getTextColor
public java.lang.String getTextColor()
Returns text color in hex.
-
setTextColor
public void setTextColor(java.lang.String textColor)
Sets text color.- Parameters:
textColor- a color in hex
-
getBorderColor
public java.lang.String getBorderColor()
Returns border color of the table in hex.
-
setBorderColor
public void setBorderColor(java.lang.String borderColor)
Sets border color.- Parameters:
borderColor- a color in hex
-
getRowSeparatorColor
public java.lang.String getRowSeparatorColor()
Returns the row separator color in hex.
-
setRowSeparatorColor
public void setRowSeparatorColor(java.lang.String rowSeparatorColor)
Sets the row separator color in hex.- Parameters:
rowSeparatorColor- a color in hex
-
getColumnSeparatorColor
public java.lang.String getColumnSeparatorColor()
Returns the column separator color in hex.
-
setColumnSeparatorColor
public void setColumnSeparatorColor(java.lang.String columnSeparatorColor)
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
public void addRowData(java.lang.String... cellDatas)
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.
-
-