@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"}) public class Hamlet extends HamletImpl implements HamletSpec._Html
HamletImpl.EImp<T extends HamletSpec.__>, HamletImpl.EOpt, HamletImpl.Generic<T extends HamletSpec.__>
HamletSpec.__, HamletSpec._Anchor, HamletSpec._Block, HamletSpec._Body, HamletSpec._Cell, HamletSpec._Child, HamletSpec._Content, HamletSpec._Dl, HamletSpec._FieldSet, HamletSpec._FontSize, HamletSpec._FontStyle, HamletSpec._Form, HamletSpec._FormCtrl, HamletSpec._Head, HamletSpec._Html, HamletSpec._ImgObject, HamletSpec._InsDel, HamletSpec._Label, HamletSpec._Legend, HamletSpec._Li, HamletSpec._Object, HamletSpec._Option, HamletSpec._Param, HamletSpec._RawContent, HamletSpec._Script, HamletSpec._Special, HamletSpec._SubSup, HamletSpec._Table, HamletSpec._TableCol, HamletSpec._TableRow, HamletSpec._Tr, HamletSpec.Attrs, HamletSpec.Block, HamletSpec.ButtonType, HamletSpec.CoreAttrs, HamletSpec.Dir, HamletSpec.Element, HamletSpec.EventsAttrs, HamletSpec.Flow, HamletSpec.FontStyle, HamletSpec.FormCtrl, HamletSpec.Heading, HamletSpec.HeadMisc, HamletSpec.I18nAttrs, HamletSpec.Inline, HamletSpec.InputType, HamletSpec.LinkType, HamletSpec.Listing, HamletSpec.Media, HamletSpec.Method, HamletSpec.PCData, HamletSpec.Phrase, HamletSpec.Preformatted, HamletSpec.Scope, HamletSpec.Shape, HamletSpec.Special
Constructor and Description |
---|
Hamlet(PrintWriter out,
int nestLevel,
boolean wasInline) |
Modifier and Type | Method and Description |
---|---|
Hamlet |
__(Class<? extends SubView> cls)
Embed a sub-view.
|
Hamlet.ADDRESS<Hamlet> |
address()
Add a ADDRESS element.
|
Hamlet |
address(String cdata)
Add a complete ADDRESS element.
|
Hamlet.BASE<Hamlet> |
base()
Add a BASE element.
|
Hamlet |
base(String href)
Add a complete BASE element.
|
Hamlet.BLOCKQUOTE<Hamlet> |
blockquote()
Add a BLOCKQUOTE element.
|
Hamlet.BODY<Hamlet> |
body()
Add a BODY element.
|
Hamlet.BODY<Hamlet> |
body(String selector)
Add a BODY element.
|
Hamlet.BLOCKQUOTE<Hamlet> |
bq()
Alias of blockquote
|
Hamlet.DEL<Hamlet> |
del()
Add a DEL (delete) element.
|
Hamlet |
del(String cdata)
Add a complete DEL element.
|
Hamlet.DIV<Hamlet> |
div()
Add a DIV element.
|
Hamlet.DIV<Hamlet> |
div(String selector)
Add a DIV element.
|
Hamlet.DL<Hamlet> |
dl()
Add a DL (description list) element.
|
Hamlet.DL<Hamlet> |
dl(String selector)
Add a DL element.
|
Hamlet.FIELDSET<Hamlet> |
fieldset()
Add a FIELDSET element.
|
Hamlet.FIELDSET<Hamlet> |
fieldset(String selector)
Add a FIELDSET element.
|
Hamlet.FORM<Hamlet> |
form()
Add a FORM element.
|
Hamlet.FORM<Hamlet> |
form(String selector)
Add a FORM element.
|
Hamlet.H1<Hamlet> |
h1()
Add an H1 element.
|
Hamlet |
h1(String cdata)
Add a complete H1 element.
|
Hamlet |
h1(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H2<Hamlet> |
h2()
Add an H2 element.
|
Hamlet |
h2(String cdata)
Add a complete H2 element.
|
Hamlet |
h2(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H3<Hamlet> |
h3()
Add an H3 element.
|
Hamlet |
h3(String cdata)
Add a complete H3 element.
|
Hamlet |
h3(String selector,
String cdata)
Add a complete H1 element
|
Hamlet.H4<Hamlet> |
h4()
Add an H4 element.
|
Hamlet |
h4(String cdata)
Add a complete H4 element.
|
Hamlet |
h4(String selector,
String cdata)
Add a complete H4 element
|
Hamlet.H5<Hamlet> |
h5()
Add an H5 element.
|
Hamlet |
h5(String cdata)
Add a complete H5 element.
|
Hamlet |
h5(String selector,
String cdata)
Add a complete H5 element
|
Hamlet.H6<Hamlet> |
h6()
Add an H6 element.
|
Hamlet |
h6(String cdata)
Add a complete H6 element.
|
Hamlet |
h6(String selector,
String cdata)
Add a complete H6 element.
|
Hamlet.HEAD<Hamlet> |
head()
Add a HEAD element.
|
Hamlet.HR<Hamlet> |
hr()
Add a HR (horizontal rule) element.
|
Hamlet |
hr(String selector)
Add a HR element.
|
Hamlet.INS<Hamlet> |
ins()
Add an INS (insert) element.
|
Hamlet |
ins(String cdata)
Add a complete INS element.
|
Hamlet.LINK<Hamlet> |
link()
Add a link element.
|
Hamlet |
link(String href)
Add a link element.
|
Hamlet |
meta_http(String header,
String content)
Add a meta element with http-equiv attribute.
|
Hamlet.META<Hamlet> |
meta()
Add a meta element.
|
Hamlet |
meta(String name,
String content)
Add a meta element.
|
Hamlet.OBJECT<Hamlet> |
object()
Add an object element.
|
Hamlet.OBJECT<Hamlet> |
object(String selector)
Add an object element.
|
Hamlet.OL<Hamlet> |
ol()
Add a OL (ordered list) element.
|
Hamlet.OL<Hamlet> |
ol(String selector)
Add a OL (ordered list) element.
|
Hamlet.P<Hamlet> |
p()
Add a P (paragraph) element.
|
Hamlet.P<Hamlet> |
p(String selector)
Add a P (paragraph) element.
|
Hamlet.PRE<Hamlet> |
pre()
Add a PRE (preformatted) element.
|
Hamlet.PRE<Hamlet> |
pre(String selector)
Add a PRE (preformatted) element.
|
Hamlet.SCRIPT<Hamlet> |
script()
Add a script element.
|
Hamlet |
script(String src)
Add a script element
|
Hamlet.STYLE<Hamlet> |
style()
Add a style element.
|
Hamlet |
style(Object... lines)
Add a css style element.
|
Hamlet.TABLE<Hamlet> |
table()
Add a TABLE element.
|
Hamlet.TABLE<Hamlet> |
table(String selector)
Add a TABLE element.
|
Hamlet.TITLE<Hamlet> |
title()
Add a TITLE element.
|
Hamlet |
title(String cdata)
Add a TITLE element.
|
Hamlet.UL<Hamlet> |
ul()
Add a UL (unordered list) element.
|
Hamlet.UL<Hamlet> |
ul(String selector)
Add a UL (unordered list) element.
|
getWriter, indent, nestLevel, parseSelector, printAttr, printEndTag, printStartTag, root, root, setLinkHref, setScriptSrc, setSelector, setWasInline, subView, wasInline
public Hamlet(PrintWriter out, int nestLevel, boolean wasInline)
public Hamlet.HEAD<Hamlet> head()
HamletSpec._Html
head
in interface HamletSpec._Html
public Hamlet.BODY<Hamlet> body()
HamletSpec._Html
body
in interface HamletSpec._Html
public Hamlet.BODY<Hamlet> body(String selector)
HamletSpec._Html
body
in interface HamletSpec._Html
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.BASE<Hamlet> base()
HamletSpec._Head
base
in interface HamletSpec._Head
public Hamlet base(String href)
HamletSpec._Head
base
in interface HamletSpec._Head
href
- the URI.public Hamlet.TITLE<Hamlet> title()
HamletSpec._Head
title
in interface HamletSpec._Head
public Hamlet title(String cdata)
HamletSpec._Head
title
in interface HamletSpec._Head
cdata
- the contentpublic Hamlet.STYLE<Hamlet> style()
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
public Hamlet style(Object... lines)
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
lines
- content of the style sheetpublic Hamlet.LINK<Hamlet> link()
HamletSpec.HeadMisc
link
in interface HamletSpec.HeadMisc
public Hamlet 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> meta()
HamletSpec.HeadMisc
meta
in interface HamletSpec.HeadMisc
public Hamlet 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 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> script()
HamletSpec._Script
script
in interface HamletSpec._Script
public Hamlet script(String src)
HamletSpec._Script
script
in interface HamletSpec._Script
src
- uri of the scriptpublic Hamlet.OBJECT<Hamlet> object()
HamletSpec._Object
object
in interface HamletSpec._Object
public Hamlet.OBJECT<Hamlet> object(String selector)
HamletSpec._Object
object
in interface HamletSpec._Object
selector
- as #id.class etc.public Hamlet.TABLE<Hamlet> table()
HamletSpec._Block
table
in interface HamletSpec._Block
public Hamlet.TABLE<Hamlet> table(String selector)
HamletSpec._Block
table
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet address(String cdata)
HamletSpec._Block
address
in interface HamletSpec._Block
cdata
- the contentpublic Hamlet.ADDRESS<Hamlet> address()
HamletSpec._Block
address
in interface HamletSpec._Block
public Hamlet.P<Hamlet> p(String selector)
HamletSpec._Block
p
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.P<Hamlet> p()
HamletSpec._Block
p
in interface HamletSpec._Block
public Hamlet __(Class<? extends SubView> cls)
HamletSpec._Block
__
in interface HamletSpec._Block
cls
- the sub-view classpublic Hamlet.HR<Hamlet> hr()
HamletSpec._Block
hr
in interface HamletSpec._Block
public Hamlet hr(String selector)
HamletSpec._Block
hr
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet> dl(String selector)
HamletSpec._Block
dl
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet> dl()
HamletSpec._Block
dl
in interface HamletSpec._Block
public Hamlet.DIV<Hamlet> div(String selector)
HamletSpec._Block
div
in interface HamletSpec._Block
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.DIV<Hamlet> div()
HamletSpec._Block
div
in interface HamletSpec._Block
public Hamlet.BLOCKQUOTE<Hamlet> blockquote()
HamletSpec._Block
blockquote
in interface HamletSpec._Block
public Hamlet.BLOCKQUOTE<Hamlet> bq()
HamletSpec._Block
bq
in interface HamletSpec._Block
public Hamlet h1(String cdata)
HamletSpec.Heading
h1
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.H1<Hamlet> h1()
HamletSpec.Heading
h1
in interface HamletSpec.Heading
public Hamlet 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 h2(String cdata)
HamletSpec.Heading
h2
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet.H2<Hamlet> h2()
HamletSpec.Heading
h2
in interface HamletSpec.Heading
public Hamlet 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> h3()
HamletSpec.Heading
h3
in interface HamletSpec.Heading
public Hamlet h3(String cdata)
HamletSpec.Heading
h3
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet 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> h4()
HamletSpec.Heading
h4
in interface HamletSpec.Heading
public Hamlet h4(String cdata)
HamletSpec.Heading
h4
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet 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> h5()
HamletSpec.Heading
h5
in interface HamletSpec.Heading
public Hamlet h5(String cdata)
HamletSpec.Heading
h5
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet 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> h6()
HamletSpec.Heading
h6
in interface HamletSpec.Heading
public Hamlet h6(String cdata)
HamletSpec.Heading
h6
in interface HamletSpec.Heading
cdata
- the content of the elementpublic Hamlet 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> ul()
HamletSpec.Listing
ul
in interface HamletSpec.Listing
public Hamlet.UL<Hamlet> ul(String selector)
HamletSpec.Listing
ul
in interface HamletSpec.Listing
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.OL<Hamlet> ol()
HamletSpec.Listing
ol
in interface HamletSpec.Listing
public Hamlet.OL<Hamlet> ol(String selector)
HamletSpec.Listing
ol
in interface HamletSpec.Listing
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.PRE<Hamlet> pre()
HamletSpec.Preformatted
pre
in interface HamletSpec.Preformatted
public Hamlet.PRE<Hamlet> pre(String selector)
HamletSpec.Preformatted
pre
in interface HamletSpec.Preformatted
selector
- the css selector in the form of (#id)?(.class)*public Hamlet.FORM<Hamlet> form()
HamletSpec._Form
form
in interface HamletSpec._Form
public Hamlet.FORM<Hamlet> form(String selector)
HamletSpec._Form
form
in interface HamletSpec._Form
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.FIELDSET<Hamlet> fieldset()
HamletSpec._FieldSet
fieldset
in interface HamletSpec._FieldSet
public Hamlet.FIELDSET<Hamlet> fieldset(String selector)
HamletSpec._FieldSet
fieldset
in interface HamletSpec._FieldSet
selector
- the css selector in the form of (#id)*(.class)*public Hamlet.INS<Hamlet> ins()
HamletSpec._InsDel
ins
in interface HamletSpec._InsDel
public Hamlet ins(String cdata)
HamletSpec._InsDel
ins
in interface HamletSpec._InsDel
cdata
- inserted datapublic Hamlet.DEL<Hamlet> del()
HamletSpec._InsDel
del
in interface HamletSpec._InsDel
public Hamlet del(String cdata)
HamletSpec._InsDel
del
in interface HamletSpec._InsDel
cdata
- deleted dataCopyright © 2008–2024 Apache Software Foundation. All rights reserved.