Interface HamletSpec.IMG

All Superinterfaces:
HamletSpec.__, HamletSpec._Child, HamletSpec.Attrs, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.I18nAttrs
All Known Implementing Classes:
Hamlet.IMG
Enclosing class:
HamletSpec

public static interface HamletSpec.IMG extends HamletSpec.Attrs, HamletSpec._Child
  • Method Details

    • $src

      URI of image to embed
      Parameters:
      uri - the URI
      Returns:
      the current element builder
    • $alt

      HamletSpec.IMG $alt(String desc)
      short description
      Parameters:
      desc - the description
      Returns:
      the current element builder
    • $height

      HamletSpec.IMG $height(int pixels)
      override height
      Parameters:
      pixels - the height
      Returns:
      the current element builder
    • $height

      HamletSpec.IMG $height(String cdata)
      override height
      Parameters:
      cdata - the height (can use %, * etc.)
      Returns:
      the current element builder
    • $width

      HamletSpec.IMG $width(int pixels)
      override width
      Parameters:
      pixels - the width
      Returns:
      the current element builder
    • $width

      HamletSpec.IMG $width(String cdata)
      override width
      Parameters:
      cdata - the width (can use %, * etc.)
      Returns:
      the current element builder
    • $usemap

      HamletSpec.IMG $usemap(String uri)
      use client-side image map
      Parameters:
      uri - the URI
      Returns:
      the current element builder
    • $ismap

      HamletSpec.IMG $ismap()
      use server-side image map
      Returns:
      the current element builder