@Nonnull default IMPLTYPE addHeaderRow (@Nullable final HCRow aRow) { getHead ().addChild (aRow); return thisAsT (); }
/** * Add a header 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 addHeaderRowAt (@Nonnegative final int nIndex, @Nullable final HCRow aRow) { getHead ().addChildAt (nIndex, aRow); return thisAsT (); }
@Nonnull default IMPLTYPE addHeaderClass (@Nonnull final ICSSClassProvider aCSSClassProvider) { getHead ().addClass (aCSSClassProvider); return thisAsT (); }
/** * Add a header row at the specified index. * * @param nIndex * The index to be used. Should be ≥ 0. * @return this for chaining */ @Nonnull default HCRow addHeaderRowAt (@Nonnegative final int nIndex) { return getHead ().addRowAt (nIndex); }
@Nonnull default HCRow addHeaderRow () { return getHead ().addRow (); }
/** * 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> directGetHeaderRowList () { return m_aHead.directGetRowList (); }
@Nonnull @ReturnsMutableCopy default ICommonsList <HCRow> getAllHeaderRows () { return getHead ().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 (getHead ().convertToMicroNode (aConversionSettings));
return new HCTH (); case THEAD: return new HCTHead (); case TIME: return new HCTime ();