Class Img

    • Constructor Detail

      • Img

        public Img()
    • Method Detail

      • getAlt

        public java.lang.String getAlt()
        Returns the alt of this img tag.
        Since:
        8.0.3
      • getCrossorigin

        public java.lang.String getCrossorigin()
        Returns the crossorigin of this img tag.
        Since:
        8.0.3
      • setCrossorigin

        public void setCrossorigin​(java.lang.String crossorigin)
                            throws WrongValueException
        Sets the crossorigin of this img tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.0.3
      • getHeight

        public java.lang.String getHeight()
        Returns the height of this img tag.
        Since:
        8.0.3
      • isIsmap

        public boolean isIsmap()
        Returns the ismap of this img tag.
        Since:
        8.0.3
      • getSrc

        public java.lang.String getSrc()
        Returns the src of this img tag.
        Since:
        8.0.3
      • getUsemap

        public java.lang.String getUsemap()
        Returns the usemap of this img tag.
        Since:
        8.0.3
      • getWidth

        public java.lang.String getWidth()
        Returns the width of this img tag.
        Since:
        8.0.3
      • getDecoding

        public java.lang.String getDecoding()
        Returns the decoding of this tag.
        Since:
        10.0.0
      • getLoading

        public java.lang.String getLoading()
        Returns the loading of this tag.
        Since:
        10.0.0
      • getReferrerpolicy

        public java.lang.String getReferrerpolicy()
        Returns the referrerpolicy of this tag.
        Since:
        10.0.0
      • setReferrerpolicy

        public void setReferrerpolicy​(java.lang.String referrerpolicy)
                               throws WrongValueException
        Sets the referrerpolicy of this tag.
        Throws:
        WrongValueException
        Since:
        10.0.0
      • getSizes

        public java.lang.String getSizes()
        Returns the sizes of this tag.
        Since:
        10.0.0
      • getSrcset

        public java.lang.String getSrcset()
        Returns the srcset of this tag.
        Since:
        10.0.0