Interface ImageTag

  • All Superinterfaces:
    EnumHTMLTags, Tag

    public interface ImageTag
    extends Tag
    The ImageTag represents a HTML image tag.
    Since:
    MicroStrategy Web 8.0.0
    • Method Detail

      • getAlt

        java.lang.String getAlt()
        Returns the value of the attribute alt for the image tag.
        Returns:
        the value of the attribute alt.
      • getHeight

        java.lang.String getHeight()
        Returns the value of the attribute height for the image tag.
        Returns:
        the value of the attribute height.
      • getSrc

        java.lang.String getSrc()
        Returns the value of the attribute src for the image tag.
        Returns:
        the value of the attribute src.
      • getWidth

        java.lang.String getWidth()
        Returns the value of the attribute width for the image tag.
        Returns:
        the value of the attribute width.
      • setAlt

        void setAlt​(java.lang.String alt)
             throws UnmodifiableException
        Sets a value to the attribute alt for the image tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_ALT, alt).
        Parameters:
        alt - a value of the attribute alt.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setHeight

        void setHeight​(java.lang.String height)
                throws UnmodifiableException
        Sets a value to the attribute height for the image tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_HEIGHT, height).
        Parameters:
        height - a value of the attribute height.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setSrc

        void setSrc​(java.lang.String src)
             throws UnmodifiableException
        Sets a value to the attribute src for the image tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_SRC, src).
        Parameters:
        src - a value of the attribute src.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.
      • setWidth

        void setWidth​(java.lang.String width)
               throws UnmodifiableException
        Sets a value to the attribute width for the image tag. It is equivalent to call the method setAttribute(EnumHTMLTags.ATT_WIDTH, width).
        Parameters:
        width - a value of the attribute width.
        Throws:
        UnmodifiableException - thrown if the current tag is read-only.