org.apache.hadoop.yarn.webapp.hamlet
Class Hamlet.A<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.A<T>
All Implemented Interfaces:
HamletSpec._, HamletSpec._Child, HamletSpec._Content, HamletSpec._FontSize, HamletSpec._FontStyle, HamletSpec._FormCtrl, HamletSpec._ImgObject, HamletSpec._InsDel, HamletSpec._Label, HamletSpec._Object, HamletSpec._RawContent, HamletSpec._Script, HamletSpec._Special, HamletSpec._SubSup, HamletSpec.A, HamletSpec.Attrs, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.FontStyle, HamletSpec.FormCtrl, HamletSpec.I18nAttrs, HamletSpec.PCData, HamletSpec.Phrase
Enclosing class:
Hamlet

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


Constructor Summary
Hamlet.A(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
           
 
Method Summary
 Hamlet.A<T> _(Object... lines)
          Content of the element
 Hamlet.A<T> _r(Object... lines)
          Raw (no need to be HTML escaped) content
 Hamlet.A<T> $accesskey(String value)
          accessibility key character
 Hamlet.A<T> $class(String value)
          space-separated list of classes
 Hamlet.A<T> $dir(HamletSpec.Dir value)
          direction for weak/neutral text
 Hamlet.A<T> $href(String value)
          URI for linked resource
 Hamlet.A<T> $hreflang(String value)
          language code
 Hamlet.A<T> $id(String value)
          document-wide unique id
 Hamlet.A<T> $lang(String value)
          language code
 Hamlet.A<T> $onblur(String value)
          the element lost the focus
 Hamlet.A<T> $onclick(String value)
          a pointer button was clicked
 Hamlet.A<T> $ondblclick(String value)
          a pointer button was double clicked
 Hamlet.A<T> $onfocus(String value)
          the element got the focus
 Hamlet.A<T> $onkeydown(String value)
          a key was pressed down
 Hamlet.A<T> $onkeypress(String value)
          a key was pressed and released
 Hamlet.A<T> $onkeyup(String value)
          a key was released
 Hamlet.A<T> $onmousedown(String value)
          a pointer button was pressed down
 Hamlet.A<T> $onmousemove(String value)
          a pointer was moved within
 Hamlet.A<T> $onmouseout(String value)
          a pointer was moved away
 Hamlet.A<T> $onmouseover(String value)
          a pointer was moved onto
 Hamlet.A<T> $onmouseup(String value)
          a pointer button was released
 Hamlet.A<T> $rel(EnumSet<HamletSpec.LinkType> value)
          forward link types
 Hamlet.A<T> $rel(String value)
          forward link types
 Hamlet.A<T> $style(String value)
          associated style info
 Hamlet.A<T> $tabindex(int value)
          position in tabbing order
 Hamlet.A<T> $title(String value)
          advisory title
 Hamlet.A<T> $type(String value)
          advisory content type
 Hamlet.ABBR<Hamlet.A<T>> abbr()
          Add an ABBR (abbreviation) element.
 Hamlet.A<T> abbr(String cdata)
          Add a ABBR (abbreviation) element.
 Hamlet.A<T> abbr(String selector, String cdata)
          Add a ABBR (abbreviation) element.
 Hamlet.B<Hamlet.A<T>> b()
          Add a new B (bold/important) element.
 Hamlet.A<T> b(String cdata)
          Add a complete B (bold/important) element.
 Hamlet.A<T> b(String selector, String cdata)
          Add a complete B (bold/important) element.
 Hamlet.BDO<Hamlet.A<T>> bdo()
          Add a bdo (bidirectional override) element
 Hamlet.A<T> bdo(HamletSpec.Dir dir, String cdata)
          Add a bdo (bidirectional override) element
 Hamlet.BR<Hamlet.A<T>> br()
          Add a BR (line break) element.
 Hamlet.A<T> br(String selector)
          Add a BR (line break) element.
 Hamlet.BUTTON<Hamlet.A<T>> button()
          Add a BUTTON element.
 Hamlet.BUTTON<Hamlet.A<T>> button(String selector)
          Add a BUTTON element.
 Hamlet.A<T> button(String selector, String cdata)
          Add a complete BUTTON element.
 Hamlet.CITE<Hamlet.A<T>> cite()
          Add a CITE element.
 Hamlet.A<T> cite(String cdata)
          Add a CITE element.
 Hamlet.A<T> cite(String selector, String cdata)
          Add a CITE element.
 Hamlet.CODE<Hamlet.A<T>> code()
          Add a CODE (code fragment) element.
 Hamlet.A<T> code(String cdata)
          Add a complete CODE element.
 Hamlet.A<T> code(String selector, String cdata)
          Add a complete CODE element.
 Hamlet.DEL<Hamlet.A<T>> del()
          Add a DEL (delete) element.
 Hamlet.A<T> del(String cdata)
          Add a complete DEL element.
 Hamlet.DFN<Hamlet.A<T>> dfn()
          Add a DFN element.
 Hamlet.A<T> dfn(String cdata)
          Add a complete DFN element.
 Hamlet.A<T> dfn(String selector, String cdata)
          Add a complete DFN element.
 Hamlet.EM<Hamlet.A<T>> em()
          Add an EM (emphasized) element.
 Hamlet.A<T> em(String cdata)
          Add an EM (emphasized) element.
 Hamlet.A<T> em(String selector, String cdata)
          Add an EM (emphasized) element.
 Hamlet.I<Hamlet.A<T>> i()
          Add an I (italic, alt voice/mood) element.
 Hamlet.A<T> i(String cdata)
          Add a complete I (italic, alt voice/mood) element.
 Hamlet.A<T> i(String selector, String cdata)
          Add a complete I (italic, alt voice/mood) element.
 Hamlet.IMG<Hamlet.A<T>> img()
          Add a IMG (image) element.
 Hamlet.A<T> img(String src)
          Add a IMG (image) element.
 Hamlet.INPUT<Hamlet.A<T>> input()
          Add a INPUT element.
 Hamlet.INPUT<Hamlet.A<T>> input(String selector)
          Add a INPUT element.
 Hamlet.INS<Hamlet.A<T>> ins()
          Add an INS (insert) element.
 Hamlet.A<T> ins(String cdata)
          Add a complete INS element.
 Hamlet.KBD<Hamlet.A<T>> kbd()
          Add a KBD (keyboard) element.
 Hamlet.A<T> kbd(String cdata)
          Add a KBD (keyboard) element.
 Hamlet.A<T> kbd(String selector, String cdata)
          Add a KBD (keyboard) element.
 Hamlet.LABEL<Hamlet.A<T>> label()
          Add a LABEL element.
 Hamlet.A<T> label(String forId, String cdata)
          Add a LABEL element.
 Hamlet.MAP<Hamlet.A<T>> map()
          Add a MAP element.
 Hamlet.MAP<Hamlet.A<T>> map(String selector)
          Add a MAP element.
 Hamlet.OBJECT<Hamlet.A<T>> object()
          Add an object element.
 Hamlet.OBJECT<Hamlet.A<T>> object(String selector)
          Add an object element.
 Hamlet.Q<Hamlet.A<T>> q()
          Add a Q (inline quotation) element.
 Hamlet.A<T> q(String cdata)
          Add a complete Q element.
 Hamlet.A<T> q(String selector, String cdata)
          Add a Q element.
 Hamlet.SAMP<Hamlet.A<T>> samp()
          Add a SAMP (sample) element.
 Hamlet.A<T> samp(String cdata)
          Add a complete SAMP (sample) element.
 Hamlet.A<T> samp(String selector, String cdata)
          Add a complete SAMP (sample) element.
 Hamlet.SCRIPT<Hamlet.A<T>> script()
          Add a script element.
 Hamlet.A<T> script(String src)
          Add a script element
 Hamlet.SELECT<Hamlet.A<T>> select()
          Add a SELECT element.
 Hamlet.SELECT<Hamlet.A<T>> select(String selector)
          Add a SELECT element.
 Hamlet.SMALL<Hamlet.A<T>> small()
          Add a SMALL (small print) element
 Hamlet.A<T> small(String cdata)
          Add a complete small (small print) element.
 Hamlet.A<T> small(String selector, String cdata)
          Add a complete small (small print) element.
 Hamlet.SPAN<Hamlet.A<T>> span()
          Add a SPAN element.
 Hamlet.A<T> span(String cdata)
          Add a SPAN element.
 Hamlet.A<T> span(String selector, String cdata)
          Add a SPAN element.
 Hamlet.STRONG<Hamlet.A<T>> strong()
          Add a STRONG (important) element.
 Hamlet.A<T> strong(String cdata)
          Add a complete STRONG (important) element.
 Hamlet.A<T> strong(String selector, String cdata)
          Add a complete STRONG (important) element.
 Hamlet.SUB<Hamlet.A<T>> sub()
          Add a SUB (subscript) element.
 Hamlet.A<T> sub(String cdata)
          Add a complete SUB (subscript) element.
 Hamlet.A<T> sub(String selector, String cdata)
          Add a complete SUB (subscript) element.
 Hamlet.SUP<Hamlet.A<T>> sup()
          Add a SUP (superscript) element.
 Hamlet.A<T> sup(String cdata)
          Add a SUP (superscript) element.
 Hamlet.A<T> sup(String selector, String cdata)
          Add a SUP (superscript) element.
 Hamlet.TEXTAREA<Hamlet.A<T>> textarea()
          Add a TEXTAREA element.
 Hamlet.TEXTAREA<Hamlet.A<T>> textarea(String selector)
          Add a TEXTAREA element.
 Hamlet.A<T> textarea(String selector, String cdata)
          Add a complete TEXTAREA element.
 Hamlet.VAR<Hamlet.A<T>> var()
          Add a VAR (variable) element.
 Hamlet.A<T> var(String cdata)
          Add a VAR (variable) element.
 Hamlet.A<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
 

Constructor Detail

Hamlet.A

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

$rel

public Hamlet.A<T> $rel(EnumSet<HamletSpec.LinkType> value)
Description copied from interface: HamletSpec.A
forward link types

Specified by:
$rel in interface HamletSpec.A
Parameters:
value - the types
Returns:
the current element builder

$rel

public Hamlet.A<T> $rel(String value)
Description copied from interface: HamletSpec.A
forward link types

Specified by:
$rel in interface HamletSpec.A
Parameters:
value - space-separated list of link types
Returns:
the current element builder.

$href

public Hamlet.A<T> $href(String value)
Description copied from interface: HamletSpec.A
URI for linked resource

Specified by:
$href in interface HamletSpec.A
Parameters:
value - the URI
Returns:
the current element builder

$type

public Hamlet.A<T> $type(String value)
Description copied from interface: HamletSpec.A
advisory content type

Specified by:
$type in interface HamletSpec.A
Parameters:
value - the content-type
Returns:
the current element builder

$tabindex

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

Specified by:
$tabindex in interface HamletSpec.A
Parameters:
value - the index
Returns:
the current element builder

$accesskey

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

Specified by:
$accesskey in interface HamletSpec.A
Parameters:
value - the key
Returns:
the current element builder

$onfocus

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

Specified by:
$onfocus in interface HamletSpec.A
Parameters:
value - to invoke
Returns:
the current element builder

$onblur

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

Specified by:
$onblur in interface HamletSpec.A
Parameters:
value - to invoke
Returns:
the current element builder

$hreflang

public Hamlet.A<T> $hreflang(String value)
Description copied from interface: HamletSpec.A
language code

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

$id

public Hamlet.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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

_

public Hamlet.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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

img

public Hamlet.IMG<Hamlet.A<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.A<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.A<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.A<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

map

public Hamlet.MAP<Hamlet.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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.A<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

sub

public Hamlet.SUB<Hamlet.A<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.A<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.A<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.A<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.A<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.A<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

label

public Hamlet.LABEL<Hamlet.A<T>> label()
Description copied from interface: HamletSpec._Label
Add a LABEL element.

Specified by:
label in interface HamletSpec._Label
Returns:
a new LABEL element builder

label

public Hamlet.A<T> label(String forId,
                         String cdata)
Description copied from interface: HamletSpec._Label
Add a LABEL element. Shortcut of label().$for(forId)._(cdata)._();

Specified by:
label in interface HamletSpec._Label
Parameters:
forId - the for attribute
cdata - the content
Returns:
the current element builder

input

public Hamlet.INPUT<Hamlet.A<T>> input(String selector)
Description copied from interface: HamletSpec._FormCtrl
Add a INPUT element.

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

input

public Hamlet.INPUT<Hamlet.A<T>> input()
Description copied from interface: HamletSpec._FormCtrl
Add a INPUT element.

Specified by:
input in interface HamletSpec._FormCtrl
Returns:
a new INPUT element builder

select

public Hamlet.SELECT<Hamlet.A<T>> select()
Description copied from interface: HamletSpec._FormCtrl
Add a SELECT element.

Specified by:
select in interface HamletSpec._FormCtrl
Returns:
a new SELECT element builder

select

public Hamlet.SELECT<Hamlet.A<T>> select(String selector)
Description copied from interface: HamletSpec._FormCtrl
Add a SELECT element.

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

textarea

public Hamlet.TEXTAREA<Hamlet.A<T>> textarea(String selector)
Description copied from interface: HamletSpec._FormCtrl
Add a TEXTAREA element.

Specified by:
textarea in interface HamletSpec._FormCtrl
Returns:
a new TEXTAREA element builder

textarea

public Hamlet.TEXTAREA<Hamlet.A<T>> textarea()
Description copied from interface: HamletSpec._FormCtrl
Add a TEXTAREA element.

Specified by:
textarea in interface HamletSpec._FormCtrl
Returns:
a new TEXTAREA element builder

textarea

public Hamlet.A<T> textarea(String selector,
                            String cdata)
Description copied from interface: HamletSpec._FormCtrl
Add a complete TEXTAREA element.

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

button

public Hamlet.BUTTON<Hamlet.A<T>> button()
Description copied from interface: HamletSpec._FormCtrl
Add a BUTTON element.

Specified by:
button in interface HamletSpec._FormCtrl
Returns:
a new BUTTON element builder

button

public Hamlet.BUTTON<Hamlet.A<T>> button(String selector)
Description copied from interface: HamletSpec._FormCtrl
Add a BUTTON element.

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

button

public Hamlet.A<T> button(String selector,
                          String cdata)
Description copied from interface: HamletSpec._FormCtrl
Add a complete BUTTON element.

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.