* Render the header or footer.
*
* @param isFooter true if this is the footer table, false if the header table
*/
private void createHeaders(boolean isFooter) {
TableSectionBuilder section =
isFooter ? footerBuilder.buildFooter() : headerBuilder.buildHeader();
if (section != null) {
TABLE_IMPL.replaceAllRows(this, isFooter ? getTableFootElement() : getTableHeadElement(),
tableSectionToSafeHtml(section, isFooter ? "tfoot" : "thead"));
doSetHeaderVisible(isFooter, true);