| Constructor and Description |
|---|
Node(String name) |
Node(String name,
boolean selfClosing) |
| Modifier and Type | Method and Description |
|---|---|
Element |
add(Content... elements)
Add content to this element.
|
Element |
add(Content element)
Add content to this element.
|
<E> Element |
add(Foreach<E> factory)
Add content to this element.
|
<E extends Content> |
add(List<E> content) |
Element |
add(String text)
Add text content to this element.
|
Element |
addCss(String clazz) |
Element |
addStyle(String name,
String style) |
Markup |
after(Content element) |
Element |
attr(String name,
String value)
Set the value of an attribute of this element.
|
Element |
border(String style) |
Element |
css(List<String> cssList) |
Element |
css(String className) |
Element |
decorate(Decorator... decorators) |
Element |
height(String height) |
String |
id() |
Element |
id(String id)
Set the id of this element.
|
Element |
margin(String margin) |
Element |
padding(String style) |
String |
render()
Generates and returns the corresponding HTML markup.
|
Element |
size(String size) |
Element |
src(String src) |
void |
style(String style) |
Element |
style(String name,
String style) |
Element |
title(String title) |
Element |
width(String width) |
Element |
wrap(String name) |
public Element add(Content element)
Elementpublic Element add(Content... elements)
Elementpublic <E> Element add(Foreach<E> factory)
Elementpublic Element add(String text)
Elementpublic Element attr(String name, String value)
Elementpublic String id()
public Element id(String id)
Elementpublic String render()
ContentCopyright © 2013 Whizu. All Rights Reserved.