org.apache.hadoop.yarn.webapp.hamlet
Class Hamlet

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.hamlet.HamletSpec
      extended by org.apache.hadoop.yarn.webapp.hamlet.HamletImpl
          extended by org.apache.hadoop.yarn.webapp.hamlet.Hamlet
All Implemented Interfaces:
HamletSpec._, HamletSpec._Block, HamletSpec._Body, HamletSpec._FieldSet, HamletSpec._Form, HamletSpec._Head, HamletSpec._Html, HamletSpec._InsDel, HamletSpec._Object, HamletSpec._Script, HamletSpec.Block, HamletSpec.Heading, HamletSpec.HeadMisc, HamletSpec.Listing, HamletSpec.Preformatted
Direct Known Subclasses:
HtmlBlock.Block, HtmlPage.Page

public class Hamlet
extends HamletImpl
implements HamletSpec._Html


Nested Class Summary
 class Hamlet.A<T extends HamletSpec._>
           
 class Hamlet.ABBR<T extends HamletSpec._>
           
 class Hamlet.ACRONYM<T extends HamletSpec._>
           
 class Hamlet.ADDRESS<T extends HamletSpec._>
           
 class Hamlet.AREA<T extends HamletSpec._>
           
 class Hamlet.B<T extends HamletSpec._>
           
 class Hamlet.BASE<T extends HamletSpec._>
           
 class Hamlet.BDO<T extends HamletSpec._>
           
 class Hamlet.BLOCKQUOTE<T extends HamletSpec._>
           
 class Hamlet.BODY<T extends HamletSpec._>
           
 class Hamlet.BR<T extends HamletSpec._>
           
 class Hamlet.BUTTON<T extends HamletSpec._>
           
 class Hamlet.CAPTION<T extends HamletSpec._>
           
 class Hamlet.CITE<T extends HamletSpec._>
           
 class Hamlet.CODE<T extends HamletSpec._>
           
 class Hamlet.COL<T extends HamletSpec._>
           
 class Hamlet.COLGROUP<T extends HamletSpec._>
           
 class Hamlet.DD<T extends HamletSpec._>
           
 class Hamlet.DEL<T extends HamletSpec._>
           
 class Hamlet.DFN<T extends HamletSpec._>
           
 class Hamlet.DIV<T extends HamletSpec._>
           
 class Hamlet.DL<T extends HamletSpec._>
           
 class Hamlet.DT<T extends HamletSpec._>
           
 class Hamlet.EM<T extends HamletSpec._>
           
 class Hamlet.FIELDSET<T extends HamletSpec._>
           
 class Hamlet.FORM<T extends HamletSpec._>
           
 class Hamlet.H1<T extends HamletSpec._>
           
 class Hamlet.H2<T extends HamletSpec._>
           
 class Hamlet.H3<T extends HamletSpec._>
           
 class Hamlet.H4<T extends HamletSpec._>
           
 class Hamlet.H5<T extends HamletSpec._>
           
 class Hamlet.H6<T extends HamletSpec._>
           
 class Hamlet.HEAD<T extends HamletSpec._>
           
 class Hamlet.HR<T extends HamletSpec._>
           
 class Hamlet.HTML<T extends HamletSpec._>
           
 class Hamlet.I<T extends HamletSpec._>
           
 class Hamlet.IMG<T extends HamletSpec._>
           
 class Hamlet.INPUT<T extends HamletSpec._>
           
 class Hamlet.INS<T extends HamletSpec._>
           
 class Hamlet.KBD<T extends HamletSpec._>
           
 class Hamlet.LABEL<T extends HamletSpec._>
           
 class Hamlet.LEGEND<T extends HamletSpec._>
           
 class Hamlet.LI<T extends HamletSpec._>
           
 class Hamlet.LINK<T extends HamletSpec._>
           
 class Hamlet.MAP<T extends HamletSpec._>
           
 class Hamlet.META<T extends HamletSpec._>
           
 class Hamlet.OBJECT<T extends HamletSpec._>
           
 class Hamlet.OL<T extends HamletSpec._>
           
 class Hamlet.OPTGROUP<T extends HamletSpec._>
           
 class Hamlet.OPTION<T extends HamletSpec._>
           
 class Hamlet.P<T extends HamletSpec._>
           
 class Hamlet.PARAM<T extends HamletSpec._>
           
 class Hamlet.PRE<T extends HamletSpec._>
           
 class Hamlet.Q<T extends HamletSpec._>
           
 class Hamlet.SAMP<T extends HamletSpec._>
           
 class Hamlet.SCRIPT<T extends HamletSpec._>
           
 class Hamlet.SELECT<T extends HamletSpec._>
           
 class Hamlet.SMALL<T extends HamletSpec._>
           
 class Hamlet.SPAN<T extends HamletSpec._>
           
 class Hamlet.STRONG<T extends HamletSpec._>
           
 class Hamlet.STYLE<T extends HamletSpec._>
           
 class Hamlet.SUB<T extends HamletSpec._>
           
 class Hamlet.SUP<T extends HamletSpec._>
           
 class Hamlet.TABLE<T extends HamletSpec._>
           
 class Hamlet.TBODY<T extends HamletSpec._>
           
 class Hamlet.TD<T extends HamletSpec._>
           
 class Hamlet.TEXTAREA<T extends HamletSpec._>
           
 class Hamlet.TFOOT<T extends HamletSpec._>
           
 class Hamlet.TH<T extends HamletSpec._>
           
 class Hamlet.THEAD<T extends HamletSpec._>
           
 class Hamlet.TITLE<T extends HamletSpec._>
           
 class Hamlet.TR<T extends HamletSpec._>
           
 class Hamlet.UL<T extends HamletSpec._>
           
 class Hamlet.VAR<T extends HamletSpec._>
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.hamlet.HamletImpl
HamletImpl.EImp<T extends HamletSpec._>, HamletImpl.EOpt, HamletImpl.Generic<T extends HamletSpec._>
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.hamlet.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 Summary
Hamlet(PrintWriter out, int nestLevel, boolean wasInline)
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.hadoop.yarn.webapp.hamlet.HamletImpl
getWriter, indent, nestLevel, parseSelector, printAttr, printEndTag, printStartTag, root, root, setLinkHref, setScriptSrc, setSelector, setWasInline, subView, wasInline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hamlet

public Hamlet(PrintWriter out,
              int nestLevel,
              boolean wasInline)
Method Detail

head

public Hamlet.HEAD<Hamlet> head()
Description copied from interface: HamletSpec._Html
Add a HEAD element.

Specified by:
head in interface HamletSpec._Html
Returns:
a new HEAD element builder

body

public Hamlet.BODY<Hamlet> body()
Description copied from interface: HamletSpec._Html
Add a BODY element.

Specified by:
body in interface HamletSpec._Html
Returns:
a new BODY element builder

body

public Hamlet.BODY<Hamlet> body(String selector)
Description copied from interface: HamletSpec._Html
Add a BODY element.

Specified by:
body in interface HamletSpec._Html
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new BODY element builder

base

public Hamlet.BASE<Hamlet> base()
Description copied from interface: HamletSpec._Head
Add a BASE element.

Specified by:
base in interface HamletSpec._Head
Returns:
a new BASE element builder

base

public Hamlet base(String href)
Description copied from interface: HamletSpec._Head
Add a complete BASE element.

Specified by:
base in interface HamletSpec._Head
Returns:
the current element builder

title

public Hamlet.TITLE<Hamlet> title()
Description copied from interface: HamletSpec._Head
Add a TITLE element.

Specified by:
title in interface HamletSpec._Head
Returns:
a new TITLE element builder

title

public Hamlet title(String cdata)
Description copied from interface: HamletSpec._Head
Add a TITLE element.

Specified by:
title in interface HamletSpec._Head
Parameters:
cdata - the content
Returns:
the current element builder

style

public Hamlet.STYLE<Hamlet> style()
Description copied from interface: HamletSpec.HeadMisc
Add a style element.

Specified by:
style in interface HamletSpec.HeadMisc
Returns:
a style element builder

style

public Hamlet style(Object... lines)
Description copied from interface: HamletSpec.HeadMisc
Add a css style element.

Specified by:
style in interface HamletSpec.HeadMisc
Parameters:
lines - content of the style sheet
Returns:
the current element builder

link

public Hamlet.LINK<Hamlet> link()
Description copied from interface: HamletSpec.HeadMisc
Add a link element.

Specified by:
link in interface HamletSpec.HeadMisc
Returns:
a link element builder

link

public Hamlet link(String href)
Description copied from interface: HamletSpec.HeadMisc
Add a link element. Implementation should try to figure out type by the suffix of href. So link("style.css"); is a shortcut of link().$rel("stylesheet").$type("text/css").$href("style.css")._();

Specified by:
link in interface HamletSpec.HeadMisc
Parameters:
href - of the link
Returns:
the current element builder

meta

public Hamlet.META<Hamlet> meta()
Description copied from interface: HamletSpec.HeadMisc
Add a meta element.

Specified by:
meta in interface HamletSpec.HeadMisc
Returns:
a meta element builder

meta

public Hamlet meta(String name,
                   String content)
Description copied from interface: HamletSpec.HeadMisc
Add a meta element. Shortcut of meta().$name(name).$content(content)._();

Specified by:
meta in interface HamletSpec.HeadMisc
Parameters:
name - of the meta element
content - of the meta element
Returns:
the current element builder

meta_http

public Hamlet meta_http(String header,
                        String content)
Description copied from interface: HamletSpec.HeadMisc
Add a meta element with http-equiv attribute. Shortcut of
meta().$http_equiv(header).$content(content)._();

Specified by:
meta_http in interface HamletSpec.HeadMisc
Parameters:
header - for the http-equiv attribute
content - of the header
Returns:
the current element builder

script

public Hamlet.SCRIPT<Hamlet> script()
Description copied from interface: HamletSpec._Script
Add a script element.

Specified by:
script in interface HamletSpec._Script
Returns:
a script element builder

script

public Hamlet script(String src)
Description copied from interface: HamletSpec._Script
Add a script element

Specified by:
script in interface HamletSpec._Script
Parameters:
src - uri of the script
Returns:
the current element builder

object

public Hamlet.OBJECT<Hamlet> object()
Description copied from interface: HamletSpec._Object
Add an object element.

Specified by:
object in interface HamletSpec._Object
Returns:
an object element builder

object

public Hamlet.OBJECT<Hamlet> object(String selector)
Description copied from interface: HamletSpec._Object
Add an object element.

Specified by:
object in interface HamletSpec._Object
Parameters:
selector - as #id.class etc.
Returns:
an object element builder

table

public Hamlet.TABLE<Hamlet> table()
Description copied from interface: HamletSpec._Block
Add a TABLE element.

Specified by:
table in interface HamletSpec._Block
Returns:
a new TABLE element builder

table

public Hamlet.TABLE<Hamlet> table(String selector)
Description copied from interface: HamletSpec._Block
Add a TABLE element.

Specified by:
table in interface HamletSpec._Block
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new TABLE element builder

address

public Hamlet address(String cdata)
Description copied from interface: HamletSpec._Block
Add a complete ADDRESS element.

Specified by:
address in interface HamletSpec._Block
Parameters:
cdata - the content
Returns:
the current element builder

address

public Hamlet.ADDRESS<Hamlet> address()
Description copied from interface: HamletSpec._Block
Add a ADDRESS element.

Specified by:
address in interface HamletSpec._Block
Returns:
a new ADDRESS element builder

p

public Hamlet.P<Hamlet> p(String selector)
Description copied from interface: HamletSpec._Block
Add a P (paragraph) element.

Specified by:
p in interface HamletSpec._Block
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new P element builder

p

public Hamlet.P<Hamlet> p()
Description copied from interface: HamletSpec._Block
Add a P (paragraph) element.

Specified by:
p in interface HamletSpec._Block
Returns:
a new P element builder

_

public Hamlet _(Class<? extends SubView> cls)
Description copied from interface: HamletSpec._Block
Embed a sub-view.

Specified by:
_ in interface HamletSpec._Block
Parameters:
cls - the sub-view class
Returns:
the current element builder

hr

public Hamlet.HR<Hamlet> hr()
Description copied from interface: HamletSpec._Block
Add a HR (horizontal rule) element.

Specified by:
hr in interface HamletSpec._Block
Returns:
a new HR element builder

hr

public Hamlet hr(String selector)
Description copied from interface: HamletSpec._Block
Add a HR element.

Specified by:
hr in interface HamletSpec._Block
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new HR element builder

dl

public Hamlet.DL<Hamlet> dl(String selector)
Description copied from interface: HamletSpec._Block
Add a DL element.

Specified by:
dl in interface HamletSpec._Block
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new DL element builder

dl

public Hamlet.DL<Hamlet> dl()
Description copied from interface: HamletSpec._Block
Add a DL (description list) element.

Specified by:
dl in interface HamletSpec._Block
Returns:
a new DL element builder

div

public Hamlet.DIV<Hamlet> div(String selector)
Description copied from interface: HamletSpec._Block
Add a DIV element.

Specified by:
div in interface HamletSpec._Block
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new DIV element builder

div

public Hamlet.DIV<Hamlet> div()
Description copied from interface: HamletSpec._Block
Add a DIV element.

Specified by:
div in interface HamletSpec._Block
Returns:
a new DIV element builder

blockquote

public Hamlet.BLOCKQUOTE<Hamlet> blockquote()
Description copied from interface: HamletSpec._Block
Add a BLOCKQUOTE element.

Specified by:
blockquote in interface HamletSpec._Block
Returns:
a new BLOCKQUOTE element builder

bq

public Hamlet.BLOCKQUOTE<Hamlet> bq()
Description copied from interface: HamletSpec._Block
Alias of blockquote

Specified by:
bq in interface HamletSpec._Block
Returns:
a new BLOCKQUOTE element builder

h1

public Hamlet h1(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H1 element.

Specified by:
h1 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h1

public Hamlet.H1<Hamlet> h1()
Description copied from interface: HamletSpec.Heading
Add an H1 element.

Specified by:
h1 in interface HamletSpec.Heading
Returns:
a new H1 element builder

h1

public Hamlet h1(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H1 element

Specified by:
h1 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

h2

public Hamlet h2(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H2 element.

Specified by:
h2 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h2

public Hamlet.H2<Hamlet> h2()
Description copied from interface: HamletSpec.Heading
Add an H2 element.

Specified by:
h2 in interface HamletSpec.Heading
Returns:
a new H2 element builder

h2

public Hamlet h2(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H1 element

Specified by:
h2 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

h3

public Hamlet.H3<Hamlet> h3()
Description copied from interface: HamletSpec.Heading
Add an H3 element.

Specified by:
h3 in interface HamletSpec.Heading
Returns:
a new H3 element builder

h3

public Hamlet h3(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H3 element.

Specified by:
h3 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h3

public Hamlet h3(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H1 element

Specified by:
h3 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

h4

public Hamlet.H4<Hamlet> h4()
Description copied from interface: HamletSpec.Heading
Add an H4 element.

Specified by:
h4 in interface HamletSpec.Heading
Returns:
a new H4 element builder

h4

public Hamlet h4(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H4 element.

Specified by:
h4 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h4

public Hamlet h4(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H4 element

Specified by:
h4 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

h5

public Hamlet.H5<Hamlet> h5()
Description copied from interface: HamletSpec.Heading
Add an H5 element.

Specified by:
h5 in interface HamletSpec.Heading
Returns:
a new H5 element builder

h5

public Hamlet h5(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H5 element.

Specified by:
h5 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h5

public Hamlet h5(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H5 element

Specified by:
h5 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

h6

public Hamlet.H6<Hamlet> h6()
Description copied from interface: HamletSpec.Heading
Add an H6 element.

Specified by:
h6 in interface HamletSpec.Heading
Returns:
a new H6 element builder

h6

public Hamlet h6(String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H6 element.

Specified by:
h6 in interface HamletSpec.Heading
Parameters:
cdata - the content of the element
Returns:
the current element builder

h6

public Hamlet h6(String selector,
                 String cdata)
Description copied from interface: HamletSpec.Heading
Add a complete H6 element.

Specified by:
h6 in interface HamletSpec.Heading
Parameters:
selector - the css selector in the form of (#id)?(.class)*
cdata - the content of the element
Returns:
the current element builder

ul

public Hamlet.UL<Hamlet> ul()
Description copied from interface: HamletSpec.Listing
Add a UL (unordered list) element.

Specified by:
ul in interface HamletSpec.Listing
Returns:
a new UL element builder

ul

public Hamlet.UL<Hamlet> ul(String selector)
Description copied from interface: HamletSpec.Listing
Add a UL (unordered list) element.

Specified by:
ul in interface HamletSpec.Listing
Parameters:
selector - the css selector in the form of (#id)?(.class)*
Returns:
a new UL element builder

ol

public Hamlet.OL<Hamlet> ol()
Description copied from interface: HamletSpec.Listing
Add a OL (ordered list) element.

Specified by:
ol in interface HamletSpec.Listing
Returns:
a new UL element builder

ol

public Hamlet.OL<Hamlet> ol(String selector)
Description copied from interface: HamletSpec.Listing
Add a OL (ordered list) element.

Specified by:
ol in interface HamletSpec.Listing
Parameters:
selector - the css selector in the form of (#id)?(.class)*
Returns:
a new UL element builder

pre

public Hamlet.PRE<Hamlet> pre()
Description copied from interface: HamletSpec.Preformatted
Add a PRE (preformatted) element.

Specified by:
pre in interface HamletSpec.Preformatted
Returns:
a new PRE element builder

pre

public Hamlet.PRE<Hamlet> pre(String selector)
Description copied from interface: HamletSpec.Preformatted
Add a PRE (preformatted) element.

Specified by:
pre in interface HamletSpec.Preformatted
Parameters:
selector - the css selector in the form of (#id)?(.class)*
Returns:
a new PRE element builder

form

public Hamlet.FORM<Hamlet> form()
Description copied from interface: HamletSpec._Form
Add a FORM element.

Specified by:
form in interface HamletSpec._Form
Returns:
a new FORM element builder

form

public Hamlet.FORM<Hamlet> form(String selector)
Description copied from interface: HamletSpec._Form
Add a FORM element.

Specified by:
form in interface HamletSpec._Form
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new FORM element builder

fieldset

public Hamlet.FIELDSET<Hamlet> fieldset()
Description copied from interface: HamletSpec._FieldSet
Add a FIELDSET element.

Specified by:
fieldset in interface HamletSpec._FieldSet
Returns:
a new FIELDSET element builder

fieldset

public Hamlet.FIELDSET<Hamlet> fieldset(String selector)
Description copied from interface: HamletSpec._FieldSet
Add a FIELDSET element.

Specified by:
fieldset in interface HamletSpec._FieldSet
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
a new FIELDSET element builder

ins

public Hamlet.INS<Hamlet> ins()
Description copied from interface: HamletSpec._InsDel
Add an INS (insert) element.

Specified by:
ins in interface HamletSpec._InsDel
Returns:
an INS element builder

ins

public Hamlet ins(String cdata)
Description copied from interface: HamletSpec._InsDel
Add a complete INS element.

Specified by:
ins in interface HamletSpec._InsDel
Parameters:
cdata - inserted data
Returns:
the current element builder

del

public Hamlet.DEL<Hamlet> del()
Description copied from interface: HamletSpec._InsDel
Add a DEL (delete) element.

Specified by:
del in interface HamletSpec._InsDel
Returns:
a DEL element builder

del

public Hamlet del(String cdata)
Description copied from interface: HamletSpec._InsDel
Add a complete DEL element.

Specified by:
del in interface HamletSpec._InsDel
Parameters:
cdata - deleted data
Returns:
the current element builder


Copyright © 2012 Apache Software Foundation. All Rights Reserved.