Interface FilteredTableCellRenderer.CellColorProvider<C>

Type Parameters:
C - the column identifier type
Enclosing interface:
FilteredTableCellRenderer

public static interface FilteredTableCellRenderer.CellColorProvider<C>
Provides cell specific color.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Color
    backgroundColor(int row, C columnIdentifier, Object cellValue, boolean selected)
     
    default Color
    foregroundColor(int row, C columnIdentifier, Object cellValue, boolean selected)
     
  • Method Details

    • backgroundColor

      default Color backgroundColor(int row, C columnIdentifier, Object cellValue, boolean selected)
      Parameters:
      row - the row number
      columnIdentifier - the column identifier
      cellValue - the cell value
      selected - true if the cell is selected
      Returns:
      a background Color for the given cell, null for none
    • foregroundColor

      default Color foregroundColor(int row, C columnIdentifier, Object cellValue, boolean selected)
      Parameters:
      row - the row number
      columnIdentifier - the column identifier
      cellValue - the cell value
      selected - true if the cell is selected
      Returns:
      a foreground Color for the given cell, null for none