Package com.google.gwt.dom.client
Class ImageElement
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Node
com.google.gwt.dom.client.Element
com.google.gwt.dom.client.ImageElement
Embedded image.
- See Also:
-
Field Summary
Fields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE
Fields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageElement
Assert that the givenElement
is compatible with this class and automatically typecast it.final String
getAlt()
Alternate text for user agents not rendering the normal content of this element.final int
Height of the image in pixels.final String
getSrc()
URI designating the source of this image.final int
getWidth()
The width of the image in pixels.static boolean
Determines whether the givenJavaScriptObject
can be cast to this class.static boolean
Determine whether the givenElement
can be cast to this class.static boolean
Determine whether the givenNode
can be cast to this class.final boolean
isMap()
Use server-side image map.final void
Alternate text for user agents not rendering the normal content of this element.final void
setHeight
(int height) Height of the image in pixels.final void
setIsMap
(boolean isMap) Use server-side image map.final void
URI designating the source of this image.final void
setUseMap
(boolean useMap) Use client-side image map.final void
setWidth
(int width) The width of the image in pixels.final boolean
useMap()
Use client-side image map.Methods inherited from class com.google.gwt.dom.client.Element
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasClassName, hasTagName, indexOfName, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassName
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
ImageElement
protected ImageElement()
-
-
Method Details
-
as
Assert that the givenElement
is compatible with this class and automatically typecast it. -
is
Determines whether the givenJavaScriptObject
can be cast to this class. Anull
object will cause this method to returnfalse
. -
is
Determine whether the givenNode
can be cast to this class. Anull
node will cause this method to returnfalse
. -
is
Determine whether the givenElement
can be cast to this class. Anull
node will cause this method to returnfalse
. -
getAlt
Alternate text for user agents not rendering the normal content of this element.- See Also:
-
getHeight
public final int getHeight()Height of the image in pixels.- See Also:
-
getSrc
URI designating the source of this image.- See Also:
-
getWidth
public final int getWidth()The width of the image in pixels.- See Also:
-
isMap
public final boolean isMap()Use server-side image map.- See Also:
-
setAlt
Alternate text for user agents not rendering the normal content of this element.- See Also:
-
setHeight
public final void setHeight(int height) Height of the image in pixels.- See Also:
-
setIsMap
public final void setIsMap(boolean isMap) Use server-side image map.- See Also:
-
setSrc
URI designating the source of this image.- See Also:
-
setUseMap
public final void setUseMap(boolean useMap) Use client-side image map.- See Also:
-
setWidth
public final void setWidth(int width) The width of the image in pixels.- See Also:
-
useMap
public final boolean useMap()Use client-side image map.- See Also:
-