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

java.lang.Object
  extended by com.github.dandelion.datatables.core.html.HtmlTag
      extended by com.github.dandelion.datatables.core.html.HtmlTagWithContent
Direct Known Subclasses:
HtmlCaption, HtmlColumn, HtmlDiv, HtmlHyperlink

public abstract class HtmlTagWithContent
extends HtmlTag

Abstract superclass for all HTML tags with embedded content.

Author:
Gautier Dhordain

Field Summary
protected  StringBuilder content
          Content of the tag.
 
Fields inherited from class com.github.dandelion.datatables.core.html.HtmlTag
CLASS_SEPARATOR, cssClass, cssStyle, dynamicAttributes, id, STYLE_SEPARATOR, tag
 
Constructor Summary
HtmlTagWithContent()
           
 
Method Summary
 void addContent(String contentToAdd)
           
 void addContent(StringBuilder contentToAdd)
           
 StringBuilder getContent()
           
 void setContent(StringBuilder content)
           
 StringBuilder toHtml()
          Render the tag in HTML code.
 
Methods inherited from class com.github.dandelion.datatables.core.html.HtmlTag
addCssClass, addCssStyle, addDynamicAttribute, getCssClass, getCssStyle, getDynamicAttributes, getDynamicAttributeValue, getDynamicHtmlAttributes, getHtmlAttributes, 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
 

Field Detail

content

protected StringBuilder content
Content of the tag.

Constructor Detail

HtmlTagWithContent

public HtmlTagWithContent()
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.

getContent

public StringBuilder getContent()

setContent

public void setContent(StringBuilder content)

addContent

public void addContent(StringBuilder contentToAdd)

addContent

public void addContent(String contentToAdd)


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