Package org.spiderwiz.admin.data
Class TableData.RowData
java.lang.Object
org.spiderwiz.admin.data.TableData.RowData
- Enclosing class:
- TableData
@WizSerializable public static class TableData.RowData extends Object
Holds data to populate one table row.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableData.RowData.CellData
Holds data for each table cell. -
Constructor Summary
Constructors Constructor Description RowData()
Constructs and empty object -
Method Summary
Modifier and Type Method Description TableData.RowData
addCell(String column, double data, int style, String uri)
Add a cell descriptor to the row with the data as adouble
value.TableData.RowData
addCell(String column, int data, int style, String uri)
Add a cell descriptor to the row with the data as an integer value.TableData.RowData
addCell(String column, Object data, int style, String uri)
Add a cell descriptor to the row with the data as a String.List<TableData.RowData.CellData>
getCellData()
Gets the value of the cellData property.
-
Constructor Details
-
RowData
public RowData()Constructs and empty object
-
-
Method Details
-
getCellData
Gets the value of the cellData property.The
cellData
property is a list of inner classes that hold data for each cell in the row.- Returns:
- the value of the cellData property.
-
addCell
Add a cell descriptor to the row with the data as a String.The method arguments are:
column
: Identifies the column in which the data shall be displayed by specifying the column title as defined byPageInfo.TableInfo.ColumnInfo.getTitle()
.data
: Contains the data to display in the referenced cell. This can be any object that can be stringified. If the object is of typeDate
then it will be displayed by the browser using its locale.style
: A bit combination ofPageInfo.TableInfo.Style
values that specify the HTML styles used for displaying the data in the cell. If the argument value is zero then the default column style defined inPageInfo.TableInfo.ColumnInfo.getStyle()
is used.uri
: If notnull
then the cell data is displayed as a link (HTMLa
tag) referencing this value.
- Parameters:
column
- Column title.data
- Cell data.style
- Cell style.uri
- If not null then the data is displayed as a link to this value.- Returns:
- this object.
-
addCell
Add a cell descriptor to the row with the data as an integer value.The method arguments are:
column
: Identifies the column in which the data shall be displayed by specifying the column title as defined byPageInfo.TableInfo.ColumnInfo.getTitle()
.data
: Contains an integer value to display in the referenced cell.style
: A bit combination ofPageInfo.TableInfo.Style
values that specify the HTML styles used for displaying the data in the cell. If the argument value is zero then the default column style defined inPageInfo.TableInfo.ColumnInfo.getStyle()
is used.uri
: If notnull
then the cell data is displayed as a link (HTMLa
tag) referencing this value.
- Parameters:
column
- Column title.data
- Cell data as an integer value.style
- Cell style.uri
- If not null then the data is displayed as a link to this value.- Returns:
- this object.
-
addCell
Add a cell descriptor to the row with the data as adouble
value.The method arguments are:
column
: Identifies the column in which the data shall be displayed by specifying the column title as defined byPageInfo.TableInfo.ColumnInfo.getTitle()
.data
: Contains adouble
value to display in the referenced cell.style
: A bit combination ofPageInfo.TableInfo.Style
values that specify the HTML styles used for displaying the data in the cell. If the argument value is zero then the default column style defined inPageInfo.TableInfo.ColumnInfo.getStyle()
is used.uri
: If notnull
then the cell data is displayed as a link (HTMLa
tag) referencing this value.
- Parameters:
column
- Column title.data
- Cell data as adouble
value.style
- Cell style.uri
- If not null then the data is displayed as a link to this value.- Returns:
- this object.
-