public class Hamlet.HEAD<T extends HamletSpec.__> extends HamletImpl.EImp<T> implements HamletSpec.HEAD
Constructor and Description |
---|
HEAD(String name,
T parent,
EnumSet<HamletImpl.EOpt> opts) |
Modifier and Type | Method and Description |
---|---|
Hamlet.HEAD<T> |
$dir(HamletSpec.Dir value)
direction for weak/neutral text
|
Hamlet.HEAD<T> |
$lang(String value)
language code
|
Hamlet.BASE<Hamlet.HEAD<T>> |
base()
Add a BASE element.
|
Hamlet.HEAD<T> |
base(String href)
Add a complete BASE element.
|
Hamlet.LINK<Hamlet.HEAD<T>> |
link()
Add a link element.
|
Hamlet.HEAD<T> |
link(String href)
Add a link element.
|
Hamlet.HEAD<T> |
meta_http(String header,
String content)
Add a meta element with http-equiv attribute.
|
Hamlet.META<Hamlet.HEAD<T>> |
meta()
Add a meta element.
|
Hamlet.HEAD<T> |
meta(String name,
String content)
Add a meta element.
|
Hamlet.OBJECT<Hamlet.HEAD<T>> |
object()
Add an object element.
|
Hamlet.OBJECT<Hamlet.HEAD<T>> |
object(String selector)
Add an object element.
|
Hamlet.SCRIPT<Hamlet.HEAD<T>> |
script()
Add a script element.
|
Hamlet.HEAD<T> |
script(String src)
Add a script element
|
Hamlet.STYLE<Hamlet.HEAD<T>> |
style()
Add a style element.
|
Hamlet.HEAD<T> |
style(Object... lines)
Add a css style element.
|
Hamlet.TITLE<Hamlet.HEAD<T>> |
title()
Add a TITLE element.
|
Hamlet.HEAD<T> |
title(String cdata)
Add a TITLE element.
|
__, _endTag, _inline, _p, _pre, _v, addAttr, addAttr, addMediaAttr, addRelAttr, closeAttrs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
__
public HEAD(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
public Hamlet.HEAD<T> $lang(String value)
HamletSpec.I18nAttrs
$lang
in interface HamletSpec.I18nAttrs
value
- the codepublic Hamlet.HEAD<T> $dir(HamletSpec.Dir value)
HamletSpec.I18nAttrs
$dir
in interface HamletSpec.I18nAttrs
value
- the HamletSpec.Dir
valuepublic Hamlet.BASE<Hamlet.HEAD<T>> base()
HamletSpec._Head
base
in interface HamletSpec._Head
public Hamlet.HEAD<T> base(String href)
HamletSpec._Head
base
in interface HamletSpec._Head
public Hamlet.TITLE<Hamlet.HEAD<T>> title()
HamletSpec._Head
title
in interface HamletSpec._Head
public Hamlet.HEAD<T> title(String cdata)
HamletSpec._Head
title
in interface HamletSpec._Head
cdata
- the contentpublic Hamlet.STYLE<Hamlet.HEAD<T>> style()
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
public Hamlet.HEAD<T> style(Object... lines)
HamletSpec.HeadMisc
style
in interface HamletSpec.HeadMisc
lines
- content of the style sheetpublic Hamlet.LINK<Hamlet.HEAD<T>> link()
HamletSpec.HeadMisc
link
in interface HamletSpec.HeadMisc
public Hamlet.HEAD<T> link(String href)
HamletSpec.HeadMisc
link("style.css");
is a shortcut of
link().$rel("stylesheet").$type("text/css").$href("style.css").__();
link
in interface HamletSpec.HeadMisc
href
- of the linkpublic Hamlet.META<Hamlet.HEAD<T>> meta()
HamletSpec.HeadMisc
meta
in interface HamletSpec.HeadMisc
public Hamlet.HEAD<T> meta(String name, String content)
HamletSpec.HeadMisc
meta().$name(name).$content(content).__();
meta
in interface HamletSpec.HeadMisc
name
- of the meta elementcontent
- of the meta elementpublic Hamlet.HEAD<T> meta_http(String header, String content)
HamletSpec.HeadMisc
meta().$http_equiv(header).$content(content).__();
meta_http
in interface HamletSpec.HeadMisc
header
- for the http-equiv attributecontent
- of the headerpublic Hamlet.SCRIPT<Hamlet.HEAD<T>> script()
HamletSpec._Script
script
in interface HamletSpec._Script
public Hamlet.HEAD<T> script(String src)
HamletSpec._Script
script
in interface HamletSpec._Script
src
- uri of the scriptpublic Hamlet.OBJECT<Hamlet.HEAD<T>> object()
HamletSpec._Object
object
in interface HamletSpec._Object
public Hamlet.OBJECT<Hamlet.HEAD<T>> object(String selector)
HamletSpec._Object
object
in interface HamletSpec._Object
selector
- as #id.class etc.Copyright © 2008–2019 Apache Software Foundation. All rights reserved.