Class Source

All Implemented Interfaces:
Serializable, Cloneable, Component, DynamicPropertied, RawId, Scope, ComponentCtrl

public class Source extends AbstractTag
The SOURCE tag.
Author:
jameschu
See Also:
  • Constructor Details

    • Source

      public Source()
  • Method Details

    • getSrc

      public 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(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 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(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 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(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 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(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 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(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 String getHeight()
      Returns the height of this tag.
      Since:
      10.0.0
    • setHeight

      public void setHeight(String height) throws WrongValueException
      Sets the height of this tag.
      Throws:
      WrongValueException
      Since:
      10.0.0
    • getWidth

      public String getWidth()
      Returns the width of this tag.
      Since:
      10.0.0
    • setWidth

      public void setWidth(String width) throws WrongValueException
      Sets the width of this tag.
      Throws:
      WrongValueException
      Since:
      10.0.0