public abstract class HtmlTagWithContent
extends com.github.dandelion.core.html.AbstractHtmlTag
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
content
Content of the tag.
|
Constructor and Description |
---|
HtmlTagWithContent() |
Modifier and Type | Method and Description |
---|---|
void |
addContent(String contentToAdd) |
void |
addContent(StringBuilder contentToAdd) |
StringBuilder |
getContent() |
void |
setContent(StringBuilder content) |
StringBuilder |
toHtml()
Render the tag in HTML code.
|
addAttributes, addAttributesOnlyName, addCssClass, addCssStyle, addDynamicAttribute, attributesOnlyNameToHtml, attributesToHtml, getCssClass, getCssStyle, getDynamicAttributes, getDynamicAttributeValue, getDynamicHtmlAttributes, getHtmlAttributes, getHtmlClosingTag, getHtmlOpeningTag, getId, getTag, removeDynamicAttribute, setCssClass, setCssStyle, setDynamicAttributes, setId, writeAttribute
protected StringBuilder content
public StringBuilder toHtml()
toHtml
in class com.github.dandelion.core.html.AbstractHtmlTag
public StringBuilder getContent()
public void setContent(StringBuilder content)
public void addContent(StringBuilder contentToAdd)
public void addContent(String contentToAdd)
Copyright © 2013–2015 Dandelion Project. All rights reserved.