Class Source

    • Constructor Detail

      • Source

        public Source()
    • Method Detail

      • getSrc

        public java.lang.String getSrc()
        Returns the src of this source 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.

        Since:
        8.5.1
      • setSrc

        public void setSrc​(java.lang.String src)
                    throws WrongValueException
        Sets the src of this source 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.5.1
      • getSrcset

        public java.lang.String getSrcset()
        Returns the srcset of this source 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.

        Since:
        8.5.1
      • setSrcset

        public void setSrcset​(java.lang.String srcset)
                       throws WrongValueException
        Sets the srcset of this source 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.5.1
      • getMedia

        public java.lang.String getMedia()
        Returns the media of this source 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.

        Since:
        8.5.1
      • setMedia

        public void setMedia​(java.lang.String media)
                      throws WrongValueException
        Sets the media of this source 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.5.1
      • getSizes

        public java.lang.String getSizes()
        Returns the sizes of this source 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.

        Since:
        8.5.1
      • setSizes

        public void setSizes​(java.lang.String sizes)
                      throws WrongValueException
        Sets the sizes of this source 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.5.1
      • getType

        public java.lang.String getType()
        Returns the type of this source 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.

        Since:
        8.5.1
      • setType

        public void setType​(java.lang.String type)
                     throws WrongValueException
        Sets the type of this source 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.5.1
      • getHeight

        public java.lang.String getHeight()
        Returns the height of this tag.
        Since:
        10.0.0
      • getWidth

        public java.lang.String getWidth()
        Returns the width of this tag.
        Since:
        10.0.0