E - Generic parameter to be set by child classes to the child class itselfpublic class HtmlElement<E extends HtmlElement<?>> extends HtmlComponent
| Modifier and Type | Field and Description |
|---|---|
protected org.databene.commons.collection.OrderedNameMap<String> |
attributes |
protected boolean |
inline |
| Constructor and Description |
|---|
HtmlElement(String tagName,
boolean inline) |
| Modifier and Type | Method and Description |
|---|---|
E |
addBreak() |
E |
addComponent(HtmlComponent componentToAdd) |
E |
addComponent(String textToAdd) |
void |
addComponents(HtmlComponent... components) |
protected String |
formatComponents() |
protected String |
formatEndTag() |
protected String |
formatStartTag() |
String |
getTagName() |
boolean |
isInline() |
void |
setComponents(HtmlComponent... newComponents) |
String |
toString() |
E |
withAlign(String align) |
protected E |
withAttribute(String attributeName,
String attributeValue) |
E |
withClass(String klass) |
E |
withComponents(HtmlComponent... newComponents) |
E |
withRawTextContent(String text) |
E |
withStyle(String style) |
E |
withTextContent(String text,
boolean escape,
boolean convertLinefeeds) |
E |
withTitle(String title) |
E |
withValign(String valign) |
protected boolean inline
protected org.databene.commons.collection.OrderedNameMap<String> attributes
public HtmlElement(String tagName, boolean inline)
public E addBreak()
public E withComponents(HtmlComponent... newComponents)
public void setComponents(HtmlComponent... newComponents)
public void addComponents(HtmlComponent... components)
public E addComponent(HtmlComponent componentToAdd)
public String getTagName()
public boolean isInline()
protected String formatStartTag()
protected String formatComponents()
protected String formatEndTag()
public String toString()
toString in class HtmlComponentCopyright © 2006–2016 Volker Bergmann. All rights reserved.