Interface IImage

All Superinterfaces:
IComponent<IImage>, IHasId<IImage>, IHasTooltip<IImage>, ILinkable<IImage>

public interface IImage extends ILinkable<IImage>, IHasTooltip<IImage>, IComponent<IImage>
  • Method Details

    • setUrl

      IImage setUrl(String url)
      Set the url from which the image shall be fetched
      Parameters:
      url - The url
    • setWidth

      IImage setWidth(int width)
      Set the width of the image in pixels
      Parameters:
      width - The width
    • setHeight

      IImage setHeight(int height)
      Set the height of the image in pixels
      Parameters:
      height - The height
    • setImageData

      void setImageData(byte[] bytes, String contentType)
      Set the bytes of the image along with the format
      Parameters:
      bytes - The bytes
      contentType - File format. E.g. image/png, image/jpg, etc.
    • setObjectFit

      IImage setObjectFit(ObjectFit objetFit)
      Set the `object-fit` CSS property of the image.
      Parameters:
      objetFit -
      Returns:
      the image object