com.github.dandelion.datatables.core.html
Class HtmlTable

java.lang.Object
  extended by com.github.dandelion.datatables.core.html.HtmlTag
      extended by com.github.dandelion.datatables.core.html.HtmlTable

public class HtmlTable
extends HtmlTag

Plain old HTML table tag.

Since:
0.1.0
Author:
Thibault Duchateau

Field Summary
 
Fields inherited from class com.github.dandelion.datatables.core.html.HtmlTag
CLASS_SEPARATOR, cssClass, cssStyle, dynamicAttributes, id, STYLE_SEPARATOR, tag
 
Constructor Summary
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)
           
 
Method Summary
 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()
          Render the tag in HTML code.
 
Methods inherited from class com.github.dandelion.datatables.core.html.HtmlTag
addDynamicAttribute, getCssClass, getCssStyle, getDynamicAttributes, getDynamicAttributeValue, getDynamicHtmlAttributes, getHtmlClosingTag, getHtmlOpeningTag, getId, getTag, removeDynamicAttribute, setCssClass, setCssStyle, setDynamicAttributes, setId, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTable

public HtmlTable(String id,
                 javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response)

HtmlTable

public HtmlTable(String id,
                 javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 String groupName)

HtmlTable

public HtmlTable(String id,
                 javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 String groupName,
                 Map<String,String> dynamicAttributes)
Method Detail

toHtml

public StringBuilder toHtml()
Render the tag in HTML code.

Overrides:
toHtml in class HtmlTag
Returns:
the HTML code corresponding to the tag.

getHtmlAttributes

protected StringBuilder getHtmlAttributes()
Overrides:
getHtmlAttributes in class HtmlTag

getCaption

public HtmlCaption getCaption()

setCaption

public void setCaption(HtmlCaption caption)

getHeadRows

public List<HtmlRow> getHeadRows()

getBodyRows

public List<HtmlRow> getBodyRows()

addHeaderRow

public HtmlRow addHeaderRow()

addRow

public HtmlRow addRow()

addFooterRow

public HtmlRow addFooterRow()

addRow

public HtmlRow addRow(String rowId)

addRows

public HtmlTable addRows(HtmlRow... rows)

getLastFooterRow

public HtmlRow getLastFooterRow()

getFirstHeaderRow

public HtmlRow getFirstHeaderRow()

getLastHeaderRow

public HtmlRow getLastHeaderRow()

getLastBodyRow

public HtmlRow getLastBodyRow()

addCssStyle

public void addCssStyle(String cssStyle)
Overrides:
addCssStyle in class HtmlTag

addCssClass

public void addCssClass(String cssClass)
Overrides:
addCssClass in class HtmlTag

getTableConfiguration

public TableConfiguration getTableConfiguration()

setTableConfiguration

public void setTableConfiguration(TableConfiguration tableConfiguration)

getOriginalId

public String getOriginalId()

setOriginalId

public void setOriginalId(String originalId)


Copyright © 2013–2014 Dandelion Project. All rights reserved.