Interface SourceBuilder

All Superinterfaces:
ElementBuilderBase<SourceBuilder>
All Known Implementing Classes:
DomSourceBuilder, HtmlSourceBuilder

public interface SourceBuilder extends ElementBuilderBase<SourceBuilder>
Builds an source element.
  • Method Details

    • src

      Sets the source URL for the media.
      Parameters:
      url - a String URL
    • type

      SourceBuilder type(String type)
      Sets the type of media represented by the src. The browser will look at the type when deciding which source files to request from the server.
      Parameters:
      type - the media type
      See Also: