Class Article
The article element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable. It is used for content that could stand alone, such as blog posts, news articles, forum posts, or other independent pieces of content. Each article should have its own heading structure and can contain other semantic elements.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a footer node to this element.Adds a header node to this element.Adds a link node to this element.Adds a section node to this element.Methods inherited from class org.apache.juneau.bean.html5.HtmlElementMixed
child, children, getChild, getChild, getChild, getChildren, setChildrenMethods inherited from class org.apache.juneau.bean.html5.HtmlElement
accesskey, attr, attrUri, class_, contenteditable, deminimize, dir, getAttr, getAttr, getAttrs, hidden, id, 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, self, setAttrs, spellcheck, style, tabindex, title, toString, translate
-
Constructor Details
-
Method Details
-
header
Adds a header node to this element.- Parameters:
children- The children inside the header node. Must not benull .- Returns:
- This object.
-
link
Adds a link node to this element.- Parameters:
value- The link node to add to this article. Can benull (anull entry is added to the children list).- Returns:
- This object.
-
section
Adds a section node to this element.- Parameters:
value- The section node to add to this article. Can benull (anull entry is added to the children list).- Returns:
- This object.