@Bean(typeName="option") public class Option extends HtmlElementText
Constructor and Description |
---|
Option()
Creates an empty
Option element. |
Option(Object text)
Creates an
Option element with the specified text(Object) attribute. |
Option(Object value,
Object text)
|
Modifier and Type | Method and Description |
---|---|
Option |
_class(String _class)
class attribute.
|
Option |
disabled(Object disabled)
disabled attribute.
|
Option |
id(String id)
id attribute.
|
Option |
label(String label)
label attribute.
|
Option |
selected(Object selected)
selected attribute.
|
Option |
style(String style)
style attribute.
|
Option |
text(Object text)
Sets the text node on this element.
|
Option |
value(Object value)
value attribute.
|
getText, setText
accesskey, attr, attrUri, contenteditable, deminimize, dir, getAttr, getAttr, getAttrs, hidden, lang, onabort, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, oncuechange, ondblclick, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting, setAttrs, spellcheck, tabindex, title, toString, translate
public Option(Object text)
Option
element with the specified text(Object)
attribute.text
- The text(Object)
attribute.public Option(Object value, Object text)
value
- The value(Object)
attribute.text
- The text(Object)
node.public final Option disabled(Object disabled)
Whether the form control is disabled.
public final Option label(String label)
User-visible label.
label
- The new value for this attribute.public final Option selected(Object selected)
Whether the option is selected by default.
public final Option value(Object value)
Value to be used for form submission.
public final Option _class(String _class)
HtmlElement
_class
in class HtmlElement
_class
- The new value for this attribute.public final Option id(String id)
HtmlElement
id
in class HtmlElement
id
- The new value for this attribute.public final Option style(String style)
HtmlElement
style
in class HtmlElement
style
- The new value for this attribute.public Option text(Object text)
HtmlElementText
text
in class HtmlElementText
text
- The text node to add to this element.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.