Package io.wcm.handler.commons.dom
Class Video
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Element
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.jdom2.NamespaceAware
,org.jdom2.Parent
@ProviderType public final class Video extends AbstractNonSelfClosingHtmlElement
Html video (video) element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Video()
Initializes html element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Video
addCssClass(java.lang.String value)
Html "class" attribute.long
getHeight()
Html "height" attribute.java.lang.String
getPoster()
Html "poster" attribute.java.lang.String
getPreload()
Html "preload" attribute.java.lang.String
getSrc()
Html "src" attribute.long
getWidth()
Html "poster" attribute.boolean
isAutoPlay()
Html "autoplay" attribute.boolean
isControls()
Html "controls" attribute.boolean
isLoop()
Html "loop" attribute.boolean
isMuted()
Html "muted" attribute.Video
setAttributeValueAsLong(java.lang.String name, long value)
Sets attribute value as long.Video
setAutoPlay(boolean value)
Html "autoplay" attribute.Video
setControls(boolean value)
Html "controls" attribute.Video
setCssClass(java.lang.String value)
Sets Html "class" attribute - unless you're really sure that you want to replace existing classes, you probably should callHtmlElement.addCssClass(String)
instead.Video
setData(java.lang.String attributeName, java.lang.String value)
Custom Html5 "data-*" attribute.protected Video
setEmptyAttributeValueAsBoolean(java.lang.String attributeName, boolean value)
Sets "empty" attribute value as boolean (i.e.Video
setHeight(long value)
Html "height" attribute.Video
setId(java.lang.String value)
Html "id" attribute.Video
setLoop(boolean value)
Html "loop" attribute.Video
setMuted(boolean value)
Html "muted" attribute.Video
setPoster(java.lang.String value)
Html "poster" attribute.Video
setPreload(java.lang.String value)
Html "preload" attribute.Video
setSrc(java.lang.String value)
Html "src" attribute.Video
setStyle(java.lang.String styleAttribute, java.lang.String styleValue)
Html "style" attribute.Video
setStyleString(java.lang.String value)
Html "style" attribute.Video
setText(java.lang.String text)
Sets the content of the element to be the text given.Video
setTitle(java.lang.String value)
Html "title" attribute.Video
setWidth(long value)
Html "poster" attribute.-
Methods inherited from class io.wcm.handler.commons.dom.HtmlElement
add, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractHtmlElementFactory
create, createAnchor, createAnchor, createAnchor, createAudio, createComment, createDiv, createFigCaption, createFigure, createImage, createImage, createImage, createImage, createImage, createNoScript, createScript, createScript, createSource, createSpan, createSpan, createVideo
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractElement
add, addContent, addContent, addContent, addContent, addContent, getAttributeValueAsInteger, getAttributeValueAsLong, setAttribute, setAttribute, setAttributeValueAsInteger, toString, toStringContentOnly
-
Methods inherited from class org.jdom2.Element
addNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributesSize, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, getXMLBaseURI, hasAdditionalNamespaces, hasAttributes, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, sortAttributes, sortChildren, sortContent, sortContent
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent
-
-
-
-
Method Detail
-
isAutoPlay
public boolean isAutoPlay()
Html "autoplay" attribute.- Returns:
- Value of attribute
-
setAutoPlay
public Video setAutoPlay(boolean value)
Html "autoplay" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
isControls
public boolean isControls()
Html "controls" attribute.- Returns:
- Value of attribute
-
setControls
public Video setControls(boolean value)
Html "controls" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
isLoop
public boolean isLoop()
Html "loop" attribute.- Returns:
- Value of attribute
-
setLoop
public Video setLoop(boolean value)
Html "loop" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
isMuted
public boolean isMuted()
Html "muted" attribute.- Returns:
- Value of attribute
-
setMuted
public Video setMuted(boolean value)
Html "muted" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
getPoster
public java.lang.String getPoster()
Html "poster" attribute.- Returns:
- Value of attribute
-
setPoster
public Video setPoster(java.lang.String value)
Html "poster" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
getPreload
public java.lang.String getPreload()
Html "preload" attribute.- Returns:
- Value of attribute
-
setPreload
public Video setPreload(java.lang.String value)
Html "preload" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
getSrc
public java.lang.String getSrc()
Html "src" attribute.- Returns:
- Value of attribute
-
setSrc
public Video setSrc(java.lang.String value)
Html "src" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
getHeight
public long getHeight()
Html "height" attribute.- Returns:
- Value of attribute
-
setHeight
public Video setHeight(long value)
Html "height" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
getWidth
public long getWidth()
Html "poster" attribute.- Returns:
- Value of attribute
-
setWidth
public Video setWidth(long value)
Html "poster" attribute.- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
setEmptyAttributeValueAsBoolean
protected Video setEmptyAttributeValueAsBoolean(java.lang.String attributeName, boolean value)
Description copied from class:HtmlElement
Sets "empty" attribute value as boolean (i.e. for "checked" attribute).- Overrides:
setEmptyAttributeValueAsBoolean
in classHtmlElement
- Parameters:
attributeName
- Attribute namevalue
- Attribute value as boolean- Returns:
- Self reference
-
setId
public Video setId(java.lang.String value)
Description copied from class:HtmlElement
Html "id" attribute.- Overrides:
setId
in classHtmlElement
- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
setCssClass
public Video setCssClass(java.lang.String value)
Description copied from class:HtmlElement
Sets Html "class" attribute - unless you're really sure that you want to replace existing classes, you probably should callHtmlElement.addCssClass(String)
instead.- Overrides:
setCssClass
in classHtmlElement
- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
addCssClass
public Video addCssClass(java.lang.String value)
Description copied from class:HtmlElement
Html "class" attribute. Adds a single, space-separated value while preserving existing ones.- Overrides:
addCssClass
in classHtmlElement
- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
setStyleString
public Video setStyleString(java.lang.String value)
Description copied from class:HtmlElement
Html "style" attribute.- Overrides:
setStyleString
in classHtmlElement
- Parameters:
value
- Value of attribute with style key/value pairs- Returns:
- Self reference
-
setStyle
public Video setStyle(java.lang.String styleAttribute, java.lang.String styleValue)
Description copied from class:HtmlElement
Html "style" attribute. Sets single style attribute value.- Overrides:
setStyle
in classHtmlElement
- Parameters:
styleAttribute
- Style attribute namestyleValue
- Style attribute value- Returns:
- Self reference
-
setTitle
public Video setTitle(java.lang.String value)
Description copied from class:HtmlElement
Html "title" attribute.- Overrides:
setTitle
in classHtmlElement
- Parameters:
value
- Value of attribute- Returns:
- Self reference
-
setData
public Video setData(java.lang.String attributeName, java.lang.String value)
Description copied from class:HtmlElement
Custom Html5 "data-*" attribute.- Overrides:
setData
in classHtmlElement
- Parameters:
attributeName
- Name of HTML5 data attribute (without the 'data-' prefix).value
- Value of attribute- Returns:
- Self reference
-
setAttributeValueAsLong
public Video setAttributeValueAsLong(java.lang.String name, long value)
Description copied from class:AbstractElement
Sets attribute value as long.- Overrides:
setAttributeValueAsLong
in classAbstractElement
- Parameters:
name
- Attribute namevalue
- Attribute value as long- Returns:
- Self reference
-
setText
public Video setText(java.lang.String text)
Description copied from class:AbstractElement
Sets the content of the element to be the text given. All existing text content and non-text context is removed. If this element should have both textual content and nested elements, use
instead. Setting a null text value is equivalent to setting an empty string value.Element.setContent(java.util.Collection<? extends org.jdom2.Content>)
- Overrides:
setText
in classAbstractElement
- Parameters:
text
- new text content for the element- Returns:
- the target element
-
-