Class Hamlet.FORM<T extends HamletSpec.__>
java.lang.Object
org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl.EImp<T>
org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.FORM<T>
- All Implemented Interfaces:
HamletSpec.__,HamletSpec._Block,HamletSpec._Child,HamletSpec._FieldSet,HamletSpec._Script,HamletSpec.Attrs,HamletSpec.CoreAttrs,HamletSpec.EventsAttrs,HamletSpec.FORM,HamletSpec.Heading,HamletSpec.I18nAttrs,HamletSpec.Listing,HamletSpec.Preformatted
- Enclosing class:
- Hamlet
public class Hamlet.FORM<T extends HamletSpec.__>
extends HamletImpl.EImp<T>
implements HamletSpec.FORM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEmbed a sub-view.list of MIME types for file upload$accept_charset(String value) (space and/or comma separated) list of supported charsetsserver-side form handlerspace-separated list of classes$dir(HamletSpec.Dir value) direction for weak/neutral textcontentype for "POST" method.document-wide unique idlanguage code$method(HamletSpec.Method value) HTTP method used to submit the formname of form for scriptinga pointer button was clicked$ondblclick(String value) a pointer button was double clicked$onkeydown(String value) a key was pressed down$onkeypress(String value) a key was pressed and releaseda key was released$onmousedown(String value) a pointer button was pressed down$onmousemove(String value) a pointer was moved within$onmouseout(String value) a pointer was moved away$onmouseover(String value) a pointer was moved onto$onmouseup(String value) a pointer button was releasedthe form was resetthe form was submittedassociated style infoadvisory titleaddress()Add a ADDRESS element.Add a complete ADDRESS element.Add a BLOCKQUOTE element.bq()Alias of blockquotediv()Add a DIV element.Add a DIV element.dl()Add a DL (description list) element.Add a DL element.fieldset()Add a FIELDSET element.Add a FIELDSET element.h1()Add an H1 element.Add a complete H1 element.Add a complete H1 elementh2()Add an H2 element.Add a complete H2 element.Add a complete H1 elementh3()Add an H3 element.Add a complete H3 element.Add a complete H1 elementh4()Add an H4 element.Add a complete H4 element.Add a complete H4 elementh5()Add an H5 element.Add a complete H5 element.Add a complete H5 elementh6()Add an H6 element.Add a complete H6 element.Add a complete H6 element.hr()Add a HR (horizontal rule) element.Add a HR element.ol()Add a OL (ordered list) element.Add a OL (ordered list) element.p()Add a P (paragraph) element.Add a P (paragraph) element.pre()Add a PRE (preformatted) element.Add a PRE (preformatted) element.script()Add a script element.Add a script elementtable()Add a TABLE element.Add a TABLE element.ul()Add a UL (unordered list) element.Add a UL (unordered list) element.Methods inherited from class org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl.EImp
__, _endTag, _inline, _p, _pre, _v, addAttr, addAttr, addMediaAttr, addRelAttr, closeAttrsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec._Child
__
-
Constructor Details
-
FORM
-
-
Method Details
-
$name
Description copied from interface:HamletSpec.FORMname of form for scripting- Specified by:
$namein interfaceHamletSpec.FORM- Parameters:
value- the content of the element.- Returns:
- the current element builder
-
$accept
Description copied from interface:HamletSpec.FORMlist of MIME types for file upload- Specified by:
$acceptin interfaceHamletSpec.FORM- Parameters:
value- the content of the element.- Returns:
- the current element builder
-
$action
Description copied from interface:HamletSpec.FORMserver-side form handler- Specified by:
$actionin interfaceHamletSpec.FORM- Parameters:
value- the URI.- Returns:
- the current element builder
-
$method
Description copied from interface:HamletSpec.FORMHTTP method used to submit the form- Specified by:
$methodin interfaceHamletSpec.FORM- Parameters:
value- method.- Returns:
- the current element builder
-
$enctype
Description copied from interface:HamletSpec.FORMcontentype for "POST" method. The default is "application/x-www-form-urlencoded". Use "multipart/form-data" for input type=file- Specified by:
$enctypein interfaceHamletSpec.FORM- Parameters:
value- enctype.- Returns:
- the current element builder
-
$onsubmit
Description copied from interface:HamletSpec.FORMthe form was submitted- Specified by:
$onsubmitin interfaceHamletSpec.FORM- Parameters:
value- to invoke.- Returns:
- the current element builder
-
$onreset
Description copied from interface:HamletSpec.FORMthe form was reset- Specified by:
$onresetin interfaceHamletSpec.FORM- Parameters:
value- to invoke.- Returns:
- the current element builder
-
$accept_charset
Description copied from interface:HamletSpec.FORM(space and/or comma separated) list of supported charsets- Specified by:
$accept_charsetin interfaceHamletSpec.FORM- Parameters:
value- the content of the element.- Returns:
- the current element builder
-
$id
Description copied from interface:HamletSpec.CoreAttrsdocument-wide unique id- Specified by:
$idin interfaceHamletSpec.CoreAttrs- Parameters:
value- the id- Returns:
- the current element builder
-
$class
Description copied from interface:HamletSpec.CoreAttrsspace-separated list of classes- Specified by:
$classin interfaceHamletSpec.CoreAttrs- Parameters:
value- the classes- Returns:
- the current element builder
-
$title
Description copied from interface:HamletSpec.CoreAttrsadvisory title- Specified by:
$titlein interfaceHamletSpec.CoreAttrs- Parameters:
value- the title- Returns:
- the current element builder
-
$style
Description copied from interface:HamletSpec.CoreAttrsassociated style info- Specified by:
$stylein interfaceHamletSpec.CoreAttrs- Parameters:
value- the style- Returns:
- the current element builder
-
$lang
Description copied from interface:HamletSpec.I18nAttrslanguage code- Specified by:
$langin interfaceHamletSpec.I18nAttrs- Parameters:
value- the code- Returns:
- the current element builder
-
$dir
Description copied from interface:HamletSpec.I18nAttrsdirection for weak/neutral text- Specified by:
$dirin interfaceHamletSpec.I18nAttrs- Parameters:
value- theHamletSpec.Dirvalue- Returns:
- the current element builder
-
$onclick
Description copied from interface:HamletSpec.EventsAttrsa pointer button was clicked- Specified by:
$onclickin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$ondblclick
Description copied from interface:HamletSpec.EventsAttrsa pointer button was double clicked- Specified by:
$ondblclickin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onmousedown
Description copied from interface:HamletSpec.EventsAttrsa pointer button was pressed down- Specified by:
$onmousedownin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onmouseup
Description copied from interface:HamletSpec.EventsAttrsa pointer button was released- Specified by:
$onmouseupin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onmouseover
Description copied from interface:HamletSpec.EventsAttrsa pointer was moved onto- Specified by:
$onmouseoverin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onmousemove
Description copied from interface:HamletSpec.EventsAttrsa pointer was moved within- Specified by:
$onmousemovein interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onmouseout
Description copied from interface:HamletSpec.EventsAttrsa pointer was moved away- Specified by:
$onmouseoutin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onkeypress
Description copied from interface:HamletSpec.EventsAttrsa key was pressed and released- Specified by:
$onkeypressin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onkeydown
Description copied from interface:HamletSpec.EventsAttrsa key was pressed down- Specified by:
$onkeydownin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
$onkeyup
Description copied from interface:HamletSpec.EventsAttrsa key was released- Specified by:
$onkeyupin interfaceHamletSpec.EventsAttrs- Parameters:
value- the script- Returns:
- the current element builder
-
script
Description copied from interface:HamletSpec._ScriptAdd a script element.- Specified by:
scriptin interfaceHamletSpec._Script- Returns:
- a script element builder
-
script
Description copied from interface:HamletSpec._ScriptAdd a script element- Specified by:
scriptin interfaceHamletSpec._Script- Parameters:
src- uri of the script- Returns:
- the current element builder
-
table
Description copied from interface:HamletSpec._BlockAdd a TABLE element.- Specified by:
tablein interfaceHamletSpec._Block- Returns:
- a new TABLE element builder
-
table
Description copied from interface:HamletSpec._BlockAdd a TABLE element.- Specified by:
tablein interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new TABLE element builder
-
address
Description copied from interface:HamletSpec._BlockAdd a complete ADDRESS element.- Specified by:
addressin interfaceHamletSpec._Block- Parameters:
cdata- the content- Returns:
- the current element builder
-
address
Description copied from interface:HamletSpec._BlockAdd a ADDRESS element.- Specified by:
addressin interfaceHamletSpec._Block- Returns:
- a new ADDRESS element builder
-
p
Description copied from interface:HamletSpec._BlockAdd a P (paragraph) element.- Specified by:
pin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new P element builder
-
p
Description copied from interface:HamletSpec._BlockAdd a P (paragraph) element.- Specified by:
pin interfaceHamletSpec._Block- Returns:
- a new P element builder
-
__
Description copied from interface:HamletSpec._BlockEmbed a sub-view.- Specified by:
__in interfaceHamletSpec._Block- Parameters:
cls- the sub-view class- Returns:
- the current element builder
-
hr
Description copied from interface:HamletSpec._BlockAdd a HR (horizontal rule) element.- Specified by:
hrin interfaceHamletSpec._Block- Returns:
- a new HR element builder
-
hr
Description copied from interface:HamletSpec._BlockAdd a HR element.- Specified by:
hrin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new HR element builder
-
dl
Description copied from interface:HamletSpec._BlockAdd a DL element.- Specified by:
dlin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DL element builder
-
dl
Description copied from interface:HamletSpec._BlockAdd a DL (description list) element.- Specified by:
dlin interfaceHamletSpec._Block- Returns:
- a new DL element builder
-
div
Description copied from interface:HamletSpec._BlockAdd a DIV element.- Specified by:
divin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DIV element builder
-
div
Description copied from interface:HamletSpec._BlockAdd a DIV element.- Specified by:
divin interfaceHamletSpec._Block- Returns:
- a new DIV element builder
-
blockquote
Description copied from interface:HamletSpec._BlockAdd a BLOCKQUOTE element.- Specified by:
blockquotein interfaceHamletSpec._Block- Returns:
- a new BLOCKQUOTE element builder
-
bq
Description copied from interface:HamletSpec._BlockAlias of blockquote- Specified by:
bqin interfaceHamletSpec._Block- Returns:
- a new BLOCKQUOTE element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element.- Specified by:
h1in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd an H1 element.- Specified by:
h1in interfaceHamletSpec.Heading- Returns:
- a new H1 element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h1in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd a complete H2 element.- Specified by:
h2in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd an H2 element.- Specified by:
h2in interfaceHamletSpec.Heading- Returns:
- a new H2 element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h2in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd an H3 element.- Specified by:
h3in interfaceHamletSpec.Heading- Returns:
- a new H3 element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd a complete H3 element.- Specified by:
h3in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h3in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd an H4 element.- Specified by:
h4in interfaceHamletSpec.Heading- Returns:
- a new H4 element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd a complete H4 element.- Specified by:
h4in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd a complete H4 element- Specified by:
h4in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd an H5 element.- Specified by:
h5in interfaceHamletSpec.Heading- Returns:
- a new H5 element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd a complete H5 element.- Specified by:
h5in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd a complete H5 element- Specified by:
h5in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd an H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Returns:
- a new H6 element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd a complete H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd a complete H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
ul
Description copied from interface:HamletSpec.ListingAdd a UL (unordered list) element.- Specified by:
ulin interfaceHamletSpec.Listing- Returns:
- a new UL element builder
-
ul
Description copied from interface:HamletSpec.ListingAdd a UL (unordered list) element.- Specified by:
ulin interfaceHamletSpec.Listing- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new UL element builder
-
ol
Description copied from interface:HamletSpec.ListingAdd a OL (ordered list) element.- Specified by:
olin interfaceHamletSpec.Listing- Returns:
- a new UL element builder
-
ol
Description copied from interface:HamletSpec.ListingAdd a OL (ordered list) element.- Specified by:
olin interfaceHamletSpec.Listing- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new UL element builder
-
pre
Description copied from interface:HamletSpec.PreformattedAdd a PRE (preformatted) element.- Specified by:
prein interfaceHamletSpec.Preformatted- Returns:
- a new PRE element builder
-
pre
Description copied from interface:HamletSpec.PreformattedAdd a PRE (preformatted) element.- Specified by:
prein interfaceHamletSpec.Preformatted- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new PRE element builder
-
fieldset
Description copied from interface:HamletSpec._FieldSetAdd a FIELDSET element.- Specified by:
fieldsetin interfaceHamletSpec._FieldSet- Returns:
- a new FIELDSET element builder
-
fieldset
Description copied from interface:HamletSpec._FieldSetAdd a FIELDSET element.- Specified by:
fieldsetin interfaceHamletSpec._FieldSet- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new FIELDSET element builder
-