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

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


Constructor Summary
Hamlet.OPTION(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
           
 
Method Summary
 Hamlet.OPTION<T> _(Object... lines)
          Content of the element
 Hamlet.OPTION<T> _r(Object... lines)
          Raw (no need to be HTML escaped) content
 Hamlet.OPTION<T> $class(String value)
          space-separated list of classes
 Hamlet.OPTION<T> $dir(HamletSpec.Dir value)
          direction for weak/neutral text
 Hamlet.OPTION<T> $disabled()
          unavailable in this context
 Hamlet.OPTION<T> $id(String value)
          document-wide unique id
 Hamlet.OPTION<T> $label(String value)
          for use in hierarchical menus
 Hamlet.OPTION<T> $lang(String value)
          language code
 Hamlet.OPTION<T> $onclick(String value)
          a pointer button was clicked
 Hamlet.OPTION<T> $ondblclick(String value)
          a pointer button was double clicked
 Hamlet.OPTION<T> $onkeydown(String value)
          a key was pressed down
 Hamlet.OPTION<T> $onkeypress(String value)
          a key was pressed and released
 Hamlet.OPTION<T> $onkeyup(String value)
          a key was released
 Hamlet.OPTION<T> $onmousedown(String value)
          a pointer button was pressed down
 Hamlet.OPTION<T> $onmousemove(String value)
          a pointer was moved within
 Hamlet.OPTION<T> $onmouseout(String value)
          a pointer was moved away
 Hamlet.OPTION<T> $onmouseover(String value)
          a pointer was moved onto
 Hamlet.OPTION<T> $onmouseup(String value)
          a pointer button was released
 Hamlet.OPTION<T> $selected()
          currently selected option
 Hamlet.OPTION<T> $style(String value)
          associated style info
 Hamlet.OPTION<T> $title(String value)
          advisory title
 Hamlet.OPTION<T> $value(String value)
          defaults to element content
 
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.OPTION

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

$value

public Hamlet.OPTION<T> $value(String value)
Description copied from interface: HamletSpec.OPTION
defaults to element content

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

$disabled

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

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

$selected

public Hamlet.OPTION<T> $selected()
Description copied from interface: HamletSpec.OPTION
currently selected option

Specified by:
$selected in interface HamletSpec.OPTION
Returns:
the current element builder

$label

public Hamlet.OPTION<T> $label(String value)
Description copied from interface: HamletSpec.OPTION
for use in hierarchical menus

Specified by:
$label in interface HamletSpec.OPTION
Returns:
the current element builder

$id

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.