Package org.fest.swing.data
Class TableCellByColumnId
java.lang.Object
org.fest.swing.data.TableCellByColumnId
- All Implemented Interfaces:
TableCellFinder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ActionFailedException
failColumnIndexNotFound
(Object columnId) private static TableCell
findCell
(JTable table, JTableCellReader cellReader) Finds a cell in the given
that has a matching row index and column id.JTable
row
(int row) Starting point for the creation of a
.TableCellByColumnId
toString()
-
Field Details
-
row
public final int row -
columnId
-
-
Constructor Details
-
TableCellByColumnId
-
-
Method Details
-
row
Starting point for the creation of a
.TableCellByColumnId
Example:
// import static org.fest.swing.data.TableCellByColumnId.row; TableCellByColumnId cell = row(5).columnId("hobbyColumn");
- Parameters:
row
- the row index of the table cell to find.- Returns:
- the created builder.
-
findCell
Finds a cell in the given
that has a matching row index and column id.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.
-
findCell
-
failColumnIndexNotFound
-
toString
-