public class Hamlet.OPTION<T extends HamletSpec.__> extends HamletImpl.EImp<T> implements HamletSpec.OPTION
Constructor and Description |
---|
OPTION(String name,
T parent,
EnumSet<HamletImpl.EOpt> opts) |
Modifier and Type | Method and Description |
---|---|
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
|
__, _endTag, _inline, _p, _pre, _v, addAttr, addAttr, addMediaAttr, addRelAttr, closeAttrs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
__
public OPTION(String name, T parent, EnumSet<HamletImpl.EOpt> opts)
public Hamlet.OPTION<T> $value(String value)
HamletSpec.OPTION
$value
in interface HamletSpec.OPTION
value
- the content of the element.public Hamlet.OPTION<T> $disabled()
HamletSpec.OPTION
$disabled
in interface HamletSpec.OPTION
public Hamlet.OPTION<T> $selected()
HamletSpec.OPTION
$selected
in interface HamletSpec.OPTION
public Hamlet.OPTION<T> $label(String value)
HamletSpec.OPTION
$label
in interface HamletSpec.OPTION
value
- the content of the element.public Hamlet.OPTION<T> $id(String value)
HamletSpec.CoreAttrs
$id
in interface HamletSpec.CoreAttrs
value
- the idpublic Hamlet.OPTION<T> $class(String value)
HamletSpec.CoreAttrs
$class
in interface HamletSpec.CoreAttrs
value
- the classespublic Hamlet.OPTION<T> $title(String value)
HamletSpec.CoreAttrs
$title
in interface HamletSpec.CoreAttrs
value
- the titlepublic Hamlet.OPTION<T> $style(String value)
HamletSpec.CoreAttrs
$style
in interface HamletSpec.CoreAttrs
value
- the stylepublic Hamlet.OPTION<T> $lang(String value)
HamletSpec.I18nAttrs
$lang
in interface HamletSpec.I18nAttrs
value
- the codepublic Hamlet.OPTION<T> $dir(HamletSpec.Dir value)
HamletSpec.I18nAttrs
$dir
in interface HamletSpec.I18nAttrs
value
- the HamletSpec.Dir
valuepublic Hamlet.OPTION<T> $onclick(String value)
HamletSpec.EventsAttrs
$onclick
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $ondblclick(String value)
HamletSpec.EventsAttrs
$ondblclick
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onmousedown(String value)
HamletSpec.EventsAttrs
$onmousedown
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onmouseup(String value)
HamletSpec.EventsAttrs
$onmouseup
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onmouseover(String value)
HamletSpec.EventsAttrs
$onmouseover
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onmousemove(String value)
HamletSpec.EventsAttrs
$onmousemove
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onmouseout(String value)
HamletSpec.EventsAttrs
$onmouseout
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onkeypress(String value)
HamletSpec.EventsAttrs
$onkeypress
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onkeydown(String value)
HamletSpec.EventsAttrs
$onkeydown
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> $onkeyup(String value)
HamletSpec.EventsAttrs
$onkeyup
in interface HamletSpec.EventsAttrs
value
- the scriptpublic Hamlet.OPTION<T> __(Object... lines)
HamletSpec._Content
__
in interface HamletSpec._Content
lines
- of contentpublic Hamlet.OPTION<T> _r(Object... lines)
HamletSpec._RawContent
_r
in interface HamletSpec._RawContent
lines
- of contentCopyright © 2008–2024 Apache Software Foundation. All rights reserved.