Interface CellTableBuilder<T>

    • Method Detail

      • buildRow

        void buildRow​(T rowValue,
                      int absRowIndex)
        Build zero or more table rows for the specified row value.
        Parameters:
        rowValue - the value for the row to render
        absRowIndex - the absolute row index
      • getColumn

        HasCell<T,​?> getColumn​(Cell.Context context,
                                     T rowValue,
                                     Element elem)
        Return the column containing an element.
        Parameters:
        context - the context for the element
        rowValue - the value for the row corresponding to the element
        elem - the elm that the column contains
        Returns:
        the immediate column containing the element
      • getColumns

        java.util.Collection<HasCell<T,​?>> getColumns()
        Return all the columns that this table builder has rendered.
      • getRowValueIndex

        int getRowValueIndex​(TableRowElement row)
        Get the index of the primary row from the associated TableRowElement (an TR element).
        Parameters:
        row - the row element
        Returns:
        the row value index
      • getSubrowValueIndex

        int getSubrowValueIndex​(TableRowElement row)
        Get the index of the subrow value from the associated TableRowElement (an TR element). The sub row value starts at 0 for the first row that represents a row value.
        Parameters:
        row - the row element
        Returns:
        the subrow value index, or 0 if not found
      • start

        void start​(boolean isRebuildingAllRows)
        Start building rows. User may want to reset the internal state of the table builder (e.g., reset the internal table section builder). A flag isRebuildingAllRows is used to mark whether the builder is going to rebuild all rows. User may want to have different reset logic given this flag.
        Parameters:
        isRebuildingAllRows - is this start intended for rebuilding all rows