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

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


Constructor Summary
Hamlet.INPUT(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
           
 
Method Summary
 Hamlet.INPUT<T> $accept(String value)
          list of MIME types for file upload (csv)
 Hamlet.INPUT<T> $accesskey(String value)
          accessibility key character
 Hamlet.INPUT<T> $alt(String value)
          short description
 Hamlet.INPUT<T> $checked()
          for radio buttons and check boxes
 Hamlet.INPUT<T> $class(String value)
          space-separated list of classes
 Hamlet.INPUT<T> $dir(HamletSpec.Dir value)
          direction for weak/neutral text
 Hamlet.INPUT<T> $disabled()
          unavailable in this context
 Hamlet.INPUT<T> $id(String value)
          document-wide unique id
 Hamlet.INPUT<T> $ismap()
          use server-side image map
 Hamlet.INPUT<T> $lang(String value)
          language code
 Hamlet.INPUT<T> $maxlength(int value)
          max chars for text fields
 Hamlet.INPUT<T> $name(String value)
          submit as part of form
 Hamlet.INPUT<T> $onblur(String value)
          the element lost the focus
 Hamlet.INPUT<T> $onchange(String value)
          the element value was changed
 Hamlet.INPUT<T> $onclick(String value)
          a pointer button was clicked
 Hamlet.INPUT<T> $ondblclick(String value)
          a pointer button was double clicked
 Hamlet.INPUT<T> $onfocus(String value)
          the element got the focus
 Hamlet.INPUT<T> $onkeydown(String value)
          a key was pressed down
 Hamlet.INPUT<T> $onkeypress(String value)
          a key was pressed and released
 Hamlet.INPUT<T> $onkeyup(String value)
          a key was released
 Hamlet.INPUT<T> $onmousedown(String value)
          a pointer button was pressed down
 Hamlet.INPUT<T> $onmousemove(String value)
          a pointer was moved within
 Hamlet.INPUT<T> $onmouseout(String value)
          a pointer was moved away
 Hamlet.INPUT<T> $onmouseover(String value)
          a pointer was moved onto
 Hamlet.INPUT<T> $onmouseup(String value)
          a pointer button was released
 Hamlet.INPUT<T> $onselect(String value)
          some text was selected
 Hamlet.INPUT<T> $readonly()
          for text and passwd
 Hamlet.INPUT<T> $size(String value)
          specific to each type of field
 Hamlet.INPUT<T> $src(String value)
          for fields with images
 Hamlet.INPUT<T> $style(String value)
          associated style info
 Hamlet.INPUT<T> $tabindex(int value)
          position in tabbing order
 Hamlet.INPUT<T> $title(String value)
          advisory title
 Hamlet.INPUT<T> $type(HamletSpec.InputType value)
          what kind of widget is needed.
 Hamlet.INPUT<T> $value(String value)
          Specify for radio buttons and checkboxes
 
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.INPUT

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

$type

public Hamlet.INPUT<T> $type(HamletSpec.InputType value)
Description copied from interface: HamletSpec.INPUT
what kind of widget is needed. default is "text".

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

$src

public Hamlet.INPUT<T> $src(String value)
Description copied from interface: HamletSpec.INPUT
for fields with images

Specified by:
$src in interface HamletSpec.INPUT
Returns:
the current element builder

$name

public Hamlet.INPUT<T> $name(String value)
Description copied from interface: HamletSpec.INPUT
submit as part of form

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

$value

public Hamlet.INPUT<T> $value(String value)
Description copied from interface: HamletSpec.INPUT
Specify for radio buttons and checkboxes

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

$disabled

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

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

$tabindex

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

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

$accesskey

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

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

$onfocus

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

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

$onblur

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

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

$readonly

public Hamlet.INPUT<T> $readonly()
Description copied from interface: HamletSpec.INPUT
for text and passwd

Specified by:
$readonly in interface HamletSpec.INPUT
Returns:
the current element builder

$onselect

public Hamlet.INPUT<T> $onselect(String value)
Description copied from interface: HamletSpec.INPUT
some text was selected

Specified by:
$onselect in interface HamletSpec.INPUT
Returns:
the current element builder

$onchange

public Hamlet.INPUT<T> $onchange(String value)
Description copied from interface: HamletSpec.INPUT
the element value was changed

Specified by:
$onchange in interface HamletSpec.INPUT
Returns:
the current element builder

$size

public Hamlet.INPUT<T> $size(String value)
Description copied from interface: HamletSpec.INPUT
specific to each type of field

Specified by:
$size in interface HamletSpec.INPUT
Returns:
the current element builder

$checked

public Hamlet.INPUT<T> $checked()
Description copied from interface: HamletSpec.INPUT
for radio buttons and check boxes

Specified by:
$checked in interface HamletSpec.INPUT
Returns:
the current element builder

$maxlength

public Hamlet.INPUT<T> $maxlength(int value)
Description copied from interface: HamletSpec.INPUT
max chars for text fields

Specified by:
$maxlength in interface HamletSpec.INPUT
Returns:
the current element builder

$alt

public Hamlet.INPUT<T> $alt(String value)
Description copied from interface: HamletSpec.INPUT
short description

Specified by:
$alt in interface HamletSpec.INPUT
Returns:
the current element builder

$ismap

public Hamlet.INPUT<T> $ismap()
Description copied from interface: HamletSpec.INPUT
use server-side image map

Specified by:
$ismap in interface HamletSpec.INPUT
Returns:
the current element builder

$accept

public Hamlet.INPUT<T> $accept(String value)
Description copied from interface: HamletSpec.INPUT
list of MIME types for file upload (csv)

Specified by:
$accept in interface HamletSpec.INPUT
Returns:
the current element builder

$id

public Hamlet.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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.INPUT<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 © 2012 Apache Software Foundation. All Rights Reserved.