Class AbstractDataGrid.AbstractStaticRowImp<T extends DataGrid.StaticCell>

java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticRowImp<T>
All Implemented Interfaces:
DataGrid.StaticRow<T>
Direct Known Subclasses:
AbstractDataGrid.FooterRowImpl, AbstractDataGrid.HeaderRowImpl
Enclosing class:
AbstractDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>,E>

protected abstract static class AbstractDataGrid.AbstractStaticRowImp<T extends DataGrid.StaticCell> extends Object implements DataGrid.StaticRow<T>
  • Field Details

    • dataGrid

      protected AbstractDataGrid dataGrid
    • gridRow

      protected com.vaadin.ui.components.grid.StaticSection.StaticRow<?> gridRow
  • Constructor Details

    • AbstractStaticRowImp

      public AbstractStaticRowImp(AbstractDataGrid dataGrid, com.vaadin.ui.components.grid.StaticSection.StaticRow<?> gridRow)
  • Method Details

    • getStyleName

      @Nullable public String getStyleName()
      Description copied from interface: DataGrid.StaticRow
      Returns the custom style name for this row.
      Specified by:
      getStyleName in interface DataGrid.StaticRow<T extends DataGrid.StaticCell>
      Returns:
      the style name or null if no style name has been set
    • setStyleName

      public void setStyleName(@Nullable String styleName)
      Description copied from interface: DataGrid.StaticRow
      Sets a custom style name for this row.
      Specified by:
      setStyleName in interface DataGrid.StaticRow<T extends DataGrid.StaticCell>
      Parameters:
      styleName - the style name to set or null to not use any style name
    • join

      public T join(String... columnIds)
      Description copied from interface: DataGrid.StaticRow
      Merges columns cells in a row.
      Specified by:
      join in interface DataGrid.StaticRow<T extends DataGrid.StaticCell>
      Parameters:
      columnIds - the ids of columns to merge
      Returns:
      the remaining visible cell after the merge
    • joinInternal

      protected abstract T joinInternal(String... columnIds)
    • getCell

      @Nullable public T getCell(String columnId)
      Description copied from interface: DataGrid.StaticRow
      Returns the cell for the given column id on this row. If the column is merged returned cell is the cell for the whole group.
      Specified by:
      getCell in interface DataGrid.StaticRow<T extends DataGrid.StaticCell>
      Parameters:
      columnId - column id
      Returns:
      the cell for the given column id, merged cell for merged properties, null if not found
    • getCellInternal

      protected abstract T getCellInternal(String columnId)
    • getGridRow

      public com.vaadin.ui.components.grid.StaticSection.StaticRow<?> getGridRow()