Interface DataGrid.StaticCell

All Known Subinterfaces:
DataGrid.FooterCell, DataGrid.HeaderCell
All Known Implementing Classes:
AbstractDataGrid.AbstractStaticCellImpl, AbstractDataGrid.FooterCellImpl, AbstractDataGrid.HeaderCellImpl
Enclosing interface:
DataGrid<E>

public static interface DataGrid.StaticCell
Base interface for DataGrid header or footer cells.
  • Method Details

    • getStyleName

      @Nullable String getStyleName()
      Returns the custom style name for this cell.
      Returns:
      the style name or null if no style name has been set
    • setStyleName

      void setStyleName(@Nullable String styleName)
      Sets a custom style name for this cell.
      Parameters:
      styleName - the style name to set or null to not use any style name
    • getCellType

      Returns the type of content stored in this cell.
      Returns:
      cell content type
    • getComponent

      Component getComponent()
      Returns the component displayed in this cell.
      Returns:
      the component
    • setComponent

      void setComponent(Component component)
      Sets the component displayed in this cell.
      Parameters:
      component - the component to set
    • getHtml

      @Nullable String getHtml()
      Returns the HTML content displayed in this cell.
      Returns:
      the html
    • setHtml

      void setHtml(String html)
      Sets the HTML content displayed in this cell.
      Parameters:
      html - the html to set
    • getText

      @Nullable String getText()
      Returns the text displayed in this cell.
      Returns:
      the plain text caption
    • setText

      void setText(String text)
      Sets the text displayed in this cell.
      Parameters:
      text - a plain text caption
    • getRow

      DataGrid.StaticRow<?> getRow()
      Gets the row where this cell is.
      Returns:
      row for this cell