Class Object_
The object element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin. It is commonly used to embed multimedia content such as Flash applications, PDFs, images, videos, or other HTML documents. While historically used for plugins, modern web development often prefers more specific elements like img, video, audio, or iframe when appropriate.
Examples:
The following convenience methods are provided for constructing instances of this bean:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata attribute.form attribute.height attribute.name attribute.type attribute.typemustmatch(Object value) typemustmatch attribute.usemap attribute.width attribute.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
-
data
data attribute.Specifies the URL of the resource to be embedded. This is the primary source of content for the object element.
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.- Parameters:
value- The URL of the resource to be embedded. Can benull to unset the attribute.- Returns:
- This object.
-
form
form attribute.Associates the control with a form element.
- Parameters:
value- The new value for this attribute. Can benull to unset the attribute.- Returns:
- This object.
-
height
height attribute.Vertical dimension.
-
name
name attribute.Name of nested browsing context.
- Parameters:
value- The new value for this attribute. Can benull to unset the attribute.- Returns:
- This object.
-
type
type attribute.Type of embedded resource.
- Parameters:
value- The new value for this attribute. Can benull to unset the attribute.- Returns:
- This object.
-
typemustmatch
typemustmatch attribute.Whether the type attribute and the Content-Type value need to match for the resource to be used.
-
usemap
usemap attribute.Name of image map to use.
- Parameters:
value- The new value for this attribute. Can benull to unset the attribute.- Returns:
- This object.
-
width
width attribute.Horizontal dimension.
-