org.apache.hadoop.yarn.webapp.hamlet
Class Hamlet.TABLE<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.TABLE<T>
All Implemented Interfaces:
HamletSpec._, HamletSpec._Child, HamletSpec._Table, HamletSpec._TableCol, HamletSpec._TableRow, HamletSpec.Attrs, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.I18nAttrs, HamletSpec.TABLE
Enclosing class:
Hamlet

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


Constructor Summary
Hamlet.TABLE(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
           
 
Method Summary
 Hamlet.TABLE<T> $class(String value)
          space-separated list of classes
 Hamlet.TABLE<T> $dir(HamletSpec.Dir value)
          direction for weak/neutral text
 Hamlet.TABLE<T> $id(String value)
          document-wide unique id
 Hamlet.TABLE<T> $lang(String value)
          language code
 Hamlet.TABLE<T> $onclick(String value)
          a pointer button was clicked
 Hamlet.TABLE<T> $ondblclick(String value)
          a pointer button was double clicked
 Hamlet.TABLE<T> $onkeydown(String value)
          a key was pressed down
 Hamlet.TABLE<T> $onkeypress(String value)
          a key was pressed and released
 Hamlet.TABLE<T> $onkeyup(String value)
          a key was released
 Hamlet.TABLE<T> $onmousedown(String value)
          a pointer button was pressed down
 Hamlet.TABLE<T> $onmousemove(String value)
          a pointer was moved within
 Hamlet.TABLE<T> $onmouseout(String value)
          a pointer was moved away
 Hamlet.TABLE<T> $onmouseover(String value)
          a pointer was moved onto
 Hamlet.TABLE<T> $onmouseup(String value)
          a pointer button was released
 Hamlet.TABLE<T> $style(String value)
          associated style info
 Hamlet.TABLE<T> $title(String value)
          advisory title
 Hamlet.CAPTION<Hamlet.TABLE<T>> caption()
          Add a CAPTION element.
 Hamlet.TABLE<T> caption(String cdata)
          Add a CAPTION element.
 Hamlet.COL<Hamlet.TABLE<T>> col()
          Add a COL element.
 Hamlet.TABLE<T> col(String selector)
          Add a COL element.
 Hamlet.COLGROUP<Hamlet.TABLE<T>> colgroup()
          Add a COLGROPU element.
 Hamlet.TBODY<Hamlet.TABLE<T>> tbody()
          Add a tbody (table body) element.
 Hamlet.TBODY<Hamlet.TABLE<T>> tbody(String selector)
          Add a TBODY element.
 Hamlet.TFOOT<Hamlet.TABLE<T>> tfoot()
          Add a TFOOT element.
 Hamlet.TFOOT<Hamlet.TABLE<T>> tfoot(String selector)
          Add a TFOOT element.
 Hamlet.THEAD<Hamlet.TABLE<T>> thead()
          Add a THEAD element.
 Hamlet.THEAD<Hamlet.TABLE<T>> thead(String selector)
          Add a THEAD element.
 Hamlet.TR<Hamlet.TABLE<T>> tr()
          Add a TR (table row) element.
 Hamlet.TR<Hamlet.TABLE<T>> tr(String selector)
          Add a TR 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.TABLE

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

$id

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

caption

public Hamlet.TABLE<T> caption(String cdata)
Description copied from interface: HamletSpec._Table
Add a CAPTION element.

Specified by:
caption in interface HamletSpec._Table
Returns:
the current element builder

caption

public Hamlet.CAPTION<Hamlet.TABLE<T>> caption()
Description copied from interface: HamletSpec._Table
Add a CAPTION element.

Specified by:
caption in interface HamletSpec._Table
Returns:
a new CAPTION element builder

colgroup

public Hamlet.COLGROUP<Hamlet.TABLE<T>> colgroup()
Description copied from interface: HamletSpec._Table
Add a COLGROPU element.

Specified by:
colgroup in interface HamletSpec._Table
Returns:
a new COLGROUP element builder

thead

public Hamlet.THEAD<Hamlet.TABLE<T>> thead(String selector)
Description copied from interface: HamletSpec._Table
Add a THEAD element.

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

thead

public Hamlet.THEAD<Hamlet.TABLE<T>> thead()
Description copied from interface: HamletSpec._Table
Add a THEAD element.

Specified by:
thead in interface HamletSpec._Table
Returns:
a new THEAD element builder

tfoot

public Hamlet.TFOOT<Hamlet.TABLE<T>> tfoot()
Description copied from interface: HamletSpec._Table
Add a TFOOT element.

Specified by:
tfoot in interface HamletSpec._Table
Returns:
a new TFOOT element builder

tfoot

public Hamlet.TFOOT<Hamlet.TABLE<T>> tfoot(String selector)
Description copied from interface: HamletSpec._Table
Add a TFOOT element.

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

tbody

public Hamlet.TBODY<Hamlet.TABLE<T>> tbody()
Description copied from interface: HamletSpec._Table
Add a tbody (table body) element. Must be after thead/tfoot and no tr at the same level.

Specified by:
tbody in interface HamletSpec._Table
Returns:
a new tbody element builder

tbody

public Hamlet.TBODY<Hamlet.TABLE<T>> tbody(String selector)
Description copied from interface: HamletSpec._Table
Add a TBODY element.

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

tr

public Hamlet.TR<Hamlet.TABLE<T>> tr()
Description copied from interface: HamletSpec._TableRow
Add a TR (table row) element.

Specified by:
tr in interface HamletSpec._TableRow
Returns:
a new TR element builder

tr

public Hamlet.TR<Hamlet.TABLE<T>> tr(String selector)
Description copied from interface: HamletSpec._TableRow
Add a TR element.

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

col

public Hamlet.COL<Hamlet.TABLE<T>> col()
Description copied from interface: HamletSpec._TableCol
Add a COL element.

Specified by:
col in interface HamletSpec._TableCol
Returns:
a new COL element builder

col

public Hamlet.TABLE<T> col(String selector)
Description copied from interface: HamletSpec._TableCol
Add a COL element.

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.