@RunsInCurrentThread public interface JTableCellReader
Reads the content of a cell in JTable
, as it appears to the user.
Note: Methods in this class are accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call methods in this class from the EDT.
Modifier and Type | Method and Description |
---|---|
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. |
@Nullable String valueAt(@Nonnull JTable table, int row, int column)
Returns the internal value of a cell in a JTable
as expected in a test.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the given JTable
.row
- the row index of the cell.column
- the column index of the cell.JTable
as expected in a test.@Nullable Font fontAt(@Nonnull JTable table, int row, int column)
Returns the font of the cell renderer for the given table cell.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the given JTable
.row
- the row index of the cell.column
- the column index of the cell.@Nullable Color backgroundAt(@Nonnull JTable table, int row, int column)
Returns the background color of the cell renderer for the given table cell.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the given JTable
.row
- the row index of the cell.column
- the column index of the cell.@Nullable Color foregroundAt(@Nonnull JTable table, int row, int column)
Returns the foreground color of the cell renderer for the given table cell.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the given JTable
.row
- the row index of the cell.column
- the column index of the cell.Copyright © 2014–2019 AssertJ. All rights reserved.