Class Base
The base element specifies the base URL for all relative URLs in a document. It also specifies the default target for all links and forms in the document. Only one base element is allowed per document and it must be placed in the head section.
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.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
-
Base
public Base()Creates an emptyBaseelement. -
Base
Creates aBaseelement with the specifiedhref(Object)attribute.- Parameters:
value- Thehref(Object)attribute. Can benull , in which case the attribute is stored with anull value (not removed).
-
-
Method Details
-
href
href attribute.Document base URL.
The value can be of any of the following types:
URI,URL,String. Strings must be valid URIs.URIs defined by
UriResolvercan be used for values. -
target
target attribute.Specifies the default target for all links and forms in the document.
Common values:
"_blank" - Open in a new window/tab"_self" - Open in the same frame (default)"_parent" - Open in the parent frame"_top" - Open in the full body of the window"framename" - Open in a named frame
- Parameters:
value- The default target for links and forms. Can benull to unset the attribute.- Returns:
- This object.
-