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 ActionFailedExceptionfailColumnIndexNotFound(Object columnId) private static TableCellfindCell(JTable table, JTableCellReader cellReader) Finds a cell in the giventhat has a matching row index and column id.JTablerow(int row) Starting point for the creation of a.TableCellByColumnIdtoString()
-
Field Details
-
row
public final int row -
columnId
-
-
Constructor Details
-
TableCellByColumnId
-
-
Method Details
-
row
Starting point for the creation of a.TableCellByColumnIdExample:
// 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 giventhat has a matching row index and column id.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.
-
findCell
-
failColumnIndexNotFound
-
toString
-