public class Page extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Page.Header |
| Constructor and Description |
|---|
Page() |
| Modifier and Type | Method and Description |
|---|---|
static DomElement |
b(Renderable... childrenElements)
The HTML <b> Element represents a span of text stylistically
different from normal text, without conveying any special importance or relevance.
|
static DomElement |
b(String text)
The HTML <b> Element represents a span of text stylistically
different from normal text, without conveying any special importance or relevance.
|
static DomElement |
body(DomElement... childrenElements)
The HTML <body> Element represents the content of an HTML document.
|
static DomElement |
br()
The HTML element line break <br> produces a
line break in text (carriage-return).
|
static DomElement |
button(DomElement... childrenElements)
The HTML <button> Element represents a clickable button.
|
static List<DomElement> |
content(DomElement... childrenElements)
Shortcut to join multiple renderables on a single list.
|
static DomElement |
div(DomElement... childrenElements)
The HTML <div> element (or HTML Document Division
Element) is the generic container for flow content, which does not inherently represent
anything.
|
static DomElement |
div(List<Attribute> props,
List<DomElement> childrenElements)
The HTML <div> element (or HTML Document Division
Element) is the generic container for flow content, which does not inherently represent
anything.
|
static DomElement |
h1(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
h2(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
h3(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
h4(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
h5(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
h6(String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
header(Page.Header header,
DomElement... childrenElements)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static DomElement |
header(Page.Header header,
String title)
Heading elements implement six levels of document headings, <h1>
is the most important and <h6> is the least.
|
static Renderable |
html(DomElement... childrenElements)
The HTML <html> element (or HTML root element)
represents the root of an HTML document.
|
static DomElement |
img(DomElement... childrenElements)
The HTML <img> element represents an image in the document.
|
static DomElement |
img(List<Attribute> props,
List<DomElement> childrenElements)
The HTML <img> element represents an image in the document.
|
static DomElement |
p(DomElement... childrenElements)
The HTML <p> element (or HTML Paragraph Element)
represents a paragraph of text.
|
static DomElement |
p(List<Attribute> props,
List<DomElement> childrenElements)
The HTML <p> element (or HTML Paragraph Element)
represents a paragraph of text.
|
static Text |
text(String content)
Used to render a tagless piece of text.
|
static Renderable |
wrap(Renderable... childrenElements)
Used to wrap renderables at the same hierarchy level as a single renderable.
|
public static Renderable html(DomElement... childrenElements)
childrenElements - All elements contained inside the html tag valuepublic static DomElement body(DomElement... childrenElements)
childrenElements - valuepublic static DomElement b(Renderable... childrenElements)
childrenElements - valuepublic static DomElement b(String text)
text - valuepublic static DomElement button(DomElement... childrenElements)
childrenElements - valuepublic static DomElement br()
public static DomElement div(DomElement... childrenElements)
childrenElements - valuepublic static DomElement div(List<Attribute> props, List<DomElement> childrenElements)
props - valuechildrenElements - valuepublic static DomElement img(DomElement... childrenElements)
childrenElements - valuepublic static DomElement img(List<Attribute> props, List<DomElement> childrenElements)
props - valuechildrenElements - valuepublic static DomElement header(Page.Header header, DomElement... childrenElements)
header - valuechildrenElements - valuepublic static DomElement header(Page.Header header, String title)
header - valuetitle - valuepublic static DomElement h1(String title)
title - valuepublic static DomElement h2(String title)
title - valuepublic static DomElement h3(String title)
title - valuepublic static DomElement h4(String title)
title - valuepublic static DomElement h5(String title)
title - valuepublic static DomElement h6(String title)
title - valuepublic static DomElement p(DomElement... childrenElements)
childrenElements - valuepublic static DomElement p(List<Attribute> props, List<DomElement> childrenElements)
props - valuechildrenElements - valuepublic static Text text(String content)
content - valuepublic static List<DomElement> content(DomElement... childrenElements)
childrenElements - valuepublic static Renderable wrap(Renderable... childrenElements)
childrenElements - valueCopyright © 2016. All rights reserved.