Class TableCellInRowByValue

java.lang.Object
org.fest.swing.data.TableCellInRowByValue
All Implemented Interfaces:
TableCellFinder

public class TableCellInRowByValue extends Object implements TableCellFinder
Understands lookup of a cell in the first row in JTable whose values match the given ones.

Example:

 // import static org.fest.swing.data.TableCellInSelectedRow.row;
 TableCell cell = dialog.table("records").cell(rowWithValue("column1", "column2", "column3").column(2));
 

Since:
1.2
  • Field Details

    • values

      private final String[] values
    • column

      private final int column
  • Constructor Details

    • TableCellInRowByValue

      protected TableCellInRowByValue(String[] values, int column)
      Creates a new TableCellInRowByValue.
      Parameters:
      values - the values in the cells of the row we are looking for.
      column - the index of the column in the table cell to find.
  • Method Details