@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, wasInlinepublic Hamlet(PrintWriter out, int nestLevel, boolean wasInline)
public Hamlet.HEAD<Hamlet> head()
HamletSpec._Htmlhead in interface HamletSpec._Htmlpublic Hamlet.BODY<Hamlet> body()
HamletSpec._Htmlbody in interface HamletSpec._Htmlpublic Hamlet.BODY<Hamlet> body(String selector)
HamletSpec._Htmlbody in interface HamletSpec._Htmlselector - the css selector in the form of (#id)*(.class)*public Hamlet.BASE<Hamlet> base()
HamletSpec._Headbase in interface HamletSpec._Headpublic Hamlet base(String href)
HamletSpec._Headbase in interface HamletSpec._Headhref - the URI.public Hamlet.TITLE<Hamlet> title()
HamletSpec._Headtitle in interface HamletSpec._Headpublic Hamlet title(String cdata)
HamletSpec._Headtitle in interface HamletSpec._Headcdata - the contentpublic Hamlet.STYLE<Hamlet> style()
HamletSpec.HeadMiscstyle in interface HamletSpec.HeadMiscpublic Hamlet style(Object... lines)
HamletSpec.HeadMiscstyle in interface HamletSpec.HeadMisclines - content of the style sheetpublic Hamlet.LINK<Hamlet> link()
HamletSpec.HeadMisclink in interface HamletSpec.HeadMiscpublic Hamlet link(String href)
HamletSpec.HeadMisclink("style.css"); is a shortcut of
link().$rel("stylesheet").$type("text/css").$href("style.css").__();
link in interface HamletSpec.HeadMischref - of the linkpublic Hamlet.META<Hamlet> meta()
HamletSpec.HeadMiscmeta in interface HamletSpec.HeadMiscpublic Hamlet meta(String name, String content)
HamletSpec.HeadMiscmeta().$name(name).$content(content).__();meta in interface HamletSpec.HeadMiscname - of the meta elementcontent - of the meta elementpublic Hamlet meta_http(String header, String content)
HamletSpec.HeadMiscmeta().$http_equiv(header).$content(content).__();meta_http in interface HamletSpec.HeadMischeader - for the http-equiv attributecontent - of the headerpublic Hamlet.SCRIPT<Hamlet> script()
HamletSpec._Scriptscript in interface HamletSpec._Scriptpublic Hamlet script(String src)
HamletSpec._Scriptscript in interface HamletSpec._Scriptsrc - uri of the scriptpublic Hamlet.OBJECT<Hamlet> object()
HamletSpec._Objectobject in interface HamletSpec._Objectpublic Hamlet.OBJECT<Hamlet> object(String selector)
HamletSpec._Objectobject in interface HamletSpec._Objectselector - as #id.class etc.public Hamlet.TABLE<Hamlet> table()
HamletSpec._Blocktable in interface HamletSpec._Blockpublic Hamlet.TABLE<Hamlet> table(String selector)
HamletSpec._Blocktable in interface HamletSpec._Blockselector - the css selector in the form of (#id)*(.class)*public Hamlet address(String cdata)
HamletSpec._Blockaddress in interface HamletSpec._Blockcdata - the contentpublic Hamlet.ADDRESS<Hamlet> address()
HamletSpec._Blockaddress in interface HamletSpec._Blockpublic Hamlet.P<Hamlet> p(String selector)
HamletSpec._Blockp in interface HamletSpec._Blockselector - the css selector in the form of (#id)*(.class)*public Hamlet.P<Hamlet> p()
HamletSpec._Blockp in interface HamletSpec._Blockpublic Hamlet __(Class<? extends SubView> cls)
HamletSpec._Block__ in interface HamletSpec._Blockcls - the sub-view classpublic Hamlet.HR<Hamlet> hr()
HamletSpec._Blockhr in interface HamletSpec._Blockpublic Hamlet hr(String selector)
HamletSpec._Blockhr in interface HamletSpec._Blockselector - the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet> dl(String selector)
HamletSpec._Blockdl in interface HamletSpec._Blockselector - the css selector in the form of (#id)*(.class)*public Hamlet.DL<Hamlet> dl()
HamletSpec._Blockdl in interface HamletSpec._Blockpublic Hamlet.DIV<Hamlet> div(String selector)
HamletSpec._Blockdiv in interface HamletSpec._Blockselector - the css selector in the form of (#id)*(.class)*public Hamlet.DIV<Hamlet> div()
HamletSpec._Blockdiv in interface HamletSpec._Blockpublic Hamlet.BLOCKQUOTE<Hamlet> blockquote()
HamletSpec._Blockblockquote in interface HamletSpec._Blockpublic Hamlet.BLOCKQUOTE<Hamlet> bq()
HamletSpec._Blockbq in interface HamletSpec._Blockpublic Hamlet h1(String cdata)
HamletSpec.Headingh1 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet.H1<Hamlet> h1()
HamletSpec.Headingh1 in interface HamletSpec.Headingpublic Hamlet h1(String selector, String cdata)
HamletSpec.Headingh1 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet h2(String cdata)
HamletSpec.Headingh2 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet.H2<Hamlet> h2()
HamletSpec.Headingh2 in interface HamletSpec.Headingpublic Hamlet h2(String selector, String cdata)
HamletSpec.Headingh2 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet.H3<Hamlet> h3()
HamletSpec.Headingh3 in interface HamletSpec.Headingpublic Hamlet h3(String cdata)
HamletSpec.Headingh3 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet h3(String selector, String cdata)
HamletSpec.Headingh3 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet.H4<Hamlet> h4()
HamletSpec.Headingh4 in interface HamletSpec.Headingpublic Hamlet h4(String cdata)
HamletSpec.Headingh4 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet h4(String selector, String cdata)
HamletSpec.Headingh4 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet.H5<Hamlet> h5()
HamletSpec.Headingh5 in interface HamletSpec.Headingpublic Hamlet h5(String cdata)
HamletSpec.Headingh5 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet h5(String selector, String cdata)
HamletSpec.Headingh5 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet.H6<Hamlet> h6()
HamletSpec.Headingh6 in interface HamletSpec.Headingpublic Hamlet h6(String cdata)
HamletSpec.Headingh6 in interface HamletSpec.Headingcdata - the content of the elementpublic Hamlet h6(String selector, String cdata)
HamletSpec.Headingh6 in interface HamletSpec.Headingselector - the css selector in the form of (#id)?(.class)*cdata - the content of the elementpublic Hamlet.UL<Hamlet> ul()
HamletSpec.Listingul in interface HamletSpec.Listingpublic Hamlet.UL<Hamlet> ul(String selector)
HamletSpec.Listingul in interface HamletSpec.Listingselector - the css selector in the form of (#id)?(.class)*public Hamlet.OL<Hamlet> ol()
HamletSpec.Listingol in interface HamletSpec.Listingpublic Hamlet.OL<Hamlet> ol(String selector)
HamletSpec.Listingol in interface HamletSpec.Listingselector - the css selector in the form of (#id)?(.class)*public Hamlet.PRE<Hamlet> pre()
HamletSpec.Preformattedpre in interface HamletSpec.Preformattedpublic Hamlet.PRE<Hamlet> pre(String selector)
HamletSpec.Preformattedpre in interface HamletSpec.Preformattedselector - the css selector in the form of (#id)?(.class)*public Hamlet.FORM<Hamlet> form()
HamletSpec._Formform in interface HamletSpec._Formpublic Hamlet.FORM<Hamlet> form(String selector)
HamletSpec._Formform in interface HamletSpec._Formselector - the css selector in the form of (#id)*(.class)*public Hamlet.FIELDSET<Hamlet> fieldset()
HamletSpec._FieldSetfieldset in interface HamletSpec._FieldSetpublic Hamlet.FIELDSET<Hamlet> fieldset(String selector)
HamletSpec._FieldSetfieldset in interface HamletSpec._FieldSetselector - the css selector in the form of (#id)*(.class)*public Hamlet.INS<Hamlet> ins()
HamletSpec._InsDelins in interface HamletSpec._InsDelpublic Hamlet ins(String cdata)
HamletSpec._InsDelins in interface HamletSpec._InsDelcdata - inserted datapublic Hamlet.DEL<Hamlet> del()
HamletSpec._InsDeldel in interface HamletSpec._InsDelpublic Hamlet del(String cdata)
HamletSpec._InsDeldel in interface HamletSpec._InsDelcdata - deleted dataCopyright © 2008–2025 Apache Software Foundation. All rights reserved.