public class DefaultHTMLBuilder.DefaultHTMLElement extends java.lang.Object implements HTMLBuilder.HTMLComplexElement
Constructor and Description |
---|
DefaultHTMLElement(java.lang.String name,
boolean allowContents,
boolean allowAttributes,
java.lang.Object... contents) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowAttributes() |
boolean |
allowContents() |
HTMLBuilder.HTMLComplexElement |
contents(java.lang.Object... values) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
java.util.List<HTMLBuilder.HTMLElement> |
getContents() |
java.util.Map<java.lang.String,java.lang.String> |
getStyle() |
HTMLBuilder.HTMLComplexElement |
set(java.lang.String name) |
HTMLBuilder.HTMLComplexElement |
set(java.lang.String name,
double value) |
HTMLBuilder.HTMLComplexElement |
set(java.lang.String name,
HTMLBuilder.HTMLColor value) |
HTMLBuilder.HTMLComplexElement |
set(java.lang.String name,
int value) |
HTMLBuilder.HTMLComplexElement |
set(java.lang.String name,
java.lang.String value) |
HTMLBuilder.HTMLComplexElement |
style(java.lang.String name,
double value) |
HTMLBuilder.HTMLComplexElement |
style(java.lang.String name,
HTMLBuilder.HTMLColor value) |
HTMLBuilder.HTMLComplexElement |
style(java.lang.String name,
int value) |
HTMLBuilder.HTMLComplexElement |
style(java.lang.String name,
java.lang.String value) |
java.lang.String |
toHTML() |
java.lang.String |
toString() |
public DefaultHTMLElement(java.lang.String name, boolean allowContents, boolean allowAttributes, java.lang.Object... contents)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributes
in interface HTMLBuilder.HTMLElementWithAttributes
public java.util.Map<java.lang.String,java.lang.String> getStyle()
getStyle
in interface HTMLBuilder.HTMLElementWithAttributes
public java.util.List<HTMLBuilder.HTMLElement> getContents()
getContents
in interface HTMLBuilder.HTMLElementWithContents
public HTMLBuilder.HTMLComplexElement set(java.lang.String name, java.lang.String value)
set
in interface HTMLBuilder.HTMLComplexElement
set
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement set(java.lang.String name)
set
in interface HTMLBuilder.HTMLComplexElement
set
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement set(java.lang.String name, int value)
set
in interface HTMLBuilder.HTMLComplexElement
set
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement set(java.lang.String name, double value)
set
in interface HTMLBuilder.HTMLComplexElement
set
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement set(java.lang.String name, HTMLBuilder.HTMLColor value)
set
in interface HTMLBuilder.HTMLComplexElement
set
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement style(java.lang.String name, java.lang.String value)
style
in interface HTMLBuilder.HTMLComplexElement
style
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement style(java.lang.String name, int value)
style
in interface HTMLBuilder.HTMLComplexElement
style
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement style(java.lang.String name, double value)
style
in interface HTMLBuilder.HTMLComplexElement
style
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement style(java.lang.String name, HTMLBuilder.HTMLColor value)
style
in interface HTMLBuilder.HTMLComplexElement
style
in interface HTMLBuilder.HTMLElementWithAttributes
public HTMLBuilder.HTMLComplexElement contents(java.lang.Object... values)
contents
in interface HTMLBuilder.HTMLComplexElement
contents
in interface HTMLBuilder.HTMLElementWithContents
public boolean allowContents()
allowContents
in interface HTMLBuilder.HTMLElement
public boolean allowAttributes()
allowAttributes
in interface HTMLBuilder.HTMLElement
public java.lang.String toHTML()
toHTML
in interface HTMLBuilder.HTMLElement
public java.lang.String toString()
toString
in class java.lang.Object