Interface FilterTableCellRenderer.UISettings

All Known Implementing Classes:
FilterTableCellRenderer.DefaultUISettings
Enclosing interface:
FilterTableCellRenderer<T>

public static interface FilterTableCellRenderer.UISettings
Represents the UI cell colors according to the look and feel.
  • Method Details

    • foreground

      Color foreground()
      The table foreground color associated with the Table.foreground UI key
      Returns:
      the foreground color
      See Also:
    • background

      Color background()
      The table background color associated with the Table.background UI key
      Returns:
      the background color
      See Also:
    • alternateRowColor

      Color alternateRowColor()
      The table alternate row color associated with the Table.alternateRowColor UI key
      Returns:
      the alternate row color, if any
      See Also:
    • selectionBackground

      Color selectionBackground()
      The table selection background color associated with the Table.selectionBackground UI key
      Returns:
      the selection background color
      See Also:
    • filteredBackground

      Color filteredBackground()
      Returns:
      the background color to use for columns with a filter enabled
      See Also:
    • alternateBackground

      Color alternateBackground()
      Returns:
      the alternate background color
    • alternateFilteredBackground

      Color alternateFilteredBackground()
      Returns:
      the alternate background color to use for columns with a filter enabled
    • defaultCellBorder

      Border defaultCellBorder()
      Returns:
      the default cell border to use
    • focusedCellBorder

      Border focusedCellBorder()
      Returns:
      the cell border to use for the focused cell
    • background

      Color background(boolean filterEnabled, boolean alternateRow, Color cellBackgroundColor)
      Parameters:
      filterEnabled - true if a filter is enabled
      alternateRow - true if this is an alternate row number
      cellBackgroundColor - the cell specific background color, if any
      Returns:
      the background color
    • filteredBackground

      Color filteredBackground(boolean alternateRow, Color cellBackgroundColor)
      Parameters:
      alternateRow - true if this is an alternate row number
      cellBackgroundColor - the cell specific background color, if any
      Returns:
      the filtered cell background
    • alternateSelectionBackground

      Color alternateSelectionBackground()
      Returns:
      the alternate selection background color
    • update

      void update(int leftPadding, int rightPadding)
      Updates the colors and border according to the current Look and Feel.
      Parameters:
      leftPadding - the left padding to use for the border
      rightPadding - the right padding to use for the border