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.
  • Constructor Details

    • RowData

      public RowData()
      Constructs and empty object
  • Method Details

    • getCellData

      public List<TableData.RowData.CellData> 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

      public TableData.RowData addCell​(String column, Object data, int style, String uri)
      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 by PageInfo.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 type Date then it will be displayed by the browser using its locale.
      • style: A bit combination of PageInfo.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 in PageInfo.TableInfo.ColumnInfo.getStyle() is used.
      • uri: If not null then the cell data is displayed as a link (HTML a 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

      public 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.

      The method arguments are:

      • column: Identifies the column in which the data shall be displayed by specifying the column title as defined by PageInfo.TableInfo.ColumnInfo.getTitle().
      • data: Contains an integer value to display in the referenced cell.
      • style: A bit combination of PageInfo.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 in PageInfo.TableInfo.ColumnInfo.getStyle() is used.
      • uri: If not null then the cell data is displayed as a link (HTML a 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

      public TableData.RowData addCell​(String column, double data, int style, String uri)
      Add a cell descriptor to the row with the data as a double value.

      The method arguments are:

      • column: Identifies the column in which the data shall be displayed by specifying the column title as defined by PageInfo.TableInfo.ColumnInfo.getTitle().
      • data: Contains a double value to display in the referenced cell.
      • style: A bit combination of PageInfo.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 in PageInfo.TableInfo.ColumnInfo.getStyle() is used.
      • uri: If not null then the cell data is displayed as a link (HTML a tag) referencing this value.
      Parameters:
      column - Column title.
      data - Cell data as a double value.
      style - Cell style.
      uri - If not null then the data is displayed as a link to this value.
      Returns:
      this object.