Class FGrid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.featurepack.ui.FGrid.StaticSection.StaticCell>

java.lang.Object
com.vaadin.featurepack.ui.FGrid.StaticSection.StaticRow<CELLTYPE>
Type Parameters:
CELLTYPE - the type of the cells in the row
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FGrid.FooterRow, FGrid.HeaderRow
Enclosing class:
FGrid.StaticSection<ROWTYPE extends FGrid.StaticSection.StaticRow<?>>

public abstract static class FGrid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.featurepack.ui.FGrid.StaticSection.StaticCell> extends Object implements Serializable
Abstract base class for Grid header and footer rows.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • addCell

      protected void addCell(Object propertyId)
    • removeCell

      protected void removeCell(Object propertyId)
    • createCell

      protected abstract CELLTYPE createCell()
      Creates and returns a new instance of the cell type.
      Returns:
      the created cell
    • getCell

      public CELLTYPE getCell(Object propertyId)
      Returns the cell for the given property id on this row. If the column is merged returned cell is the cell for the whole group.
      Parameters:
      propertyId - the property id of the column
      Returns:
      the cell for the given property, merged cell for merged properties, null if not found
    • join

      public CELLTYPE join(Object... propertyIds)
      Merges columns cells in a row.
      Parameters:
      propertyIds - The property ids of columns to merge
      Returns:
      The remaining visible cell after the merge
    • join

      public CELLTYPE join(CELLTYPE... cells)
      Merges columns cells in a row.
      Parameters:
      cells - The cells to merge. Must be from the same row.
      Returns:
      The remaining visible cell after the merge
    • join

      protected CELLTYPE join(Set<CELLTYPE> cells)
    • getCellTagName

      protected abstract String getCellTagName()
    • getStyleName

      public String getStyleName()
    • setStyleName

      public void setStyleName(String styleName)