Package org.apache.juneau.dto.html5
Class HtmlElementMixed
java.lang.Object
org.apache.juneau.dto.html5.HtmlElement
org.apache.juneau.dto.html5.HtmlElementMixed
- Direct Known Subclasses:
A
,Abbr
,Address
,Article
,Aside
,B
,Bdo
,Blockquote
,Body
,Button
,Caption
,Cite
,Code
,Data
,Dd
,Del
,Dfn
,Div
,Dt
,Em
,Fieldset
,Figcaption
,Footer
,Form
,H1
,H2
,H3
,H4
,H5
,H6
,Header
,I
,Iframe
,Ins
,Kbd
,Label
,Legend
,Li
,Mark
,Meter
,Nav
,Noscript
,Object_
,Output
,P
,Pre
,Progress
,Q
,Rb
,Rp
,Rt
,Rtc
,Ruby
,S
,Samp
,Section
,Small
,Span
,Strong
,Sub
,Sup
,Td
,Template
,Th
,Time
,U
,Var
A subclass of HTML elements that contain mixed content (elements and text).
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclass attribute.accesskey attribute.Adds a child element to this element.Adds one or more child elements to this element.contenteditable
(Object contenteditable) contenteditable attribute.dir attribute.getChild
(int index) Returns the child node at the specified index.getChild
(int... index) Returns the child node at the specified address.<T> T
Returns the child node at the specified index.The children of this element.hidden attribute.id attribute.lang attribute.onabort attribute.onblur attribute.oncancel attribute.oncanplay attribute.oncanplaythrough
(String oncanplaythrough) oncanplaythrough attribute.onchange attribute.onclick attribute.oncuechange
(String oncuechange) oncuechange attribute.ondblclick
(String ondblclick) ondblclick attribute.ondurationchange
(String ondurationchange) ondurationchange attribute.onemptied attribute.onended attribute.onerror attribute.onfocus attribute.oninput attribute.oninvalid attribute.onkeydown attribute.onkeypress
(String onkeypress) onkeypress attribute.onkeyup attribute.onload attribute.onloadeddata
(String onloadeddata) onloadeddata attribute.onloadedmetadata
(String onloadedmetadata) onloadedmetadata attribute.onloadstart
(String onloadstart) onloadstart attribute.onmousedown
(String onmousedown) onmousedown attribute.onmouseenter
(String onmouseenter) onmouseenter attribute.onmouseleave
(String onmouseleave) onmouseleave attribute.onmousemove
(String onmousemove) onmousemove attribute.onmouseout
(String onmouseout) onmouseout attribute.onmouseover
(String onmouseover) onmouseover attribute.onmouseup attribute.onmousewheel
(String onmousewheel) onmousewheel attribute.onpause attribute.onplay attribute.onplaying attribute.onprogress
(String onprogress) onprogress attribute.onratechange
(String onratechange) onratechange attribute.onreset attribute.onresize attribute.onscroll attribute.onseeked attribute.onseeking attribute.onselect attribute.onshow attribute.onstalled attribute.onsubmit attribute.onsuspend attribute.ontimeupdate
(String ontimeupdate) ontimeupdate attribute.ontoggle attribute.onvolumechange
(String onvolumechange) onvolumechange attribute.onwaiting attribute.setChildren
(LinkedList<Object> children) Sets the children of this element.spellcheck
(Object spellcheck) spellcheck attribute.style attribute.tabindex attribute.title attribute.translate attribute.Methods inherited from class org.apache.juneau.dto.html5.HtmlElement
attr, attrUri, deminimize, getAttr, getAttr, getAttrs, setAttrs, toString
-
Constructor Details
-
HtmlElementMixed
public HtmlElementMixed()
-
-
Method Details
-
getChildren
@Xml(format=MIXED) @Beanp(dictionary=HtmlBeanDictionary.class, name="c") public LinkedList<Object> getChildren()The children of this element.- Returns:
- The children of this element.
-
setChildren
Sets the children of this element.- Parameters:
children
- The new children of this element.- Returns:
- This object.
-
getChild
Returns the child node at the specified index.- Parameters:
index
- The index of the node in the list of children.- Returns:
- The child node, or
null if it doesn't exist.
-
getChild
Returns the child node at the specified address.Indexes are zero-indexed.
For example, calling
getChild(1,2,3); will return the 4th child of the 3rd child of the 2nd child.- Parameters:
index
- The child indexes.- Returns:
- The child node, or
null if it doesn't point to a valid child.
-
getChild
Returns the child node at the specified index.- Type Parameters:
T
- he class type of the node.- Parameters:
type
- The class type of the node.index
- The index of the node in the list of children.- Returns:
- The child node, or
null if it doesn't exist. - Throws:
InvalidDataConversionException
- If node is not the expected type.
-
children
Adds one or more child elements to this element.- Parameters:
children
- The children to add as child elements. Can be a mixture of strings andHtmlElement
objects. Can also be containers of strings and elements.- Returns:
- This object.
-
child
Adds a child element to this element.- Parameters:
child
- The child to add as a child element. Can be a string orHtmlElement
. Can also be a container of strings and elements.- Returns:
- This object.
-
_class
Description copied from class:HtmlElement
class attribute.- Overrides:
_class
in classHtmlElement
- Parameters:
_class
- The new value for this attribute.- Returns:
- This object.
-
accesskey
Description copied from class:HtmlElement
accesskey attribute.- Overrides:
accesskey
in classHtmlElement
- Parameters:
accesskey
- The new value for this attribute.- Returns:
- This object.
-
contenteditable
Description copied from class:HtmlElement
contenteditable attribute.- Overrides:
contenteditable
in classHtmlElement
- Parameters:
contenteditable
- The new value for this attribute. Typically aBoolean
orString
.- Returns:
- This object.
-
dir
Description copied from class:HtmlElement
dir attribute.- Overrides:
dir
in classHtmlElement
- Parameters:
dir
- The new value for this attribute.- Returns:
- This object.
-
id
Description copied from class:HtmlElement
id attribute.- Overrides:
id
in classHtmlElement
- Parameters:
id
- The new value for this attribute.- Returns:
- This object.
-
lang
Description copied from class:HtmlElement
lang attribute.- Overrides:
lang
in classHtmlElement
- Parameters:
lang
- The new value for this attribute.- Returns:
- This object.
-
onabort
Description copied from class:HtmlElement
onabort attribute.- Overrides:
onabort
in classHtmlElement
- Parameters:
onabort
- The new value for this attribute.- Returns:
- This object.
-
onblur
Description copied from class:HtmlElement
onblur attribute.- Overrides:
onblur
in classHtmlElement
- Parameters:
onblur
- The new value for this attribute.- Returns:
- This object.
-
oncancel
Description copied from class:HtmlElement
oncancel attribute.- Overrides:
oncancel
in classHtmlElement
- Parameters:
oncancel
- The new value for this attribute.- Returns:
- This object.
-
oncanplay
Description copied from class:HtmlElement
oncanplay attribute.- Overrides:
oncanplay
in classHtmlElement
- Parameters:
oncanplay
- The new value for this attribute.- Returns:
- This object.
-
oncanplaythrough
Description copied from class:HtmlElement
oncanplaythrough attribute.- Overrides:
oncanplaythrough
in classHtmlElement
- Parameters:
oncanplaythrough
- The new value for this attribute.- Returns:
- This object.
-
onchange
Description copied from class:HtmlElement
onchange attribute.- Overrides:
onchange
in classHtmlElement
- Parameters:
onchange
- The new value for this attribute.- Returns:
- This object.
-
onclick
Description copied from class:HtmlElement
onclick attribute.- Overrides:
onclick
in classHtmlElement
- Parameters:
onclick
- The new value for this attribute.- Returns:
- This object.
-
oncuechange
Description copied from class:HtmlElement
oncuechange attribute.- Overrides:
oncuechange
in classHtmlElement
- Parameters:
oncuechange
- The new value for this attribute.- Returns:
- This object.
-
ondblclick
Description copied from class:HtmlElement
ondblclick attribute.- Overrides:
ondblclick
in classHtmlElement
- Parameters:
ondblclick
- The new value for this attribute.- Returns:
- This object.
-
ondurationchange
Description copied from class:HtmlElement
ondurationchange attribute.- Overrides:
ondurationchange
in classHtmlElement
- Parameters:
ondurationchange
- The new value for this attribute.- Returns:
- This object.
-
onemptied
Description copied from class:HtmlElement
onemptied attribute.- Overrides:
onemptied
in classHtmlElement
- Parameters:
onemptied
- The new value for this attribute.- Returns:
- This object.
-
onended
Description copied from class:HtmlElement
onended attribute.- Overrides:
onended
in classHtmlElement
- Parameters:
onended
- The new value for this attribute.- Returns:
- This object.
-
onerror
Description copied from class:HtmlElement
onerror attribute.- Overrides:
onerror
in classHtmlElement
- Parameters:
onerror
- The new value for this attribute.- Returns:
- This object.
-
onfocus
Description copied from class:HtmlElement
onfocus attribute.- Overrides:
onfocus
in classHtmlElement
- Parameters:
onfocus
- The new value for this attribute.- Returns:
- This object.
-
oninput
Description copied from class:HtmlElement
oninput attribute.- Overrides:
oninput
in classHtmlElement
- Parameters:
oninput
- The new value for this attribute.- Returns:
- This object.
-
oninvalid
Description copied from class:HtmlElement
oninvalid attribute.- Overrides:
oninvalid
in classHtmlElement
- Parameters:
oninvalid
- The new value for this attribute.- Returns:
- This object.
-
onkeydown
Description copied from class:HtmlElement
onkeydown attribute.- Overrides:
onkeydown
in classHtmlElement
- Parameters:
onkeydown
- The new value for this attribute.- Returns:
- This object.
-
onkeypress
Description copied from class:HtmlElement
onkeypress attribute.- Overrides:
onkeypress
in classHtmlElement
- Parameters:
onkeypress
- The new value for this attribute.- Returns:
- This object.
-
onkeyup
Description copied from class:HtmlElement
onkeyup attribute.- Overrides:
onkeyup
in classHtmlElement
- Parameters:
onkeyup
- The new value for this attribute.- Returns:
- This object.
-
onload
Description copied from class:HtmlElement
onload attribute.- Overrides:
onload
in classHtmlElement
- Parameters:
onload
- The new value for this attribute.- Returns:
- This object.
-
onloadeddata
Description copied from class:HtmlElement
onloadeddata attribute.- Overrides:
onloadeddata
in classHtmlElement
- Parameters:
onloadeddata
- The new value for this attribute.- Returns:
- This object.
-
onloadedmetadata
Description copied from class:HtmlElement
onloadedmetadata attribute.- Overrides:
onloadedmetadata
in classHtmlElement
- Parameters:
onloadedmetadata
- The new value for this attribute.- Returns:
- This object.
-
onloadstart
Description copied from class:HtmlElement
onloadstart attribute.- Overrides:
onloadstart
in classHtmlElement
- Parameters:
onloadstart
- The new value for this attribute.- Returns:
- This object.
-
onmousedown
Description copied from class:HtmlElement
onmousedown attribute.- Overrides:
onmousedown
in classHtmlElement
- Parameters:
onmousedown
- The new value for this attribute.- Returns:
- This object.
-
onmouseenter
Description copied from class:HtmlElement
onmouseenter attribute.- Overrides:
onmouseenter
in classHtmlElement
- Parameters:
onmouseenter
- The new value for this attribute.- Returns:
- This object.
-
onmouseleave
Description copied from class:HtmlElement
onmouseleave attribute.- Overrides:
onmouseleave
in classHtmlElement
- Parameters:
onmouseleave
- The new value for this attribute.- Returns:
- This object.
-
onmousemove
Description copied from class:HtmlElement
onmousemove attribute.- Overrides:
onmousemove
in classHtmlElement
- Parameters:
onmousemove
- The new value for this attribute.- Returns:
- This object.
-
onmouseout
Description copied from class:HtmlElement
onmouseout attribute.- Overrides:
onmouseout
in classHtmlElement
- Parameters:
onmouseout
- The new value for this attribute.- Returns:
- This object.
-
onmouseover
Description copied from class:HtmlElement
onmouseover attribute.- Overrides:
onmouseover
in classHtmlElement
- Parameters:
onmouseover
- The new value for this attribute.- Returns:
- This object.
-
onmouseup
Description copied from class:HtmlElement
onmouseup attribute.- Overrides:
onmouseup
in classHtmlElement
- Parameters:
onmouseup
- The new value for this attribute.- Returns:
- This object.
-
onmousewheel
Description copied from class:HtmlElement
onmousewheel attribute.- Overrides:
onmousewheel
in classHtmlElement
- Parameters:
onmousewheel
- The new value for this attribute.- Returns:
- This object.
-
onpause
Description copied from class:HtmlElement
onpause attribute.- Overrides:
onpause
in classHtmlElement
- Parameters:
onpause
- The new value for this attribute.- Returns:
- This object.
-
onplay
Description copied from class:HtmlElement
onplay attribute.- Overrides:
onplay
in classHtmlElement
- Parameters:
onplay
- The new value for this attribute.- Returns:
- This object.
-
onplaying
Description copied from class:HtmlElement
onplaying attribute.- Overrides:
onplaying
in classHtmlElement
- Parameters:
onplaying
- The new value for this attribute.- Returns:
- This object.
-
onprogress
Description copied from class:HtmlElement
onprogress attribute.- Overrides:
onprogress
in classHtmlElement
- Parameters:
onprogress
- The new value for this attribute.- Returns:
- This object.
-
onratechange
Description copied from class:HtmlElement
onratechange attribute.- Overrides:
onratechange
in classHtmlElement
- Parameters:
onratechange
- The new value for this attribute.- Returns:
- This object.
-
onreset
Description copied from class:HtmlElement
onreset attribute.- Overrides:
onreset
in classHtmlElement
- Parameters:
onreset
- The new value for this attribute.- Returns:
- This object.
-
onresize
Description copied from class:HtmlElement
onresize attribute.- Overrides:
onresize
in classHtmlElement
- Parameters:
onresize
- The new value for this attribute.- Returns:
- This object.
-
onscroll
Description copied from class:HtmlElement
onscroll attribute.- Overrides:
onscroll
in classHtmlElement
- Parameters:
onscroll
- The new value for this attribute.- Returns:
- This object.
-
onseeked
Description copied from class:HtmlElement
onseeked attribute.- Overrides:
onseeked
in classHtmlElement
- Parameters:
onseeked
- The new value for this attribute.- Returns:
- This object.
-
onseeking
Description copied from class:HtmlElement
onseeking attribute.- Overrides:
onseeking
in classHtmlElement
- Parameters:
onseeking
- The new value for this attribute.- Returns:
- This object.
-
onselect
Description copied from class:HtmlElement
onselect attribute.- Overrides:
onselect
in classHtmlElement
- Parameters:
onselect
- The new value for this attribute.- Returns:
- This object.
-
onshow
Description copied from class:HtmlElement
onshow attribute.- Overrides:
onshow
in classHtmlElement
- Parameters:
onshow
- The new value for this attribute.- Returns:
- This object.
-
onstalled
Description copied from class:HtmlElement
onstalled attribute.- Overrides:
onstalled
in classHtmlElement
- Parameters:
onstalled
- The new value for this attribute.- Returns:
- This object.
-
onsubmit
Description copied from class:HtmlElement
onsubmit attribute.- Overrides:
onsubmit
in classHtmlElement
- Parameters:
onsubmit
- The new value for this attribute.- Returns:
- This object.
-
onsuspend
Description copied from class:HtmlElement
onsuspend attribute.- Overrides:
onsuspend
in classHtmlElement
- Parameters:
onsuspend
- The new value for this attribute.- Returns:
- This object.
-
ontimeupdate
Description copied from class:HtmlElement
ontimeupdate attribute.- Overrides:
ontimeupdate
in classHtmlElement
- Parameters:
ontimeupdate
- The new value for this attribute.- Returns:
- This object.
-
ontoggle
Description copied from class:HtmlElement
ontoggle attribute.- Overrides:
ontoggle
in classHtmlElement
- Parameters:
ontoggle
- The new value for this attribute.- Returns:
- This object.
-
onvolumechange
Description copied from class:HtmlElement
onvolumechange attribute.- Overrides:
onvolumechange
in classHtmlElement
- Parameters:
onvolumechange
- The new value for this attribute.- Returns:
- This object.
-
onwaiting
Description copied from class:HtmlElement
onwaiting attribute.- Overrides:
onwaiting
in classHtmlElement
- Parameters:
onwaiting
- The new value for this attribute.- Returns:
- This object.
-
spellcheck
Description copied from class:HtmlElement
spellcheck attribute.- Overrides:
spellcheck
in classHtmlElement
- Parameters:
spellcheck
- The new value for this attribute. Typically aBoolean
orString
.- Returns:
- This object.
-
style
Description copied from class:HtmlElement
style attribute.- Overrides:
style
in classHtmlElement
- Parameters:
style
- The new value for this attribute.- Returns:
- This object.
-
tabindex
Description copied from class:HtmlElement
tabindex attribute.- Overrides:
tabindex
in classHtmlElement
- Parameters:
tabindex
- The new value for this attribute. Typically aNumber
orString
.- Returns:
- This object.
-
title
Description copied from class:HtmlElement
title attribute.- Overrides:
title
in classHtmlElement
- Parameters:
title
- The new value for this attribute.- Returns:
- This object.
-
translate
Description copied from class:HtmlElement
translate attribute.- Overrides:
translate
in classHtmlElement
- Parameters:
translate
- The new value for this attribute. Typically aNumber
orString
.- Returns:
- This object.
-