public class HtmlTable extends HtmlElement
| Constructor and Description |
|---|
HtmlTable()
Constructs this HTML table with nested "thead" and "tbody" elements.
|
HtmlTable(HtmlAttribute... attributes)
Constructs this HTML table from the supplied attributes.
|
| Modifier and Type | Method and Description |
|---|---|
HtmlRow |
addRowToBody(HtmlRow row)
Adds the supplied row as a child element of the "tbody" element.
|
HtmlRow |
addRowToHeader(HtmlRow row)
Adds the supplied row as a child element of the "thead" element.
|
addChild, addContent, findElement, getContent, toFormattedHtml, toHtmlgetName, toStringpublic HtmlTable()
public HtmlTable(HtmlAttribute... attributes)
attributes - The optional attributes of this HTML table.public HtmlRow addRowToHeader(HtmlRow row)
row - The row to add as a child of the "thead" element.NullPointerException - When the supplied row is null.public HtmlRow addRowToBody(HtmlRow row)
row - The row to add as a child of the "tbody" element.NullPointerException - When the supplied row is null.Copyright © 2008–2017. All rights reserved.