org.apache.hadoop.yarn.webapp.hamlet
Class Hamlet.BUTTON<T extends HamletSpec._>

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EImp<T>
      extended by org.apache.hadoop.yarn.webapp.hamlet.Hamlet.BUTTON<T>
All Implemented Interfaces:
HamletSpec._, HamletSpec._Block, HamletSpec._Child, HamletSpec._Content, HamletSpec._FontSize, HamletSpec._FontStyle, HamletSpec._ImgObject, HamletSpec._InsDel, HamletSpec._Object, HamletSpec._RawContent, HamletSpec._Script, HamletSpec._Special, HamletSpec._SubSup, HamletSpec.Attrs, HamletSpec.BUTTON, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.FontStyle, HamletSpec.Heading, HamletSpec.I18nAttrs, HamletSpec.Listing, HamletSpec.PCData, HamletSpec.Phrase, HamletSpec.Preformatted
Enclosing class:
Hamlet

public class Hamlet.BUTTON<T extends HamletSpec._>
extends HamletImpl.EImp<T>
implements HamletSpec.BUTTON


Constructor Summary
Hamlet.BUTTON(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
           
 
Method Summary
 Hamlet.BUTTON<T> _(Class<? extends SubView> cls)
          Embed a sub-view.
 Hamlet.BUTTON<T> _(Object... lines)
          Content of the element
 Hamlet.BUTTON<T> _r(Object... lines)
          Raw (no need to be HTML escaped) content
 Hamlet.BUTTON<T> $accesskey(String value)
          accessibility key character
 Hamlet.BUTTON<T> $class(String value)
          space-separated list of classes
 Hamlet.BUTTON<T> $dir(HamletSpec.Dir value)
          direction for weak/neutral text
 Hamlet.BUTTON<T> $disabled()
          unavailable in this context
 Hamlet.BUTTON<T> $id(String value)
          document-wide unique id
 Hamlet.BUTTON<T> $lang(String value)
          language code
 Hamlet.BUTTON<T> $name(String value)
          name of the value
 Hamlet.BUTTON<T> $onblur(String value)
          the element lost the focus
 Hamlet.BUTTON<T> $onclick(String value)
          a pointer button was clicked
 Hamlet.BUTTON<T> $ondblclick(String value)
          a pointer button was double clicked
 Hamlet.BUTTON<T> $onfocus(String value)
          the element got the focus
 Hamlet.BUTTON<T> $onkeydown(String value)
          a key was pressed down
 Hamlet.BUTTON<T> $onkeypress(String value)
          a key was pressed and released
 Hamlet.BUTTON<T> $onkeyup(String value)
          a key was released
 Hamlet.BUTTON<T> $onmousedown(String value)
          a pointer button was pressed down
 Hamlet.BUTTON<T> $onmousemove(String value)
          a pointer was moved within
 Hamlet.BUTTON<T> $onmouseout(String value)
          a pointer was moved away
 Hamlet.BUTTON<T> $onmouseover(String value)
          a pointer was moved onto
 Hamlet.BUTTON<T> $onmouseup(String value)
          a pointer button was released
 Hamlet.BUTTON<T> $style(String value)
          associated style info
 Hamlet.BUTTON<T> $tabindex(int value)
          position in tabbing order
 Hamlet.BUTTON<T> $title(String value)
          advisory title
 Hamlet.BUTTON<T> $type(HamletSpec.ButtonType value)
          for use as form button
 Hamlet.BUTTON<T> $value(String value)
          sent to server when submitted
 Hamlet.ABBR<Hamlet.BUTTON<T>> abbr()
          Add an ABBR (abbreviation) element.
 Hamlet.BUTTON<T> abbr(String cdata)
          Add a ABBR (abbreviation) element.
 Hamlet.BUTTON<T> abbr(String selector, String cdata)
          Add a ABBR (abbreviation) element.
 Hamlet.ADDRESS<Hamlet.BUTTON<T>> address()
          Add a ADDRESS element.
 Hamlet.BUTTON<T> address(String cdata)
          Add a complete ADDRESS element.
 Hamlet.B<Hamlet.BUTTON<T>> b()
          Add a new B (bold/important) element.
 Hamlet.BUTTON<T> b(String cdata)
          Add a complete B (bold/important) element.
 Hamlet.BUTTON<T> b(String selector, String cdata)
          Add a complete B (bold/important) element.
 Hamlet.BDO<Hamlet.BUTTON<T>> bdo()
          Add a bdo (bidirectional override) element
 Hamlet.BUTTON<T> bdo(HamletSpec.Dir dir, String cdata)
          Add a bdo (bidirectional override) element
 Hamlet.BLOCKQUOTE<Hamlet.BUTTON<T>> blockquote()
          Add a BLOCKQUOTE element.
 Hamlet.BLOCKQUOTE<Hamlet.BUTTON<T>> bq()
          Alias of blockquote
 Hamlet.BR<Hamlet.BUTTON<T>> br()
          Add a BR (line break) element.
 Hamlet.BUTTON<T> br(String selector)
          Add a BR (line break) element.
 Hamlet.CITE<Hamlet.BUTTON<T>> cite()
          Add a CITE element.
 Hamlet.BUTTON<T> cite(String cdata)
          Add a CITE element.
 Hamlet.BUTTON<T> cite(String selector, String cdata)
          Add a CITE element.
 Hamlet.CODE<Hamlet.BUTTON<T>> code()
          Add a CODE (code fragment) element.
 Hamlet.BUTTON<T> code(String cdata)
          Add a complete CODE element.
 Hamlet.BUTTON<T> code(String selector, String cdata)
          Add a complete CODE element.
 Hamlet.DEL<Hamlet.BUTTON<T>> del()
          Add a DEL (delete) element.
 Hamlet.BUTTON<T> del(String cdata)
          Add a complete DEL element.
 Hamlet.DFN<Hamlet.BUTTON<T>> dfn()
          Add a DFN element.
 Hamlet.BUTTON<T> dfn(String cdata)
          Add a complete DFN element.
 Hamlet.BUTTON<T> dfn(String selector, String cdata)
          Add a complete DFN element.
 Hamlet.DIV<Hamlet.BUTTON<T>> div()
          Add a DIV element.
 Hamlet.DIV<Hamlet.BUTTON<T>> div(String selector)
          Add a DIV element.
 Hamlet.DL<Hamlet.BUTTON<T>> dl()
          Add a DL (description list) element.
 Hamlet.DL<Hamlet.BUTTON<T>> dl(String selector)
          Add a DL element.
 Hamlet.EM<Hamlet.BUTTON<T>> em()
          Add an EM (emphasized) element.
 Hamlet.BUTTON<T> em(String cdata)
          Add an EM (emphasized) element.
 Hamlet.BUTTON<T> em(String selector, String cdata)
          Add an EM (emphasized) element.
 Hamlet.H1<Hamlet.BUTTON<T>> h1()
          Add an H1 element.
 Hamlet.BUTTON<T> h1(String cdata)
          Add a complete H1 element.
 Hamlet.BUTTON<T> h1(String selector, String cdata)
          Add a complete H1 element
 Hamlet.H2<Hamlet.BUTTON<T>> h2()
          Add an H2 element.
 Hamlet.BUTTON<T> h2(String cdata)
          Add a complete H2 element.
 Hamlet.BUTTON<T> h2(String selector, String cdata)
          Add a complete H1 element
 Hamlet.H3<Hamlet.BUTTON<T>> h3()
          Add an H3 element.
 Hamlet.BUTTON<T> h3(String cdata)
          Add a complete H3 element.
 Hamlet.BUTTON<T> h3(String selector, String cdata)
          Add a complete H1 element
 Hamlet.H4<Hamlet.BUTTON<T>> h4()
          Add an H4 element.
 Hamlet.BUTTON<T> h4(String cdata)
          Add a complete H4 element.
 Hamlet.BUTTON<T> h4(String selector, String cdata)
          Add a complete H4 element
 Hamlet.H5<Hamlet.BUTTON<T>> h5()
          Add an H5 element.
 Hamlet.BUTTON<T> h5(String cdata)
          Add a complete H5 element.
 Hamlet.BUTTON<T> h5(String selector, String cdata)
          Add a complete H5 element
 Hamlet.H6<Hamlet.BUTTON<T>> h6()
          Add an H6 element.
 Hamlet.BUTTON<T> h6(String cdata)
          Add a complete H6 element.
 Hamlet.BUTTON<T> h6(String selector, String cdata)
          Add a complete H6 element.
 Hamlet.HR<Hamlet.BUTTON<T>> hr()
          Add a HR (horizontal rule) element.
 Hamlet.BUTTON<T> hr(String selector)
          Add a HR element.
 Hamlet.I<Hamlet.BUTTON<T>> i()
          Add an I (italic, alt voice/mood) element.
 Hamlet.BUTTON<T> i(String cdata)
          Add a complete I (italic, alt voice/mood) element.
 Hamlet.BUTTON<T> i(String selector, String cdata)
          Add a complete I (italic, alt voice/mood) element.
 Hamlet.IMG<Hamlet.BUTTON<T>> img()
          Add a IMG (image) element.
 Hamlet.BUTTON<T> img(String src)
          Add a IMG (image) element.
 Hamlet.INS<Hamlet.BUTTON<T>> ins()
          Add an INS (insert) element.
 Hamlet.BUTTON<T> ins(String cdata)
          Add a complete INS element.
 Hamlet.KBD<Hamlet.BUTTON<T>> kbd()
          Add a KBD (keyboard) element.
 Hamlet.BUTTON<T> kbd(String cdata)
          Add a KBD (keyboard) element.
 Hamlet.BUTTON<T> kbd(String selector, String cdata)
          Add a KBD (keyboard) element.
 Hamlet.MAP<Hamlet.BUTTON<T>> map()
          Add a MAP element.
 Hamlet.MAP<Hamlet.BUTTON<T>> map(String selector)
          Add a MAP element.
 Hamlet.OBJECT<Hamlet.BUTTON<T>> object()
          Add an object element.
 Hamlet.OBJECT<Hamlet.BUTTON<T>> object(String selector)
          Add an object element.
 Hamlet.OL<Hamlet.BUTTON<T>> ol()
          Add a OL (ordered list) element.
 Hamlet.OL<Hamlet.BUTTON<T>> ol(String selector)
          Add a OL (ordered list) element.
 Hamlet.P<Hamlet.BUTTON<T>> p()
          Add a P (paragraph) element.
 Hamlet.P<Hamlet.BUTTON<T>> p(String selector)
          Add a P (paragraph) element.
 Hamlet.PRE<Hamlet.BUTTON<T>> pre()
          Add a PRE (preformatted) element.
 Hamlet.PRE<Hamlet.BUTTON<T>> pre(String selector)
          Add a PRE (preformatted) element.
 Hamlet.Q<Hamlet.BUTTON<T>> q()
          Add a Q (inline quotation) element.
 Hamlet.BUTTON<T> q(String cdata)
          Add a complete Q element.
 Hamlet.BUTTON<T> q(String selector, String cdata)
          Add a Q element.
 Hamlet.SAMP<Hamlet.BUTTON<T>> samp()
          Add a SAMP (sample) element.
 Hamlet.BUTTON<T> samp(String cdata)
          Add a complete SAMP (sample) element.
 Hamlet.BUTTON<T> samp(String selector, String cdata)
          Add a complete SAMP (sample) element.
 Hamlet.SCRIPT<Hamlet.BUTTON<T>> script()
          Add a script element.
 Hamlet.BUTTON<T> script(String src)
          Add a script element
 Hamlet.SMALL<Hamlet.BUTTON<T>> small()
          Add a SMALL (small print) element
 Hamlet.BUTTON<T> small(String cdata)
          Add a complete small (small print) element.
 Hamlet.BUTTON<T> small(String selector, String cdata)
          Add a complete small (small print) element.
 Hamlet.SPAN<Hamlet.BUTTON<T>> span()
          Add a SPAN element.
 Hamlet.BUTTON<T> span(String cdata)
          Add a SPAN element.
 Hamlet.BUTTON<T> span(String selector, String cdata)
          Add a SPAN element.
 Hamlet.STRONG<Hamlet.BUTTON<T>> strong()
          Add a STRONG (important) element.
 Hamlet.BUTTON<T> strong(String cdata)
          Add a complete STRONG (important) element.
 Hamlet.BUTTON<T> strong(String selector, String cdata)
          Add a complete STRONG (important) element.
 Hamlet.SUB<Hamlet.BUTTON<T>> sub()
          Add a SUB (subscript) element.
 Hamlet.BUTTON<T> sub(String cdata)
          Add a complete SUB (subscript) element.
 Hamlet.BUTTON<T> sub(String selector, String cdata)
          Add a complete SUB (subscript) element.
 Hamlet.SUP<Hamlet.BUTTON<T>> sup()
          Add a SUP (superscript) element.
 Hamlet.BUTTON<T> sup(String cdata)
          Add a SUP (superscript) element.
 Hamlet.BUTTON<T> sup(String selector, String cdata)
          Add a SUP (superscript) element.
 Hamlet.TABLE<Hamlet.BUTTON<T>> table()
          Add a TABLE element.
 Hamlet.TABLE<Hamlet.BUTTON<T>> table(String selector)
          Add a TABLE element.
 Hamlet.UL<Hamlet.BUTTON<T>> ul()
          Add a UL (unordered list) element.
 Hamlet.UL<Hamlet.BUTTON<T>> ul(String selector)
          Add a UL (unordered list) element.
 Hamlet.VAR<Hamlet.BUTTON<T>> var()
          Add a VAR (variable) element.
 Hamlet.BUTTON<T> var(String cdata)
          Add a VAR (variable) element.
 Hamlet.BUTTON<T> var(String selector, String cdata)
          Add a VAR (variable) element.
 
Methods inherited from class org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EImp
_, _endTag, _inline, _p, _pre, _v, addAttr, addAttr, addMediaAttr, addRelAttr, closeAttrs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.yarn.webapp.hamlet.HamletSpec._Child
_
 

Constructor Detail

Hamlet.BUTTON

public Hamlet.BUTTON(String name,
                     T parent,
                     EnumSet<HamletImpl.EOpt> opts)
Method Detail

$type

public Hamlet.BUTTON<T> $type(HamletSpec.ButtonType value)
Description copied from interface: HamletSpec.BUTTON
for use as form button

Specified by:
$type in interface HamletSpec.BUTTON
Returns:
the current element builder

$name

public Hamlet.BUTTON<T> $name(String value)
Description copied from interface: HamletSpec.BUTTON
name of the value

Specified by:
$name in interface HamletSpec.BUTTON
Returns:
the current element builder

$value

public Hamlet.BUTTON<T> $value(String value)
Description copied from interface: HamletSpec.BUTTON
sent to server when submitted

Specified by:
$value in interface HamletSpec.BUTTON
Returns:
the current element builder

$disabled

public Hamlet.BUTTON<T> $disabled()
Description copied from interface: HamletSpec.BUTTON
unavailable in this context

Specified by:
$disabled in interface HamletSpec.BUTTON
Returns:
the current element builder

$tabindex

public Hamlet.BUTTON<T> $tabindex(int value)
Description copied from interface: HamletSpec.BUTTON
position in tabbing order

Specified by:
$tabindex in interface HamletSpec.BUTTON
Returns:
the current element builder

$accesskey

public Hamlet.BUTTON<T> $accesskey(String value)
Description copied from interface: HamletSpec.BUTTON
accessibility key character

Specified by:
$accesskey in interface HamletSpec.BUTTON
Returns:
the current element builder

$onfocus

public Hamlet.BUTTON<T> $onfocus(String value)
Description copied from interface: HamletSpec.BUTTON
the element got the focus

Specified by:
$onfocus in interface HamletSpec.BUTTON
Returns:
the current element builder

$onblur

public Hamlet.BUTTON<T> $onblur(String value)
Description copied from interface: HamletSpec.BUTTON
the element lost the focus

Specified by:
$onblur in interface HamletSpec.BUTTON
Returns:
the current element builder

table

public Hamlet.TABLE<Hamlet.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T> _(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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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.BUTTON<T>> 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

_

public Hamlet.BUTTON<T> _(Object... lines)
Description copied from interface: HamletSpec._Content
Content of the element

Specified by:
_ in interface HamletSpec._Content
Parameters:
lines - of content
Returns:
the current element builder

_r

public Hamlet.BUTTON<T> _r(Object... lines)
Description copied from interface: HamletSpec._RawContent
Raw (no need to be HTML escaped) content

Specified by:
_r in interface HamletSpec._RawContent
Parameters:
lines - of content
Returns:
the current element builder

b

public Hamlet.B<Hamlet.BUTTON<T>> b()
Description copied from interface: HamletSpec._FontStyle
Add a new B (bold/important) element.

Specified by:
b in interface HamletSpec._FontStyle
Returns:
a new B element builder

b

public Hamlet.BUTTON<T> b(String cdata)
Description copied from interface: HamletSpec._FontStyle
Add a complete B (bold/important) element.

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

b

public Hamlet.BUTTON<T> b(String selector,
                          String cdata)
Description copied from interface: HamletSpec._FontStyle
Add a complete B (bold/important) element.

Specified by:
b in interface HamletSpec._FontStyle
Parameters:
selector - the css select (#id)?(.class)*
cdata - the content
Returns:
the current element builder

i

public Hamlet.I<Hamlet.BUTTON<T>> i()
Description copied from interface: HamletSpec._FontStyle
Add an I (italic, alt voice/mood) element.

Specified by:
i in interface HamletSpec._FontStyle
Returns:
the new I element builder

i

public Hamlet.BUTTON<T> i(String cdata)
Description copied from interface: HamletSpec._FontStyle
Add a complete I (italic, alt voice/mood) element.

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

i

public Hamlet.BUTTON<T> i(String selector,
                          String cdata)
Description copied from interface: HamletSpec._FontStyle
Add a complete I (italic, alt voice/mood) element.

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

small

public Hamlet.SMALL<Hamlet.BUTTON<T>> small()
Description copied from interface: HamletSpec._FontSize
Add a SMALL (small print) element

Specified by:
small in interface HamletSpec._FontSize
Returns:
a new SMALL element builder

small

public Hamlet.BUTTON<T> small(String cdata)
Description copied from interface: HamletSpec._FontSize
Add a complete small (small print) element. Shortcut of: small()._(cdata)._();

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

small

public Hamlet.BUTTON<T> small(String selector,
                              String cdata)
Description copied from interface: HamletSpec._FontSize
Add a complete small (small print) element. Shortcut of: small().$id(id).$class(class)._(cdata)._();

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

em

public Hamlet.BUTTON<T> em(String cdata)
Description copied from interface: HamletSpec.Phrase
Add an EM (emphasized) element.

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

em

public Hamlet.EM<Hamlet.BUTTON<T>> em()
Description copied from interface: HamletSpec.Phrase
Add an EM (emphasized) element.

Specified by:
em in interface HamletSpec.Phrase
Returns:
a new EM element builder

em

public Hamlet.BUTTON<T> em(String selector,
                           String cdata)
Description copied from interface: HamletSpec.Phrase
Add an EM (emphasized) element.

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

strong

public Hamlet.STRONG<Hamlet.BUTTON<T>> strong()
Description copied from interface: HamletSpec.Phrase
Add a STRONG (important) element.

Specified by:
strong in interface HamletSpec.Phrase
Returns:
a new STRONG element builder

strong

public Hamlet.BUTTON<T> strong(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete STRONG (important) element.

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

strong

public Hamlet.BUTTON<T> strong(String selector,
                               String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete STRONG (important) element.

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

dfn

public Hamlet.DFN<Hamlet.BUTTON<T>> dfn()
Description copied from interface: HamletSpec.Phrase
Add a DFN element.

Specified by:
dfn in interface HamletSpec.Phrase
Returns:
a new DFN element builder

dfn

public Hamlet.BUTTON<T> dfn(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete DFN element.

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

dfn

public Hamlet.BUTTON<T> dfn(String selector,
                            String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete DFN element.

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

code

public Hamlet.CODE<Hamlet.BUTTON<T>> code()
Description copied from interface: HamletSpec.Phrase
Add a CODE (code fragment) element.

Specified by:
code in interface HamletSpec.Phrase
Returns:
a new CODE element builder

code

public Hamlet.BUTTON<T> code(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete CODE element.

Specified by:
code in interface HamletSpec.Phrase
Parameters:
cdata - the code
Returns:
the current element builder

code

public Hamlet.BUTTON<T> code(String selector,
                             String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete CODE element.

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

samp

public Hamlet.BUTTON<T> samp(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete SAMP (sample) element.

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

samp

public Hamlet.SAMP<Hamlet.BUTTON<T>> samp()
Description copied from interface: HamletSpec.Phrase
Add a SAMP (sample) element.

Specified by:
samp in interface HamletSpec.Phrase
Returns:
a new SAMP element builder

samp

public Hamlet.BUTTON<T> samp(String selector,
                             String cdata)
Description copied from interface: HamletSpec.Phrase
Add a complete SAMP (sample) element.

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

kbd

public Hamlet.KBD<Hamlet.BUTTON<T>> kbd()
Description copied from interface: HamletSpec.Phrase
Add a KBD (keyboard) element.

Specified by:
kbd in interface HamletSpec.Phrase
Returns:
a new KBD element builder

kbd

public Hamlet.BUTTON<T> kbd(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a KBD (keyboard) element.

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

kbd

public Hamlet.BUTTON<T> kbd(String selector,
                            String cdata)
Description copied from interface: HamletSpec.Phrase
Add a KBD (keyboard) element.

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

var

public Hamlet.VAR<Hamlet.BUTTON<T>> var()
Description copied from interface: HamletSpec.Phrase
Add a VAR (variable) element.

Specified by:
var in interface HamletSpec.Phrase
Returns:
a new VAR element builder

var

public Hamlet.BUTTON<T> var(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a VAR (variable) element.

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

var

public Hamlet.BUTTON<T> var(String selector,
                            String cdata)
Description copied from interface: HamletSpec.Phrase
Add a VAR (variable) element.

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

cite

public Hamlet.CITE<Hamlet.BUTTON<T>> cite()
Description copied from interface: HamletSpec.Phrase
Add a CITE element.

Specified by:
cite in interface HamletSpec.Phrase
Returns:
a new CITE element builder

cite

public Hamlet.BUTTON<T> cite(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a CITE element.

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

cite

public Hamlet.BUTTON<T> cite(String selector,
                             String cdata)
Description copied from interface: HamletSpec.Phrase
Add a CITE element.

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

abbr

public Hamlet.ABBR<Hamlet.BUTTON<T>> abbr()
Description copied from interface: HamletSpec.Phrase
Add an ABBR (abbreviation) element.

Specified by:
abbr in interface HamletSpec.Phrase
Returns:
a new ABBR element builder

abbr

public Hamlet.BUTTON<T> abbr(String cdata)
Description copied from interface: HamletSpec.Phrase
Add a ABBR (abbreviation) element.

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

abbr

public Hamlet.BUTTON<T> abbr(String selector,
                             String cdata)
Description copied from interface: HamletSpec.Phrase
Add a ABBR (abbreviation) element.

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

map

public Hamlet.MAP<Hamlet.BUTTON<T>> map()
Description copied from interface: HamletSpec._Special
Add a MAP element.

Specified by:
map in interface HamletSpec._Special
Returns:
a new MAP element builder

map

public Hamlet.MAP<Hamlet.BUTTON<T>> map(String selector)
Description copied from interface: HamletSpec._Special
Add a MAP element.

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

q

public Hamlet.BUTTON<T> q(String cdata)
Description copied from interface: HamletSpec._Special
Add a complete Q element.

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

q

public Hamlet.BUTTON<T> q(String selector,
                          String cdata)
Description copied from interface: HamletSpec._Special
Add a Q element.

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

q

public Hamlet.Q<Hamlet.BUTTON<T>> q()
Description copied from interface: HamletSpec._Special
Add a Q (inline quotation) element.

Specified by:
q in interface HamletSpec._Special
Returns:
a q (inline quotation) element builder

br

public Hamlet.BR<Hamlet.BUTTON<T>> br()
Description copied from interface: HamletSpec._Special
Add a BR (line break) element.

Specified by:
br in interface HamletSpec._Special
Returns:
a new BR element builder

br

public Hamlet.BUTTON<T> br(String selector)
Description copied from interface: HamletSpec._Special
Add a BR (line break) element.

Specified by:
br in interface HamletSpec._Special
Parameters:
selector - the css selector in the form of (#id)*(.class)*
Returns:
the current element builder

bdo

public Hamlet.BDO<Hamlet.BUTTON<T>> bdo()
Description copied from interface: HamletSpec._Special
Add a bdo (bidirectional override) element

Specified by:
bdo in interface HamletSpec._Special
Returns:
a bdo element builder

bdo

public Hamlet.BUTTON<T> bdo(HamletSpec.Dir dir,
                            String cdata)
Description copied from interface: HamletSpec._Special
Add a bdo (bidirectional override) element

Specified by:
bdo in interface HamletSpec._Special
Parameters:
dir - the direction of the text
cdata - the text
Returns:
the current element builder

span

public Hamlet.SPAN<Hamlet.BUTTON<T>> span()
Description copied from interface: HamletSpec._Special
Add a SPAN element.

Specified by:
span in interface HamletSpec._Special
Returns:
a new SPAN element builder

span

public Hamlet.BUTTON<T> span(String cdata)
Description copied from interface: HamletSpec._Special
Add a SPAN element.

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

span

public Hamlet.BUTTON<T> span(String selector,
                             String cdata)
Description copied from interface: HamletSpec._Special
Add a SPAN element.

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

script

public Hamlet.SCRIPT<Hamlet.BUTTON<T>> 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.BUTTON<T> 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

ins

public Hamlet.INS<Hamlet.BUTTON<T>> 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.BUTTON<T> 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.BUTTON<T>> 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.BUTTON<T> 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

img

public Hamlet.IMG<Hamlet.BUTTON<T>> img()
Description copied from interface: HamletSpec._ImgObject
Add a IMG (image) element.

Specified by:
img in interface HamletSpec._ImgObject
Returns:
a new IMG element builder

img

public Hamlet.BUTTON<T> img(String src)
Description copied from interface: HamletSpec._ImgObject
Add a IMG (image) element.

Specified by:
img in interface HamletSpec._ImgObject
Parameters:
src - the source URL of the image
Returns:
the current element builder

object

public Hamlet.OBJECT<Hamlet.BUTTON<T>> 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.BUTTON<T>> 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

sub

public Hamlet.SUB<Hamlet.BUTTON<T>> sub()
Description copied from interface: HamletSpec._SubSup
Add a SUB (subscript) element.

Specified by:
sub in interface HamletSpec._SubSup
Returns:
a new SUB element builder

sub

public Hamlet.BUTTON<T> sub(String cdata)
Description copied from interface: HamletSpec._SubSup
Add a complete SUB (subscript) element.

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

sub

public Hamlet.BUTTON<T> sub(String selector,
                            String cdata)
Description copied from interface: HamletSpec._SubSup
Add a complete SUB (subscript) element.

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

sup

public Hamlet.SUP<Hamlet.BUTTON<T>> sup()
Description copied from interface: HamletSpec._SubSup
Add a SUP (superscript) element.

Specified by:
sup in interface HamletSpec._SubSup
Returns:
a new SUP element builder

sup

public Hamlet.BUTTON<T> sup(String cdata)
Description copied from interface: HamletSpec._SubSup
Add a SUP (superscript) element.

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

sup

public Hamlet.BUTTON<T> sup(String selector,
                            String cdata)
Description copied from interface: HamletSpec._SubSup
Add a SUP (superscript) element.

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

$id

public Hamlet.BUTTON<T> $id(String value)
Description copied from interface: HamletSpec.CoreAttrs
document-wide unique id

Specified by:
$id in interface HamletSpec.CoreAttrs
Parameters:
value - the id
Returns:
the current element builder

$class

public Hamlet.BUTTON<T> $class(String value)
Description copied from interface: HamletSpec.CoreAttrs
space-separated list of classes

Specified by:
$class in interface HamletSpec.CoreAttrs
Parameters:
value - the classes
Returns:
the current element builder

$title

public Hamlet.BUTTON<T> $title(String value)
Description copied from interface: HamletSpec.CoreAttrs
advisory title

Specified by:
$title in interface HamletSpec.CoreAttrs
Parameters:
value - the title
Returns:
the current element builder

$style

public Hamlet.BUTTON<T> $style(String value)
Description copied from interface: HamletSpec.CoreAttrs
associated style info

Specified by:
$style in interface HamletSpec.CoreAttrs
Parameters:
value - the style
Returns:
the current element builder

$lang

public Hamlet.BUTTON<T> $lang(String value)
Description copied from interface: HamletSpec.I18nAttrs
language code

Specified by:
$lang in interface HamletSpec.I18nAttrs
Parameters:
value - the code
Returns:
the current element builder

$dir

public Hamlet.BUTTON<T> $dir(HamletSpec.Dir value)
Description copied from interface: HamletSpec.I18nAttrs
direction for weak/neutral text

Specified by:
$dir in interface HamletSpec.I18nAttrs
Parameters:
value - the HamletSpec.Dir value
Returns:
the current element builder

$onclick

public Hamlet.BUTTON<T> $onclick(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer button was clicked

Specified by:
$onclick in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$ondblclick

public Hamlet.BUTTON<T> $ondblclick(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer button was double clicked

Specified by:
$ondblclick in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onmousedown

public Hamlet.BUTTON<T> $onmousedown(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer button was pressed down

Specified by:
$onmousedown in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onmouseup

public Hamlet.BUTTON<T> $onmouseup(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer button was released

Specified by:
$onmouseup in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onmouseover

public Hamlet.BUTTON<T> $onmouseover(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer was moved onto

Specified by:
$onmouseover in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onmousemove

public Hamlet.BUTTON<T> $onmousemove(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer was moved within

Specified by:
$onmousemove in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onmouseout

public Hamlet.BUTTON<T> $onmouseout(String value)
Description copied from interface: HamletSpec.EventsAttrs
a pointer was moved away

Specified by:
$onmouseout in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onkeypress

public Hamlet.BUTTON<T> $onkeypress(String value)
Description copied from interface: HamletSpec.EventsAttrs
a key was pressed and released

Specified by:
$onkeypress in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onkeydown

public Hamlet.BUTTON<T> $onkeydown(String value)
Description copied from interface: HamletSpec.EventsAttrs
a key was pressed down

Specified by:
$onkeydown in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder

$onkeyup

public Hamlet.BUTTON<T> $onkeyup(String value)
Description copied from interface: HamletSpec.EventsAttrs
a key was released

Specified by:
$onkeyup in interface HamletSpec.EventsAttrs
Parameters:
value - the script
Returns:
the current element builder


Copyright © 2014 Apache Software Foundation. All Rights Reserved.