@Test public void should_generate_table_with_id() { table = new HtmlTable("tableId", request, response); assertThat(table.toHtml().toString()).isEqualTo("<table id=\"tableId\"><thead></thead></table>"); }
@Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlHeader()); html.append(getHtmlBody()); html.append(getHtmlFooter()); html.append(getHtmlClosingTag()); return html; }
HtmlTable extends AbstractHtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlHeader()); html.append(getHtmlBody()); html.append(getHtmlFooter()); html.append(getHtmlClosingTag()); return html; } }
HtmlTable extends AbstractHtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlHeader()); html.append(getHtmlBody()); html.append(getHtmlFooter()); html.append(getHtmlClosingTag()); return html; } HtmlTable(String id, HttpServletRequest request, HttpServletResponse response);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName,
         Map<String, String> dynamicAttributes); }
HtmlTable extends AbstractHtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlHeader()); html.append(getHtmlBody()); html.append(getHtmlFooter()); html.append(getHtmlClosingTag()); return html; } HtmlTable(String id, HttpServletRequest request, HttpServletResponse response);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName,
         Map<String, String> dynamicAttributes); @Override StringBuilder toHtml(); HtmlCaption getCaption(); void setCaption(HtmlCaption caption); List<HtmlRow> getHeadRows(); List<HtmlRow> getBodyRows(); HtmlRow addHeaderRow(); HtmlRow addRow(); HtmlRow addFooterRow(); HtmlRow addRow(String rowId); HtmlTable addRows(HtmlRow... rows); HtmlRow getLastFooterRow(); HtmlRow getFirstHeaderRow(); HtmlRow getLastHeaderRow(); HtmlRow getLastBodyRow(); void addCssStyle(String cssStyle); void addCssClass(String cssClass); TableConfiguration getTableConfiguration(); void setTableConfiguration(TableConfiguration tableConfiguration); String getOriginalId(); void setOriginalId(String originalId); }
HtmlTable extends AbstractHtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlHeader()); html.append(getHtmlBody()); html.append(getHtmlFooter()); html.append(getHtmlClosingTag()); return html; } HtmlTable(String id, HttpServletRequest request, HttpServletResponse response);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName);  HtmlTable(String id, HttpServletRequest request, HttpServletResponse response, String groupName,
         Map<String, String> dynamicAttributes); @Override StringBuilder toHtml(); HtmlCaption getCaption(); void setCaption(HtmlCaption caption); List<HtmlRow> getHeadRows(); List<HtmlRow> getBodyRows(); HtmlRow addHeaderRow(); HtmlRow addRow(); HtmlRow addFooterRow(); HtmlRow addRow(String rowId); HtmlTable addRows(HtmlRow... rows); HtmlRow getLastFooterRow(); HtmlRow getFirstHeaderRow(); HtmlRow getLastHeaderRow(); HtmlRow getLastBodyRow(); void addCssStyle(String cssStyle); void addCssClass(String cssClass); TableConfiguration getTableConfiguration(); void setTableConfiguration(TableConfiguration tableConfiguration); String getOriginalId(); void setOriginalId(String originalId);  }