@Nonnull default IMPLTYPE addBodyRow (@Nullable final HCRow aRow) { getBody ().addChild (aRow); return thisAsT (); }
/** * Add a body row at the specified index. * * @param nIndex * The index to be used. Should be ≥ 0. * @param aRow * The row to be added. May be <code>null</code>. * @return this for chaining */ @Nonnull default IMPLTYPE addBodyRowAt (@Nonnegative final int nIndex, @Nullable final HCRow aRow) { getBody ().addChildAt (nIndex, aRow); return thisAsT (); }
@Nonnull default IMPLTYPE addBodyClass (@Nonnull final ICSSClassProvider aCSSClassProvider) { getBody ().addClass (aCSSClassProvider); return thisAsT (); }
/** * Get the contained list object that holds all the rows. Handle with care * because it alters the internal data structures of this table. * * @return The contained list object for external row order handling. */ @Nullable @ReturnsMutableObject ("For performance reasons in derived classes") protected final ICommonsList <HCRow> directGetBodyRowList () { return m_aBody.directGetRowList (); }
@Nonnull default HCRow addBodyRow () { return getBody ().addRow (); }
/** * Add a body row at the specified index. * * @param nIndex * The index to be used. Should be ≥ 0. * @return this for chaining */ @Nonnull default HCRow addBodyRowAt (@Nonnegative final int nIndex) { return getBody ().addRowAt (nIndex); }
@Nonnull @ReturnsMutableCopy default ICommonsList <HCRow> getAllBodyRows () { return getBody ().getAllChildren (); }
@Override @OverridingMethodsMustInvokeSuper public boolean canConvertToMicroNode (@Nonnull final IHCConversionSettingsToNode aConversionSettings) { // Avoid creating a table without header, body and footer return m_aBody.canConvertToMicroNode (aConversionSettings) || m_aHead.canConvertToMicroNode (aConversionSettings) || m_aFoot.canConvertToMicroNode (aConversionSettings); }
aElement.appendChild (getBody ().convertToMicroNode (aConversionSettings));
return new HCTable (); case TBODY: return new HCTBody (); case TD: return new HCTD ();