public class TableCellByColumnId extends Object implements TableCellFinder
JTable by column identifier.
Example:
// import static org.fest.swing.data.TableCellByColumnId.row;cell = dialog.table("records").cell(TableCellrow(3).columnId("firstColumn"));
| Modifier and Type | Class and Description |
|---|---|
static class |
TableCellByColumnId.TableCellBuilder
Understands creation of
s. |
| Modifier | Constructor and Description |
|---|---|
protected |
TableCellByColumnId(int row,
Object columnId) |
| Modifier and Type | Method and Description |
|---|---|
TableCell |
findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
that has a matching row index and column id. |
static TableCellByColumnId.TableCellBuilder |
row(int row)
Starting point for the creation of a
. |
String |
toString() |
public final int row
public final Object columnId
protected TableCellByColumnId(int row,
Object columnId)
public static TableCellByColumnId.TableCellBuilder row(int row)
TableCellByColumnId.
Example:
// import static org.fest.swing.data.TableCellByColumnId.row;
TableCellByColumnId cell = row(5).columnId("hobbyColumn");
row - the row index of the table cell to find.@RunsInEDT public TableCell findCell(JTable table, JTableCellReader cellReader)
JTable that has a matching row index and column id.findCell in interface TableCellFindertable - 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 © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.