org.fest.swing.cell
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 guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.

Author:
Alex Ruiz

Method Summary
 Color backgroundAt(JTable table, int row, int column)
          Returns the background color of the cell renderer for the given table cell.
 Font fontAt(JTable table, int row, int column)
          Returns the font of the cell renderer for the given table cell.
 Color foregroundAt(JTable table, int row, int column)
          Returns the foreground color of the cell renderer for the given table cell.
 String valueAt(JTable table, int row, int column)
          Returns the internal value of a cell in a JTable as expected in a test.
 

Method Detail

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 may not guaranteed to be executed in 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 may not guaranteed to be executed in 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 may not guaranteed to be executed in 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 may not guaranteed to be executed in 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.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.