@JsType(isNative=true, name="HTMLImageElement", namespace="<global>") public final class Img extends BaseHtmlElement implements IsCastable
BaseEventTarget.EventListenerCallback
Modifier and Type | Field and Description |
---|---|
static String |
TAG
The tag for this element.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the value that reflects the height attribute, indicating the rendered height of the image in CSS pixels.
|
String |
getSrc()
Returns the full URL of the image including base URI.
|
int |
getWidth()
Returns the value that reflects the width attribute, indicating the rendered width of the image in CSS pixels.
|
void |
setHeight(int height)
Sets the value that reflects the height attribute, indicating the rendered height of the image in CSS pixels.
|
void |
setSrc(String src)
Sets the full URL of the image including base URI.
|
void |
setWidth(int width)
Sets the value that reflects the width attribute, indicating the rendered width of the image in CSS pixels.
|
getAbsoluteLeft, getAbsoluteTop, getInnerText, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getParentHtmlElement, getScrollingElement, getStyle, getTabIndex, removeFromParent, setInnerText, setTabIndex
getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByTagName, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getNextElementSibling, getOuterHTML, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributes, remove, setId, setInnerHTML
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, removeAllChildren, removeChild, setNodeValue, setTextContent
addEventListener, removeEventListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as
@JsOverlay public static final String TAG
@JsProperty public int getHeight()
@JsProperty public void setHeight(int height)
height
- the value that reflects the height attribute@JsProperty public String getSrc()
@JsProperty public void setSrc(String src)
src
- the full URL of the image including base URI@JsProperty public int getWidth()
@JsProperty public void setWidth(int width)
width
- the value that reflects the width attribute