public class HtmlTable
extends com.github.dandelion.core.html.AbstractHtmlTag
Plain old HTML table
tag.
All rows are backed by different LinkedList
, one for each part of the
table.
An instance of TableConfiguration
is also attached.
Constructor and Description |
---|
HtmlTable(String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
HtmlTable(String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String groupName) |
HtmlTable(String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String groupName,
Map<String,String> dynamicAttributes) |
Modifier and Type | Method and Description |
---|---|
void |
addCssClass(String cssClass) |
void |
addCssStyle(String cssStyle) |
HtmlRow |
addFooterRow() |
HtmlRow |
addHeaderRow() |
HtmlRow |
addRow() |
HtmlRow |
addRow(String rowId) |
HtmlTable |
addRows(HtmlRow... rows) |
List<HtmlRow> |
getBodyRows() |
HtmlCaption |
getCaption() |
HtmlRow |
getFirstHeaderRow() |
List<HtmlRow> |
getHeadRows() |
protected StringBuilder |
getHtmlAttributes() |
HtmlRow |
getLastBodyRow() |
HtmlRow |
getLastFooterRow() |
HtmlRow |
getLastHeaderRow() |
String |
getOriginalId() |
TableConfiguration |
getTableConfiguration() |
void |
setCaption(HtmlCaption caption) |
void |
setOriginalId(String originalId) |
void |
setTableConfiguration(TableConfiguration tableConfiguration) |
StringBuilder |
toHtml() |
addAttributes, addAttributesOnlyName, addDynamicAttribute, attributesOnlyNameToHtml, attributesToHtml, getCssClass, getCssStyle, getDynamicAttributes, getDynamicAttributeValue, getDynamicHtmlAttributes, getHtmlClosingTag, getHtmlOpeningTag, getId, getTag, removeDynamicAttribute, setCssClass, setCssStyle, setDynamicAttributes, setId, writeAttribute
public HtmlTable(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public HtmlTable(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String groupName)
public StringBuilder toHtml()
toHtml
in class com.github.dandelion.core.html.AbstractHtmlTag
protected StringBuilder getHtmlAttributes()
getHtmlAttributes
in class com.github.dandelion.core.html.AbstractHtmlTag
public HtmlCaption getCaption()
public void setCaption(HtmlCaption caption)
public HtmlRow addHeaderRow()
public HtmlRow addRow()
public HtmlRow addFooterRow()
public HtmlRow getLastFooterRow()
public HtmlRow getFirstHeaderRow()
public HtmlRow getLastHeaderRow()
public HtmlRow getLastBodyRow()
public void addCssStyle(String cssStyle)
addCssStyle
in class com.github.dandelion.core.html.AbstractHtmlTag
public void addCssClass(String cssClass)
addCssClass
in class com.github.dandelion.core.html.AbstractHtmlTag
public TableConfiguration getTableConfiguration()
public void setTableConfiguration(TableConfiguration tableConfiguration)
public String getOriginalId()
public void setOriginalId(String originalId)
Copyright © 2013–2015 Dandelion Project. All rights reserved.