/** * @return <code>true</code> if at least one contained cell uses a rowspan. */ public boolean isRowspanUsed () { if (hasChildren ()) for (final IHCCell <?> aCell : directGetAllChildren ()) if (aCell.getRowspan () > 1) return true; return false; }
/** * @return <code>true</code> if at least one contained cell uses a colspan. */ public boolean isColspanUsed () { if (hasChildren ()) for (final IHCCell <?> aCell : directGetAllChildren ()) if (aCell.getColspan () > 1) return true; return false; }
@Nonnull default IMPLTYPE removeAllFooterRows () { getFoot ().removeAllChildren (); return thisAsT (); }
@Nonnull default IMPLTYPE sortAllHeaderRows (@Nonnull final Comparator <? super HCRow> aComparator) { getHead ().sortAllChildren (aComparator); return thisAsT (); }
default boolean hasHeaderRows () { return getHead ().hasChildren (); }
default boolean hasBodyClasses () { return getBody ().hasAnyClass (); }
default boolean hasFooterRows () { return getFoot ().hasChildren (); }
default boolean hasBodyRows () { return getBody ().hasChildren (); }
default boolean hasHeaderClasses () { return getHead ().hasAnyClass (); }
default boolean hasFooterClasses () { return getFoot ().hasAnyClass (); }
@Nonnull default String getAllHeaderClassesAsString () { return getHead ().getAllClassesAsString (); }
@Nonnull default String getAllFooterClassesAsString () { return getFoot ().getAllClassesAsString (); }
@Nonnegative default int getFooterRowCount () { return getFoot ().getChildCount (); }
@Nullable default HCRow getFirstHeaderRow () { return getHead ().getFirstChild (); }
/** * @return <code>true</code> if not a single column is present */ public boolean hasNoColumns () { return hasNoChildren (); }