Class ImageElement


@TagName("img") public class ImageElement extends Element
Embedded image.
See Also:
  • Field Details

  • Constructor Details

    • ImageElement

      protected ImageElement()
  • Method Details

    • 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 String getAlt()
      Alternate text for user agents not rendering the normal content of this element.
      See Also:
    • getHeight

      public final int getHeight()
      Height of the image in pixels.
      See Also:
    • getSrc

      public final String getSrc()
      URI designating the source of this image.
      See Also:
    • getWidth

      public final int getWidth()
      The width of the image in pixels.
      See Also:
    • isMap

      public final boolean isMap()
      Use server-side image map.
      See Also:
    • setAlt

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

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

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

      public final void setSrc(String src)
      URI designating the source of this image.
      See Also:
    • setUseMap

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

      public final void setWidth(int width)
      The width of the image in pixels.
      See Also:
    • useMap

      public final boolean useMap()
      Use client-side image map.
      See Also: