Package org.fest.swing.data
Class TableCellInSelectedRow
java.lang.Object
org.fest.swing.data.TableCellInSelectedRow
- All Implemented Interfaces:
TableCellFinder
Understands lookup of a cell in the first selected row of a
JTable.
Example:
// import static org.fest.swing.data.TableCellInSelectedRow.row;cell = dialog.table("records").cell(TableCellselectedRow().column(2));
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCell(JTable table, JTableCellReader cellReader) Finds a cell in the giventhat belongs to the first selected row and has a matching column index.JTableStarting point for the creation of a.TableCellInSelectedRowprivate static intselectedRowOf(JTable table) toString()
-
Field Details
-
column
private final int column
-
-
Constructor Details
-
TableCellInSelectedRow
protected TableCellInSelectedRow(int column)
-
-
Method Details
-
selectedRow
Starting point for the creation of a.TableCellInSelectedRowExample:
// import static org.fest.swing.data.TableCellInSelectedRow.row; TableCellInSelectedRow cell = selectedRow().column(2);
- Returns:
- the created builder.
-
findCell
Finds a cell in the giventhat belongs to the first selected row and has a matching column index.JTable- Specified by:
findCellin interfaceTableCellFinder- Parameters:
table- the targetJTable.cellReader- knows how to read the contents of a cell in aJTable.- Returns:
- the cell found, if any.
- Throws:
ActionFailedException- if a matching cell could not be found.
-
selectedRowOf
-
toString
-