Package io.wcm.handler.commons.dom
Class Image
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Element
-
- io.wcm.handler.commons.dom.AbstractElement<T>
-
- io.wcm.handler.commons.dom.AbstractHtmlElementFactory<T>
-
- io.wcm.handler.commons.dom.HtmlElement<Image>
-
- io.wcm.handler.commons.dom.Image
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.jdom2.NamespaceAware,org.jdom2.Parent
@ProviderType public final class Image extends HtmlElement<Image>
Html image (img) element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Image()Initializes html element.Image(java.lang.String src)Initializes html element.Image(java.lang.String src, long width, long height)Initializes html element.Image(java.lang.String src, java.lang.String alt)Initializes html element.Image(java.lang.String src, java.lang.String alt, long width, long height)Initializes html element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlt()Html "alt" attribute.intgetBorder()Html "border" attribute.longgetHeight()Html "height" attribute.intgetHSpace()Html "hspace" attribute.java.lang.StringgetSizes()Html "sizes" attribute.java.lang.StringgetSrc()Html "src" attribute.java.lang.StringgetSrcSet()Html "srcset" attribute.java.lang.StringgetUseMap()Html "usemap" attribute.intgetVSpace()Html "vspace" attribute.longgetWidth()Html "width" attribute.ImagesetAlt(java.lang.String value)Html "alt" attribute.ImagesetBorder(int value)Html "border" attribute.ImagesetHeight(long value)Html "height" attribute.ImagesetHSpace(int value)Html "hspace" attribute.ImagesetSizes(java.lang.String value)Html "sizes" attribute.ImagesetSrc(java.lang.String value)Html "src" attribute.ImagesetSrcSet(java.lang.String value)Html "srcset" attribute.ImagesetUseMap(java.lang.String value)Html "usemap" attribute.ImagesetVSpace(int value)Html "vspace" attribute.ImagesetWidth(long value)Html "width" attribute.-
Methods inherited from class io.wcm.handler.commons.dom.HtmlElement
add, addCssClass, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle, setCssClass, setData, setEmptyAttributeValueAsBoolean, setId, setStyle, setStyleString, setTitle
-
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, setAttributeValueAsLong, setName, setText, 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, setNamespace, sortAttributes, sortChildren, sortContent, sortContent
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent
-
-
-
-
Constructor Detail
-
Image
public Image()
Initializes html element.
-
Image
public Image(java.lang.String src)
Initializes html element.- Parameters:
src- Html "src" attribute.
-
Image
public Image(java.lang.String src, java.lang.String alt)Initializes html element.- Parameters:
src- Html "src" attribute.alt- Html "alt" attribute.
-
Image
public Image(java.lang.String src, long width, long height)Initializes html element.- Parameters:
src- Html "src" attribute.width- Html "width" attribute.height- Html "height" attribute.
-
Image
public Image(java.lang.String src, java.lang.String alt, long width, long height)Initializes html element.- Parameters:
src- Html "src" attribute.alt- Html "alt" attribute.width- Html "width" attribute.height- Html "height" attribute.
-
-
Method Detail
-
getSrc
public java.lang.String getSrc()
Html "src" attribute.- Returns:
- Value of attribute
-
setSrc
public Image setSrc(java.lang.String value)
Html "src" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getSrcSet
public java.lang.String getSrcSet()
Html "srcset" attribute.- Returns:
- Value of attribute
-
setSrcSet
public Image setSrcSet(java.lang.String value)
Html "srcset" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getSizes
public java.lang.String getSizes()
Html "sizes" attribute.- Returns:
- Value of attribute
-
setSizes
public Image setSizes(java.lang.String value)
Html "sizes" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getAlt
public java.lang.String getAlt()
Html "alt" attribute.- Returns:
- Value of attribute
-
setAlt
public Image setAlt(java.lang.String value)
Html "alt" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getWidth
public long getWidth()
Html "width" attribute.- Returns:
- Value of attribute
-
setWidth
public Image setWidth(long value)
Html "width" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getHeight
public long getHeight()
Html "height" attribute.- Returns:
- Value of attribute
-
setHeight
public Image setHeight(long value)
Html "height" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getBorder
public int getBorder()
Html "border" attribute.- Returns:
- Value of attribute
-
setBorder
public Image setBorder(int value)
Html "border" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getHSpace
public int getHSpace()
Html "hspace" attribute.- Returns:
- Value of attribute
-
setHSpace
public Image setHSpace(int value)
Html "hspace" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getVSpace
public int getVSpace()
Html "vspace" attribute.- Returns:
- Value of attribute
-
setVSpace
public Image setVSpace(int value)
Html "vspace" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getUseMap
public java.lang.String getUseMap()
Html "usemap" attribute.- Returns:
- Value of attribute
-
setUseMap
public Image setUseMap(java.lang.String value)
Html "usemap" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
-