Class HTMLImageElementImpl

    • Constructor Detail

      • HTMLImageElementImpl

        public HTMLImageElementImpl()
      • HTMLImageElementImpl

        public HTMLImageElementImpl​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.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​(java.lang.String name)
        Description copied from interface: HTMLImageElement
        The name of the element (for backwards compatibility).
        Specified by:
        setName in interface HTMLImageElement
      • getAlign

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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
      • setSrc

        public void setSrc​(java.lang.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 java.lang.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​(java.lang.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
      • getOnload

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

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

        public final java.awt.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)