Class Embed
The embed element represents an integration point for an external application or interactive content. It is used to embed content such as Flash applications, PDF documents, or other multimedia content that requires a plugin or external application to display.
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
-
Embed
public Embed()Creates an emptyEmbedelement. -
Embed
Creates anEmbedelement with the specifiedsrc(Object)attribute.- Parameters:
src- Thesrc(Object)attribute. Can benull , in which case the attribute is stored with anull value (not removed).
-
-
Method Details
-
height
height attribute.Vertical dimension.
-
src
src attribute.Address of the resource.
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. -
type
type attribute.Specifies the MIME type of the embedded resource. Helps browsers determine how to handle the resource.
Common values:
"application/pdf" - PDF document"application/x-shockwave-flash" - Flash content"image/svg+xml" - SVG image"video/mp4" - MP4 video"audio/mp3" - MP3 audio
- Parameters:
value- The MIME type of the embedded resource. Can benull to unset the attribute.- Returns:
- This object.
-
width
width attribute.Horizontal dimension.
-