/** * Returns a {@link JTableCellFixture} wrapping the table cell specified by the given row and column. * * @param cell the cell of interest. * @return a {@code JTableCellFixture} wrapping the table cell specified by the given row and column. * @throws NullPointerException if the cell is {@code null}. * @throws IndexOutOfBoundsException if any of the indices (row and column) is out of bounds. */ @Nonnull public JTableCellFixture cell(@Nonnull TableCell cell) { driver().checkCellIndicesInBounds(target(), cell); return new JTableCellFixture(this, cell); }
/** * Returns a {@link JTableCellFixture} wrapping the table cell found by the given {@link TableCellFinder}. * * @param cellFinder knows how to find a cell. * @return a {@code JTableCellFixture} wrapping the table cell found by the given {@code TableCellFinder} * @throws NullPointerException if the {@code TableCellFinder} is {@code null}. * @throws org.assertj.swing.exception.ActionFailedException if a matching cell could not be found. * @throws IndexOutOfBoundsException if the row or column indices in the found cell are out of bounds. */ @Nonnull public JTableCellFixture cell(@Nonnull TableCellFinder cellFinder) { TableCell cell = driver().cell(target(), cellFinder); return new JTableCellFixture(this, cell); }
/** * Returns a {@link JTableCellFixture} wrapping the table cell whose value matches the given regular expression * pattern. * * @param valuePattern the regular expression pattern to match. * @return a {@code JTableCellFixture} wrapping the table cell whose value matches the given regular expression * pattern. * @throws NullPointerException if the given regular expression pattern is {@code null}. * @throws org.assertj.swing.exception.ActionFailedException if a cell with a matching value cannot be found. */ @Nonnull public JTableCellFixture cell(@Nonnull Pattern valuePattern) { TableCell cell = driver().cell(target(), valuePattern); return new JTableCellFixture(this, cell); }
/** * Returns a {@link JTableCellFixture} wrapping the table cell whose value matches the given one. * * @param value the value of the cell to look for. It can be a regular expression. * @return a {@code JTableCellFixture} wrapping the table cell whose value matches the given one. * @throws org.assertj.swing.exception.ActionFailedException if a cell with a matching value cannot be found. */ @Nonnull public JTableCellFixture cell(String value) { TableCell cell = driver().cell(target(), value); return new JTableCellFixture(this, cell); }