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

    TAG

    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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    as(com.google.gwt.dom.client.Element elem)
    Assert that the given Element is compatible with this class and automatically typecast it.
    final int
    The natural height of the image in pixels.
    final int
    The 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, useMap

    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, 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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NativeImageElement

      protected NativeImageElement()
  • Method Details

    • as

      public static NativeImageElement as(com.google.gwt.dom.client.Element elem)
      Assert that the given Element is 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: