public class Hamlet.HTML<T extends HamletSpec.__> extends HamletImpl.EImp<T> implements HamletSpec.HTML
Constructor and Description |
---|
HTML(String name,
T parent,
EnumSet<HamletImpl.EOpt> opts) |
Modifier and Type | Method and Description |
---|---|
Hamlet.HTML<T> |
__(Class<? extends SubView> cls)
Embed a sub-view.
|
Hamlet.HTML<T> |
$dir(HamletSpec.Dir value)
direction for weak/neutral text
|
Hamlet.HTML<T> |
$lang(String value)
language code
|
Hamlet.ADDRESS<Hamlet.HTML<T>> |
address()
Add a ADDRESS element.
|
Hamlet.HTML<T> |
address(String cdata)
Add a complete ADDRESS element.
|
Hamlet.BASE<Hamlet.HTML<T>> |
base()
Add a BASE element.
|
Hamlet.HTML<T> |
base(String href)
Add a complete BASE element.
|
Hamlet.BLOCKQUOTE<Hamlet.HTML<T>> |
blockquote()
Add a BLOCKQUOTE element.
|
Hamlet.BODY<Hamlet.HTML<T>> |
body()
Add a BODY element.
|
Hamlet.BODY<Hamlet.HTML<T>> |
body(String selector)
Add a BODY element.
|
Hamlet.BLOCKQUOTE<Hamlet.HTML<T>> |
bq()
Alias of blockquote
|
Hamlet.DEL<Hamlet.HTML<T>> |
del()
Add a DEL (delete) element.
|
Hamlet.HTML<T> |
del(String cdata)
Add a complete DEL element.
|
Hamlet.DIV<Hamlet.HTML<T>> |
div()
Add a DIV element.
|
Hamlet.DIV<Hamlet.HTML<T>> |
div(String selector)
Add a DIV element.
|
Hamlet.DL<Hamlet.HTML<T>> |
dl()
Add a DL (description list) element.
|
Hamlet.DL<Hamlet.HTML<T>> |
dl(String selector)
Add a DL element.
|
Hamlet.FIELDSET<Hamlet.HTML<T>> |
fieldset()
Add a FIELDSET element.
|
Hamlet.FIELDSET<Hamlet.HTML<T>> |
fieldset(String selector)
Add a FIELDSET element.
|
Hamlet.FORM<Hamlet.HTML<T>> |
form()
Add a FORM element.
|
Hamlet.FORM<Hamlet.HTML<T>> |
form(String selector)
Add a FORM element.
|
Hamlet.H1<Hamlet.HTML<T>> |
h1()
Add an H1 element.
|
Hamlet.HTML<T> |
h1(String cdata)
Add a complete H1 element.
|
Hamlet.HTML<T> |
h1(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H2<Hamlet.HTML<T>> |
h2()
Add an H2 element.
|
Hamlet.HTML<T> |
h2(String cdata)
Add a complete H2 element.
|
Hamlet.HTML<T> |
h2(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H3<Hamlet.HTML<T>> |
h3()
Add an H3 element.
|
Hamlet.HTML<T> |
h3(String cdata)
Add a complete H3 element.
|
Hamlet.HTML<T> |
h3(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H4<Hamlet.HTML<T>> |
h4()
Add an H4 element.
|
Hamlet.HTML<T> |
h4(String cdata)
Add a complete H4 element.
|
Hamlet.HTML<T> |
h4(String selector,
String cdata)
Add a complete H4 element
|
Hamlet.H5<Hamlet.HTML<T>> |
h5()
Add an H5 element.
|
Hamlet.HTML<T> |
h5(String cdata)
Add a complete H5 element.
|
Hamlet.HTML<T> |
h5(String selector,
String cdata)
Add a complete H5 element
|
Hamlet.H6<Hamlet.HTML<T>> |
h6()
Add an H6 element.
|
Hamlet.HTML<T> |
h6(String cdata)
Add a complete H6 element.
|
Hamlet.HTML<T> |
h6(String selector,
String cdata)
Add a complete H6 element.
|
Hamlet.HEAD<Hamlet.HTML<T>> |
head()
Add a HEAD element.
|
Hamlet.HR<Hamlet.HTML<T>> |
hr()
Add a HR (horizontal rule) element.
|
Hamlet.HTML<T> |
hr(String selector)
Add a HR element.
|
Hamlet.INS<Hamlet.HTML<T>> |
ins()
Add an INS (insert) element.
|
Hamlet.HTML<T> |
ins(String cdata)
Add a complete INS element.
|
Hamlet.LINK<Hamlet.HTML<T>> |
link()
Add a link element.
|
Hamlet.HTML<T> |
link(String href)
Add a link element.
|
Hamlet.HTML<T> |
meta_http(String header,
String content)
Add a meta element with http-equiv attribute.
|
Hamlet.META<Hamlet.HTML<T>> |
meta()
Add a meta element.
|
Hamlet.HTML<T> |
meta(String name,
String content)
Add a meta element.
|
Hamlet.OBJECT<Hamlet.HTML<T>> |
object()
Add an object element.
|
Hamlet.OBJECT<Hamlet.HTML<T>> |
object(String selector)
Add an object element.
|
Hamlet.OL<Hamlet.HTML<T>> |
ol()
Add a OL (ordered list) element.
|
Hamlet.OL<Hamlet.HTML<T>> |
ol(String selector)
Add a OL (ordered list) element.
|
Hamlet.P<Hamlet.HTML<T>> |
p()
Add a P (paragraph) element.
|
Hamlet.P<Hamlet.HTML<T>> |
p(String selector)
Add a P (paragraph) element.
|
Hamlet.PRE<Hamlet.HTML<T>> |
pre()
Add a PRE (preformatted) element.
|
Hamlet.PRE<Hamlet.HTML<T>> |
pre(String selector)
Add a PRE (preformatted) element.
|
Hamlet.SCRIPT<Hamlet.HTML<T>> |
script()
Add a script element.
|
Hamlet.HTML<T> |
script(String src)
Add a script element
|
Hamlet.STYLE<Hamlet.HTML<T>> |
style()
Add a style element.
|
Hamlet.HTML<T> |
style(Object... lines)
Add a css style element.
|
Hamlet.TABLE<Hamlet.HTML<T>> |
table()
Add a TABLE element.
|
Hamlet.TABLE<Hamlet.HTML<T>> |
table(String selector)
Add a TABLE element.
|
Hamlet.TITLE<Hamlet.HTML<T>> |
title()
Add a TITLE element.
|
Hamlet.HTML<T> |
title(String cdata)
Add a TITLE element.
|
Hamlet.UL<Hamlet.HTML<T>> |
ul()
Add a UL (unordered list) element.
|
Hamlet.UL<Hamlet.HTML<T>> |
ul(String selector)
Add a UL (unordered list) element.
|
__, _endTag, _inline, _p, _pre, _v, addAttr, addAttr, addMediaAttr, addRelAttr, closeAttrs
public HTML(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
public Hamlet.HTML<T> $lang(String value)
HamletSpec.I18nAttrs
$lang
in interface HamletSpec.I18nAttrs
value
- the codepublic Hamlet.HTML<T> $dir(HamletSpec.Dir value)
HamletSpec.I18nAttrs
$dir
in interface HamletSpec.I18nAttrs
value
- the HamletSpec.Dir
valuepublic Hamlet.HEAD<Hamlet.HTML<T>> head()
HamletSpec._Html
head
in interface HamletSpec._Html
public Hamlet.BODY<Hamlet.HTML<T>> body()
HamletSpec._Html
body
in interface HamletSpec._Html
public Hamlet.BODY<Hamlet.HTML<T>> body(String selector)
HamletSpec._Html
body
in interface HamletSpec._Html
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.BASE<Hamlet.HTML<T>> base()
HamletSpec._Head
base
in interface HamletSpec._Head
public Hamlet.HTML<T> base(String href)
HamletSpec._Head
base
in interface HamletSpec._Head
href
- the URI.public Hamlet.TITLE<Hamlet.HTML<T>> title()
HamletSpec._Head
title
in interface HamletSpec._Head
public Hamlet.HTML<T> title(String cdata)
HamletSpec._Head
title
in interface HamletSpec._Head
cdata
- the contentpublic Hamlet.STYLE<Hamlet.HTML<T>> style()
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
public Hamlet.HTML<T> style(Object... lines)
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
lines
- content of the style sheetpublic Hamlet.LINK<Hamlet.HTML<T>> link()
HamletSpec.HeadMisc
link
in interface HamletSpec.HeadMisc
public Hamlet.HTML<T> link(String href)
HamletSpec.HeadMisc
link("style.css");
is a shortcut of
link().$rel("stylesheet").$type("text/css").$href("style.css").__();
link
in interface HamletSpec.HeadMisc
href
- of the linkpublic Hamlet.META<Hamlet.HTML<T>> meta()
HamletSpec.HeadMisc
meta
in interface HamletSpec.HeadMisc
public Hamlet.HTML<T> meta(String name, String content)
HamletSpec.HeadMisc
meta().$name(name).$content(content).__();
meta
in interface HamletSpec.HeadMisc
name
- of the meta elementcontent
- of the meta elementpublic Hamlet.HTML<T> meta_http(String header, String content)
HamletSpec.HeadMisc
meta().$http_equiv(header).$content(content).__();
meta_http
in interface HamletSpec.HeadMisc
header
- for the http-equiv attributecontent
- of the headerpublic Hamlet.SCRIPT<Hamlet.HTML<T>> script()
HamletSpec._Script
script
in interface HamletSpec._Script
public Hamlet.HTML<T> script(String src)
HamletSpec._Script
script
in interface HamletSpec._Script
src
- uri of the scriptpublic Hamlet.OBJECT<Hamlet.HTML<T>> object()
HamletSpec._Object
object
in interface HamletSpec._Object
public Hamlet.OBJECT<Hamlet.HTML<T>> object(String selector)
HamletSpec._Object
object
in interface HamletSpec._Object
selector
- as #id.class etc.public Hamlet.TABLE<Hamlet.HTML<T>> table()
HamletSpec._Block
table
in interface HamletSpec._Block
public Hamlet.TABLE<Hamlet.HTML<T>> table(String selector)
HamletSpec._Block
table
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.HTML<T> address(String cdata)
HamletSpec._Block
address
in interface HamletSpec._Block
cdata
- the contentpublic Hamlet.ADDRESS<Hamlet.HTML<T>> address()
HamletSpec._Block
address
in interface HamletSpec._Block
public Hamlet.P<Hamlet.HTML<T>> p(String selector)
HamletSpec._Block
p
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.P<Hamlet.HTML<T>> p()
HamletSpec._Block
p
in interface HamletSpec._Block
public Hamlet.HTML<T> __(Class<? extends SubView> cls)
HamletSpec._Block
__
in interface HamletSpec._Block
cls
- the sub-view classpublic Hamlet.HR<Hamlet.HTML<T>> hr()
HamletSpec._Block
hr
in interface HamletSpec._Block
public Hamlet.HTML<T> hr(String selector)
HamletSpec._Block
hr
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet.HTML<T>> dl(String selector)
HamletSpec._Block
dl
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet.HTML<T>> dl()
HamletSpec._Block
dl
in interface HamletSpec._Block
public Hamlet.DIV<Hamlet.HTML<T>> div(String selector)
HamletSpec._Block
div
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DIV<Hamlet.HTML<T>> div()
HamletSpec._Block
div
in interface HamletSpec._Block
public Hamlet.BLOCKQUOTE<Hamlet.HTML<T>> blockquote()
HamletSpec._Block
blockquote
in interface HamletSpec._Block
public Hamlet.BLOCKQUOTE<Hamlet.HTML<T>> bq()
HamletSpec._Block
bq
in interface HamletSpec._Block
public Hamlet.HTML<T> h1(String cdata)
HamletSpec.Heading
h1
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.H1<Hamlet.HTML<T>> h1()
HamletSpec.Heading
h1
in interface HamletSpec.Heading
public Hamlet.HTML<T> h1(String selector, String cdata)
HamletSpec.Heading
h1
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.HTML<T> h2(String cdata)
HamletSpec.Heading
h2
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.H2<Hamlet.HTML<T>> h2()
HamletSpec.Heading
h2
in interface HamletSpec.Heading
public Hamlet.HTML<T> h2(String selector, String cdata)
HamletSpec.Heading
h2
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.H3<Hamlet.HTML<T>> h3()
HamletSpec.Heading
h3
in interface HamletSpec.Heading
public Hamlet.HTML<T> h3(String cdata)
HamletSpec.Heading
h3
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.HTML<T> h3(String selector, String cdata)
HamletSpec.Heading
h3
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.H4<Hamlet.HTML<T>> h4()
HamletSpec.Heading
h4
in interface HamletSpec.Heading
public Hamlet.HTML<T> h4(String cdata)
HamletSpec.Heading
h4
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.HTML<T> h4(String selector, String cdata)
HamletSpec.Heading
h4
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.H5<Hamlet.HTML<T>> h5()
HamletSpec.Heading
h5
in interface HamletSpec.Heading
public Hamlet.HTML<T> h5(String cdata)
HamletSpec.Heading
h5
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.HTML<T> h5(String selector, String cdata)
HamletSpec.Heading
h5
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.H6<Hamlet.HTML<T>> h6()
HamletSpec.Heading
h6
in interface HamletSpec.Heading
public Hamlet.HTML<T> h6(String cdata)
HamletSpec.Heading
h6
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.HTML<T> h6(String selector, String cdata)
HamletSpec.Heading
h6
in interface HamletSpec.Heading
selector
- the css selector in the form of (#id)?(.class)*cdata
- the content of the elementpublic Hamlet.UL<Hamlet.HTML<T>> ul()
HamletSpec.Listing
ul
in interface HamletSpec.Listing
public Hamlet.UL<Hamlet.HTML<T>> ul(String selector)
HamletSpec.Listing
ul
in interface HamletSpec.Listing
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.OL<Hamlet.HTML<T>> ol()
HamletSpec.Listing
ol
in interface HamletSpec.Listing
public Hamlet.OL<Hamlet.HTML<T>> ol(String selector)
HamletSpec.Listing
ol
in interface HamletSpec.Listing
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.PRE<Hamlet.HTML<T>> pre()
HamletSpec.Preformatted
pre
in interface HamletSpec.Preformatted
public Hamlet.PRE<Hamlet.HTML<T>> pre(String selector)
HamletSpec.Preformatted
pre
in interface HamletSpec.Preformatted
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.FORM<Hamlet.HTML<T>> form()
HamletSpec._Form
form
in interface HamletSpec._Form
public Hamlet.FORM<Hamlet.HTML<T>> form(String selector)
HamletSpec._Form
form
in interface HamletSpec._Form
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.FIELDSET<Hamlet.HTML<T>> fieldset()
HamletSpec._FieldSet
fieldset
in interface HamletSpec._FieldSet
public Hamlet.FIELDSET<Hamlet.HTML<T>> fieldset(String selector)
HamletSpec._FieldSet
fieldset
in interface HamletSpec._FieldSet
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.INS<Hamlet.HTML<T>> ins()
HamletSpec._InsDel
ins
in interface HamletSpec._InsDel
public Hamlet.HTML<T> ins(String cdata)
HamletSpec._InsDel
ins
in interface HamletSpec._InsDel
cdata
- inserted datapublic Hamlet.DEL<Hamlet.HTML<T>> del()
HamletSpec._InsDel
del
in interface HamletSpec._InsDel
public Hamlet.HTML<T> del(String cdata)
HamletSpec._InsDel
del
in interface HamletSpec._InsDel
cdata
- deleted dataCopyright © 2008–2024 Apache Software Foundation. All rights reserved.