Class Pre
The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements. It is used to display text exactly as it is written, preserving whitespace, line breaks, and formatting. The pre element is typically rendered in a monospace font and is commonly used for displaying code snippets, ASCII art, or any text where formatting and spacing are important.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.bean.html5.HtmlElementMixed
child, children, getChild, getChild, getChild, 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
-
getChildren
@Xml(format=MIXED_PWS) @BeanProp(name="c") @MarshalledProp(dictionary=HtmlBeanDictionary.class) public List<Object> getChildren()Description copied from class:HtmlElementMixedThe children of this element.- Overrides:
getChildrenin classHtmlElementMixed<Pre>- Returns:
- The children of this element, or
null if no children are set.
-