Class Hamlet.HEAD<T extends HamletSpec.__>
java.lang.Object
org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl.EImp<T>
org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.HEAD<T>
- All Implemented Interfaces:
HamletSpec.__,HamletSpec._Child,HamletSpec._Head,HamletSpec._Object,HamletSpec._Script,HamletSpec.HEAD,HamletSpec.HeadMisc,HamletSpec.I18nAttrs
- Enclosing class:
- Hamlet
public class Hamlet.HEAD<T extends HamletSpec.__>
extends HamletImpl.EImp<T>
implements HamletSpec.HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription$dir(HamletSpec.Dir value) direction for weak/neutral textlanguage codebase()Add a BASE element.Add a complete BASE element.link()Add a link element.Add a link element.meta()Add a meta element.Add a meta element.Add a meta element with http-equiv attribute.object()Add an object element.Add an object element.script()Add a script element.Add a script elementstyle()Add a style element.Add a css style element.title()Add a TITLE element.Add a TITLE 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
-
HEAD
-
-
Method Details
-
$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
-
base
Description copied from interface:HamletSpec._HeadAdd a BASE element.- Specified by:
basein interfaceHamletSpec._Head- Returns:
- a new BASE element builder
-
base
Description copied from interface:HamletSpec._HeadAdd a complete BASE element.- Specified by:
basein interfaceHamletSpec._Head- Parameters:
href- the URI.- Returns:
- the current element builder
-
title
Description copied from interface:HamletSpec._HeadAdd a TITLE element.- Specified by:
titlein interfaceHamletSpec._Head- Returns:
- a new TITLE element builder
-
title
Description copied from interface:HamletSpec._HeadAdd a TITLE element.- Specified by:
titlein interfaceHamletSpec._Head- Parameters:
cdata- the content- Returns:
- the current element builder
-
style
Description copied from interface:HamletSpec.HeadMiscAdd a style element.- Specified by:
stylein interfaceHamletSpec.HeadMisc- Returns:
- a style element builder
-
style
Description copied from interface:HamletSpec.HeadMiscAdd a css style element.- Specified by:
stylein interfaceHamletSpec.HeadMisc- Parameters:
lines- content of the style sheet- Returns:
- the current element builder
-
link
Description copied from interface:HamletSpec.HeadMiscAdd a link element.- Specified by:
linkin interfaceHamletSpec.HeadMisc- Returns:
- a link element builder
-
link
Description copied from interface:HamletSpec.HeadMiscAdd a link element. Implementation should try to figure out type by the suffix of href. Solink("style.css");is a shortcut oflink().$rel("stylesheet").$type("text/css").$href("style.css").__();- Specified by:
linkin interfaceHamletSpec.HeadMisc- Parameters:
href- of the link- Returns:
- the current element builder
-
meta
Description copied from interface:HamletSpec.HeadMiscAdd a meta element.- Specified by:
metain interfaceHamletSpec.HeadMisc- Returns:
- a meta element builder
-
meta
Description copied from interface:HamletSpec.HeadMiscAdd a meta element. Shortcut ofmeta().$name(name).$content(content).__();- Specified by:
metain interfaceHamletSpec.HeadMisc- Parameters:
name- of the meta elementcontent- of the meta element- Returns:
- the current element builder
-
meta_http
Description copied from interface:HamletSpec.HeadMiscAdd a meta element with http-equiv attribute. Shortcut of
meta().$http_equiv(header).$content(content).__();- Specified by:
meta_httpin interfaceHamletSpec.HeadMisc- Parameters:
header- for the http-equiv attributecontent- of the header- 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
-
object
Description copied from interface:HamletSpec._ObjectAdd an object element.- Specified by:
objectin interfaceHamletSpec._Object- Returns:
- an object element builder
-
object
Description copied from interface:HamletSpec._ObjectAdd an object element.- Specified by:
objectin interfaceHamletSpec._Object- Parameters:
selector- as #id.class etc.- Returns:
- an object element builder
-