public class TableCellInSelectedRow extends Object implements TableCellFinder
Looks up a cell in the first selected row of a JTable
.
Example:
// import static org.assertj.swing.data.TableCellInSelectedRow.selectedRow;JTableCellFixture
cell = window.table("records").cell(selectedRow
().column(2));
Modifier and Type | Class and Description |
---|---|
static class |
TableCellInSelectedRow.TableCellBuilder
Factory of
TableCellInSelectedRow s. |
Modifier | Constructor and Description |
---|---|
protected |
TableCellInSelectedRow(int column) |
Modifier and Type | Method and Description |
---|---|
TableCell |
findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that belongs to the first selected row and has a matching column index. |
static TableCellInSelectedRow.TableCellBuilder |
selectedRow()
Starting point for the creation of a
TableCellInSelectedRow . |
String |
toString() |
@Nonnull public static TableCellInSelectedRow.TableCellBuilder selectedRow()
Starting point for the creation of a TableCellInSelectedRow
.
Example:
// import static org.assertj.swing.data.TableCellInSelectedRow.row; TableCellInSelectedRow cell = selectedRow().column(2);
@Nonnull public TableCell findCell(@Nonnull JTable table, @Nonnull JTableCellReader cellReader)
JTable
that belongs to the first selected row and has a matching column index.findCell
in interface TableCellFinder
table
- the target JTable
.cellReader
- knows how to read the contents of a cell in a JTable
.ActionFailedException
- if a matching cell could not be found.Copyright © 2014–2019 AssertJ. All rights reserved.