@Html(format=XML) public abstract class HtmlElement extends Object
These are beans that when serialized using HtmlSerializer generate valid HTML5 elements.
| Constructor and Description |
|---|
HtmlElement() |
public HtmlElement()
@Xml(format=ATTRS) @Beanp(value="a") public LinkedHashMap<String,Object> getAttrs()
@Beanp(value="a") public HtmlElement setAttrs(LinkedHashMap<String,Object> attrs)
attrs - The new attributes for this element.public HtmlElement attr(String key, Object val)
key - The attribute name.val - The attribute value.public HtmlElement attrUri(String key, Object val)
Same as attr(String, Object), except if the value is a string that appears to be a URI
(e.g.
The value can be of any of the following types: URI, URL, String.
Strings must be valid URIs.
URIs defined by UriResolver can be used for values.
key - The attribute name.val - The attribute value.public String getAttr(String key)
key - The attribute name.public <T> T getAttr(Class<T> type, String key)
type - The class type to convert this class to.
See ObjectUtils for a list of supported conversion types.key - The attribute name.public HtmlElement accesskey(String accesskey)
accesskey - The new value for this attribute.public HtmlElement _class(String _class)
_class - The new value for this attribute.public HtmlElement contenteditable(Object contenteditable)
public HtmlElement dir(String dir)
dir - The new value for this attribute.public HtmlElement hidden(Object hidden)
public HtmlElement id(String id)
id - The new value for this attribute.public HtmlElement lang(String lang)
lang - The new value for this attribute.public HtmlElement onabort(String onabort)
onabort - The new value for this attribute.public HtmlElement onblur(String onblur)
onblur - The new value for this attribute.public HtmlElement oncancel(String oncancel)
oncancel - The new value for this attribute.public HtmlElement oncanplay(String oncanplay)
oncanplay - The new value for this attribute.public HtmlElement oncanplaythrough(String oncanplaythrough)
oncanplaythrough - The new value for this attribute.public HtmlElement onchange(String onchange)
onchange - The new value for this attribute.public HtmlElement onclick(String onclick)
onclick - The new value for this attribute.public HtmlElement oncuechange(String oncuechange)
oncuechange - The new value for this attribute.public HtmlElement ondblclick(String ondblclick)
ondblclick - The new value for this attribute.public HtmlElement ondurationchange(String ondurationchange)
ondurationchange - The new value for this attribute.public HtmlElement onemptied(String onemptied)
onemptied - The new value for this attribute.public HtmlElement onended(String onended)
onended - The new value for this attribute.public HtmlElement onerror(String onerror)
onerror - The new value for this attribute.public HtmlElement onfocus(String onfocus)
onfocus - The new value for this attribute.public HtmlElement oninput(String oninput)
oninput - The new value for this attribute.public HtmlElement oninvalid(String oninvalid)
oninvalid - The new value for this attribute.public HtmlElement onkeydown(String onkeydown)
onkeydown - The new value for this attribute.public HtmlElement onkeypress(String onkeypress)
onkeypress - The new value for this attribute.public HtmlElement onkeyup(String onkeyup)
onkeyup - The new value for this attribute.public HtmlElement onload(String onload)
onload - The new value for this attribute.public HtmlElement onloadeddata(String onloadeddata)
onloadeddata - The new value for this attribute.public HtmlElement onloadedmetadata(String onloadedmetadata)
onloadedmetadata - The new value for this attribute.public HtmlElement onloadstart(String onloadstart)
onloadstart - The new value for this attribute.public HtmlElement onmousedown(String onmousedown)
onmousedown - The new value for this attribute.public HtmlElement onmouseenter(String onmouseenter)
onmouseenter - The new value for this attribute.public HtmlElement onmouseleave(String onmouseleave)
onmouseleave - The new value for this attribute.public HtmlElement onmousemove(String onmousemove)
onmousemove - The new value for this attribute.public HtmlElement onmouseout(String onmouseout)
onmouseout - The new value for this attribute.public HtmlElement onmouseover(String onmouseover)
onmouseover - The new value for this attribute.public HtmlElement onmouseup(String onmouseup)
onmouseup - The new value for this attribute.public HtmlElement onmousewheel(String onmousewheel)
onmousewheel - The new value for this attribute.public HtmlElement onpause(String onpause)
onpause - The new value for this attribute.public HtmlElement onplay(String onplay)
onplay - The new value for this attribute.public HtmlElement onplaying(String onplaying)
onplaying - The new value for this attribute.public HtmlElement onprogress(String onprogress)
onprogress - The new value for this attribute.public HtmlElement onratechange(String onratechange)
onratechange - The new value for this attribute.public HtmlElement onreset(String onreset)
onreset - The new value for this attribute.public HtmlElement onresize(String onresize)
onresize - The new value for this attribute.public HtmlElement onscroll(String onscroll)
onscroll - The new value for this attribute.public HtmlElement onseeked(String onseeked)
onseeked - The new value for this attribute.public HtmlElement onseeking(String onseeking)
onseeking - The new value for this attribute.public HtmlElement onselect(String onselect)
onselect - The new value for this attribute.public HtmlElement onshow(String onshow)
onshow - The new value for this attribute.public HtmlElement onstalled(String onstalled)
onstalled - The new value for this attribute.public HtmlElement onsubmit(String onsubmit)
onsubmit - The new value for this attribute.public HtmlElement onsuspend(String onsuspend)
onsuspend - The new value for this attribute.public HtmlElement ontimeupdate(String ontimeupdate)
ontimeupdate - The new value for this attribute.public HtmlElement ontoggle(String ontoggle)
ontoggle - The new value for this attribute.public HtmlElement onvolumechange(String onvolumechange)
onvolumechange - The new value for this attribute.public HtmlElement onwaiting(String onwaiting)
onwaiting - The new value for this attribute.public HtmlElement spellcheck(Object spellcheck)
public HtmlElement style(String style)
style - The new value for this attribute.public HtmlElement tabindex(Object tabindex)
public HtmlElement title(String title)
title - The new value for this attribute.public HtmlElement translate(Object translate)
protected Object deminimize(Object value, String attr)
value - The attribute value.attr - The attribute name.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.