Package com.levigo.jadice.web.client.dom
Class NativeImageElement
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
com.levigo.jadice.web.client.dom.NativeImageElement
public class NativeImageElement
extends com.google.gwt.dom.client.ImageElement
Since the GWT-class
ImageElement is outdated concerning current HTML5 and JavaScript
standards, this class extends ImageElement and adds the native functions which are missing in
ImageElement.-
Field Summary
Fields inherited from class com.google.gwt.dom.client.ImageElement
TAGFields inherited from class com.google.gwt.dom.client.Element
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUEFields inherited from class com.google.gwt.dom.client.Node
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeImageElementas(com.google.gwt.dom.client.Element elem) Assert that the givenElementis compatible with this class and automatically typecast it.final intThe natural height of the image in pixels.final intThe natural width of the image in pixels.Methods inherited from class com.google.gwt.dom.client.ImageElement
getAlt, getHeight, getSrc, getWidth, is, is, is, isMap, setAlt, setHeight, setIsMap, setSrc, setUseMap, setWidth, useMapMethods 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, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassNameMethods 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, setNodeValueMethods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
NativeImageElement
protected NativeImageElement()
-
-
Method Details
-
as
Assert that the givenElementis compatible with this class and automatically typecast it. -
getNaturalWidth
public final int getNaturalWidth()The natural width of the image in pixels. If not supported, 0 is returned.- See Also:
-
getNaturalHeight
public final int getNaturalHeight()The natural height of the image in pixels. If not supported, 0 is returned.- See Also:
-