Class HTMLImageElementImpl

All Implemented Interfaces:
ModelNode, CSS2PropertiesContext, ScriptableDelegate, Element, HTMLElement, HTMLImageElement, Node

public class HTMLImageElementImpl extends HTMLAbstractUIElement implements HTMLImageElement
  • Constructor Details

    • HTMLImageElementImpl

      public HTMLImageElementImpl()
    • HTMLImageElementImpl

      public HTMLImageElementImpl(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: HTMLImageElement
      The name of the element (for backwards compatibility).
      Specified by:
      getName in interface HTMLImageElement
    • setName

      public void setName(String name)
      Description copied from interface: HTMLImageElement
      The name of the element (for backwards compatibility).
      Specified by:
      setName in interface HTMLImageElement
    • getAlign

      public String getAlign()
      Description copied from interface: HTMLImageElement
      Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
      Specified by:
      getAlign in interface HTMLImageElement
    • setAlign

      public void setAlign(String align)
      Description copied from interface: HTMLImageElement
      Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
      Specified by:
      setAlign in interface HTMLImageElement
    • getAlt

      public String getAlt()
      Description copied from interface: HTMLImageElement
      Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.01.
      Specified by:
      getAlt in interface HTMLImageElement
    • setAlt

      public void setAlt(String alt)
      Description copied from interface: HTMLImageElement
      Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.01.
      Specified by:
      setAlt in interface HTMLImageElement
    • getBorder

      public String getBorder()
      Description copied from interface: HTMLImageElement
      Width of border around image. See the border attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1] .
      Specified by:
      getBorder in interface HTMLImageElement
    • setBorder

      public void setBorder(String border)
      Description copied from interface: HTMLImageElement
      Width of border around image. See the border attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1] .
      Specified by:
      setBorder in interface HTMLImageElement
    • getHeight

      public int getHeight()
      Description copied from interface: HTMLImageElement
      Height of the image in pixels. See the height attribute definition in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      getHeight in interface HTMLImageElement
    • setHeight

      public void setHeight(int height)
      Description copied from interface: HTMLImageElement
      Height of the image in pixels. See the height attribute definition in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      setHeight in interface HTMLImageElement
    • getHspace

      public int getHspace()
      Description copied from interface: HTMLImageElement
      Horizontal space to the left and right of this image in pixels. See the hspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      getHspace in interface HTMLImageElement
    • setHspace

      public void setHspace(int hspace)
      Description copied from interface: HTMLImageElement
      Horizontal space to the left and right of this image in pixels. See the hspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      setHspace in interface HTMLImageElement
    • getIsMap

      public boolean getIsMap()
      Description copied from interface: HTMLImageElement
      Use server-side image map. See the ismap attribute definition in HTML 4.01.
      Specified by:
      getIsMap in interface HTMLImageElement
    • setIsMap

      public void setIsMap(boolean isMap)
      Description copied from interface: HTMLImageElement
      Use server-side image map. See the ismap attribute definition in HTML 4.01.
      Specified by:
      setIsMap in interface HTMLImageElement
    • getLongDesc

      public String getLongDesc()
      Description copied from interface: HTMLImageElement
      URI [IETF RFC 2396] designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
      Specified by:
      getLongDesc in interface HTMLImageElement
    • setLongDesc

      public void setLongDesc(String longDesc)
      Description copied from interface: HTMLImageElement
      URI [IETF RFC 2396] designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
      Specified by:
      setLongDesc in interface HTMLImageElement
    • getSrc

      public String getSrc()
      Description copied from interface: HTMLImageElement
      URI [IETF RFC 2396] designating the source of this image. See the src attribute definition in HTML 4.01.
      Specified by:
      getSrc in interface HTMLImageElement
    • setSrc

      public void setSrc(String src)
      Sets the image URI and starts to load the image. Note that an HtmlRendererContext should be available to the HTML document for images to be loaded.
      Specified by:
      setSrc in interface HTMLImageElement
    • getUseMap

      public String getUseMap()
      Description copied from interface: HTMLImageElement
      Use client-side image map. See the usemap attribute definition in HTML 4.01.
      Specified by:
      getUseMap in interface HTMLImageElement
    • setUseMap

      public void setUseMap(String useMap)
      Description copied from interface: HTMLImageElement
      Use client-side image map. See the usemap attribute definition in HTML 4.01.
      Specified by:
      setUseMap in interface HTMLImageElement
    • getVspace

      public int getVspace()
      Description copied from interface: HTMLImageElement
      Vertical space above and below this image in pixels. See the vspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was "DOMString" in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      getVspace in interface HTMLImageElement
    • setVspace

      public void setVspace(int vspace)
      Description copied from interface: HTMLImageElement
      Vertical space above and below this image in pixels. See the vspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was "DOMString" in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      setVspace in interface HTMLImageElement
    • getWidth

      public int getWidth()
      Description copied from interface: HTMLImageElement
      The width of the image in pixels. See the width attribute definition in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      getWidth in interface HTMLImageElement
    • setWidth

      public void setWidth(int width)
      Description copied from interface: HTMLImageElement
      The width of the image in pixels. See the width attribute definition in HTML 4.01. Note that the type of this attribute was DOMString in DOM Level 1 HTML [DOM Level 1].
      Specified by:
      setWidth in interface HTMLImageElement
    • assignAttributeField

      protected void assignAttributeField(String normalName, String value)
      Overrides:
      assignAttributeField in class HTMLAbstractUIElement
    • getOnload

      public org.mozilla.javascript.Function getOnload()
    • setOnload

      public void setOnload(org.mozilla.javascript.Function onload)
    • getImage

      public final Image getImage()
    • addImageListener

      public void addImageListener(ImageListener listener)
      Adds a listener of image loading events. The listener gets called right away if there's already an image.
      Parameters:
      listener -
    • removeImageListener

      public void removeImageListener(ImageListener listener)
    • createRenderState

      protected RenderState createRenderState(RenderState prevRenderState)
      Overrides:
      createRenderState in class HTMLElementImpl