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(
TableCell
selectedRow
().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 given
that belongs to the first selected row and has a matching column index.JTable
Starting point for the creation of a
.TableCellInSelectedRow
private static int
selectedRowOf
(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
.TableCellInSelectedRow
Example:
// import static org.fest.swing.data.TableCellInSelectedRow.row; TableCellInSelectedRow cell = selectedRow().column(2);
- Returns:
- the created builder.
-
findCell
Finds a cell in the given
that belongs to the first selected row and has a matching column index.JTable
- Specified by:
findCell
in 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
-