Class ImageElement

    • Constructor Detail

      • ImageElement

        protected ImageElement()
    • Method Detail

      • as

        public static ImageElement as​(Element elem)
        Assert that the given Element is compatible with this class and automatically typecast it.
      • is

        public static boolean is​(JavaScriptObject o)
        Determines whether the given JavaScriptObject can be cast to this class. A null object will cause this method to return false.
      • is

        public static boolean is​(Node node)
        Determine whether the given Node can be cast to this class. A null node will cause this method to return false.
      • is

        public static boolean is​(Element elem)
        Determine whether the given Element can be cast to this class. A null node will cause this method to return false.
      • getAlt

        public final java.lang.String getAlt()
        Alternate text for user agents not rendering the normal content of this element.
        See Also:
        W3C HTML Specification
      • getSrc

        public final java.lang.String getSrc()
        URI designating the source of this image.
        See Also:
        W3C HTML Specification
      • setAlt

        public final void setAlt​(java.lang.String alt)
        Alternate text for user agents not rendering the normal content of this element.
        See Also:
        W3C HTML Specification
      • setHeight

        public final void setHeight​(int height)
        Height of the image in pixels.
        See Also:
        W3C HTML Specification
      • setIsMap

        public final void setIsMap​(boolean isMap)
        Use server-side image map.
        See Also:
        W3C HTML Specification
      • setSrc

        public final void setSrc​(java.lang.String src)
        URI designating the source of this image.
        See Also:
        W3C HTML Specification
      • setUseMap

        public final void setUseMap​(boolean useMap)
        Use client-side image map.
        See Also:
        W3C HTML Specification
      • setWidth

        public final void setWidth​(int width)
        The width of the image in pixels.
        See Also:
        W3C HTML Specification