Interface JTableCellReader

All Known Implementing Classes:
BasicJTableCellReader

@RunsInCurrentThread public interface JTableCellReader
Understands reading the internal value of a cell in a JTable as expected in a test.

Note: methods in this interface are not executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.

  • Method Summary

    Modifier and Type
    Method
    Description
    backgroundAt(JTable table, int row, int column)
    Returns the background color of the cell renderer for the given table cell.
    fontAt(JTable table, int row, int column)
    Returns the font of the cell renderer for the given table cell.
    foregroundAt(JTable table, int row, int column)
    Returns the foreground color of the cell renderer for the given table cell.
    valueAt(JTable table, int row, int column)
    Returns the internal value of a cell in a JTable as expected in a test.
  • Method Details

    • valueAt

      String valueAt(JTable table, int row, int column)
      Returns the internal value of a cell in a JTable as expected in a test.

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      table - the given JTable.
      row - the row index of the cell.
      column - the column index of the cell.
      Returns:
      the internal value of a cell in a JTable as expected in a test.
    • fontAt

      Font fontAt(JTable table, int row, int column)
      Returns the font of the cell renderer for the given table cell.

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      table - the given JTable.
      row - the row index of the cell.
      column - the column index of the cell.
      Returns:
      the font of the cell renderer for the given table cell.
    • backgroundAt

      Color backgroundAt(JTable table, int row, int column)
      Returns the background color of the cell renderer for the given table cell.

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      table - the given JTable.
      row - the row index of the cell.
      column - the column index of the cell.
      Returns:
      the background color of the cell renderer for the given table cell.
    • foregroundAt

      Color foregroundAt(JTable table, int row, int column)
      Returns the foreground color of the cell renderer for the given table cell.

      Note: Implementations of this method should not use the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      table - the given JTable.
      row - the row index of the cell.
      column - the column index of the cell.
      Returns:
      the foreground color of the cell renderer for the given table cell.