@ProviderType public final class Image extends HtmlElement<Image>
| Constructor and Description |
|---|
Image()
Initializes html element.
|
Image(String src)
Initializes html element.
|
Image(String src,
long width,
long height)
Initializes html element.
|
Image(String src,
String alt)
Initializes html element.
|
Image(String src,
String alt,
long width,
long height)
Initializes html element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlt()
Html "alt" attribute.
|
int |
getBorder()
Html "border" attribute.
|
long |
getHeight()
Html "height" attribute.
|
int |
getHSpace()
Html "hspace" attribute.
|
String |
getSrc()
Html "src" attribute.
|
int |
getVSpace()
Html "vspace" attribute.
|
long |
getWidth()
Html "width" attribute.
|
Image |
setAlt(String value)
Html "alt" attribute.
|
Image |
setBorder(int value)
Html "border" attribute.
|
Image |
setHeight(long value)
Html "height" attribute.
|
Image |
setHSpace(int value)
Html "hspace" attribute.
|
Image |
setSrc(String value)
Html "src" attribute.
|
Image |
setVSpace(int value)
Html "vspace" attribute.
|
Image |
setWidth(long value)
Html "width" attribute.
|
add, addCssClass, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle, setCssClass, setData, setEmptyAttributeValueAsBoolean, setId, setStyle, setStyleString, setTitlecreate, createAnchor, createAnchor, createAnchor, createAudio, createComment, createDiv, createFigCaption, createFigure, createImage, createImage, createImage, createImage, createImage, createNoScript, createScript, createScript, createSource, createSpan, createSpan, createVideoadd, addContent, addContent, addContent, addContent, addContent, getAttributeValueAsInteger, getAttributeValueAsLong, setAttribute, setAttribute, setAttributeValueAsInteger, setAttributeValueAsLong, setName, setText, toString, toStringContentOnlyaddNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, 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, sortContentequals, getCType, getDocument, getParent, getParentElement, hashCode, setParentpublic Image()
public Image(String src)
src - Html "src" attribute.public Image(String src, String alt)
src - Html "src" attribute.alt - Html "alt" attribute.public Image(String src, long width, long height)
src - Html "src" attribute.width - Html "width" attribute.height - Html "height" attribute.public String getSrc()
public Image setSrc(String value)
value - Value of attributepublic String getAlt()
public Image setAlt(String value)
value - Value of attributepublic long getWidth()
public Image setWidth(long value)
value - Value of attributepublic long getHeight()
public Image setHeight(long value)
value - Value of attributepublic int getBorder()
public Image setBorder(int value)
value - Value of attributepublic int getHSpace()
public Image setHSpace(int value)
value - Value of attributepublic int getVSpace()
public Image setVSpace(int value)
value - Value of attributeCopyright © 2014–2017 wcm.io. All rights reserved.