/** * Indicates if the row belongs to this container. * @param row the row to test * @return {@code true} if it belongs to this container */ protected boolean isContainedRow(final HtmlTableRow row) { return row.getParentNode() == getDomNodeOrDie(); }
/** * Indicates if the row belongs to this container. * @param row the row to test * @return {@code true} if it belongs to this container */ protected boolean isContainedRow(final HtmlTableRow row) { return row.getParentNode() == getDomNodeOrDie(); }
/** * Process {@link HtmlTableRow}. * * @param builder the StringBuilder to add to * @param rows the rows * @param first if true this is the first one * @param skipParent1 skip row if the parent is this * @param skipParent2 skip row if the parent is this * @return true if this was the first one */ protected boolean appendTableRows(final StringBuilder builder, final List<HtmlTableRow> rows, boolean first, final TableRowGroup skipParent1, final TableRowGroup skipParent2) { for (final HtmlTableRow row : rows) { if (row.getParentNode() == skipParent1 || row.getParentNode() == skipParent2) { continue; } if (!first) { builder.append(AS_TEXT_BLOCK_SEPARATOR); } first = false; appendTableRow(builder, row); } return first; }
/** * Process {@link HtmlTableRow}. * * @param builder the StringBuilder to add to * @param rows the rows * @param first if true this is the first one * @param skipParent1 skip row if the parent is this * @param skipParent2 skip row if the parent is this * @return true if this was the first one */ protected boolean appendTableRows(final StringBuilder builder, final List<HtmlTableRow> rows, boolean first, final TableRowGroup skipParent1, final TableRowGroup skipParent2) { for (final HtmlTableRow row : rows) { if (row.getParentNode() == skipParent1 || row.getParentNode() == skipParent2) { continue; } if (!first) { builder.append(AS_TEXT_BLOCK_SEPARATOR); } first = false; appendTableRow(builder, row); } return first; }
/** * Indicates if the row belongs to this container. * @param row the row to test * @return {@code true} if it belongs to this container */ @Override protected boolean isContainedRow(final HtmlTableRow row) { final DomNode parent = row.getParentNode(); // the tbody, thead or tfoo return (parent != null) && parent.getParentNode() == getDomNodeOrDie(); }
/** * Indicates if the row belongs to this container. * @param row the row to test * @return {@code true} if it belongs to this container */ @Override protected boolean isContainedRow(final HtmlTableRow row) { final DomNode parent = row.getParentNode(); // the tbody, thead or tfoo return (parent != null) && parent.getParentNode() == getDomNodeOrDie(); }