Package org.fest.swing.cell
Interface JTableCellReader
- All Known Implementing Classes:
BasicJTableCellReader
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 TypeMethodDescriptionbackgroundAt
(JTable table, int row, int column) Returns the background color of the cell renderer for the given table cell.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.Returns the internal value of a cell in a
as expected in a test.JTable
-
Method Details
-
valueAt
Returns the internal value of a cell in a
as expected in a test.JTable
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 givenJTable
.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
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 givenJTable
.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
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 givenJTable
.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
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 givenJTable
.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.
-