Class CSSMedia

java.lang.Object
io.webfolder.cdp.type.css.CSSMedia

public class CSSMedia
extends java.lang.Object
CSS media rule descriptor
  • Constructor Summary

    Constructors 
    Constructor Description
    CSSMedia()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<MediaQuery> getMediaList()
    Array of media queries.
    SourceRange getRange()
    The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
    CSSMediaSource getSource()
    Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
    java.lang.String getSourceURL()
    URL of the document containing the media query description.
    java.lang.String getStyleSheetId()
    Identifier of the stylesheet containing this object (if exists).
    java.lang.String getText()
    Media query text.
    void setMediaList​(java.util.List<MediaQuery> mediaList)
    Array of media queries.
    void setRange​(SourceRange range)
    The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
    void setSource​(CSSMediaSource source)
    Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
    void setSourceURL​(java.lang.String sourceURL)
    URL of the document containing the media query description.
    void setStyleSheetId​(java.lang.String styleSheetId)
    Identifier of the stylesheet containing this object (if exists).
    void setText​(java.lang.String text)
    Media query text.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getText

      public java.lang.String getText()
      Media query text.
    • setText

      public void setText​(java.lang.String text)
      Media query text.
    • getSource

      public CSSMediaSource getSource()
      Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
    • setSource

      public void setSource​(CSSMediaSource source)
      Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
    • getSourceURL

      public java.lang.String getSourceURL()
      URL of the document containing the media query description.
    • setSourceURL

      public void setSourceURL​(java.lang.String sourceURL)
      URL of the document containing the media query description.
    • getRange

      public SourceRange getRange()
      The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
    • setRange

      public void setRange​(SourceRange range)
      The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
    • getStyleSheetId

      public java.lang.String getStyleSheetId()
      Identifier of the stylesheet containing this object (if exists).
    • setStyleSheetId

      public void setStyleSheetId​(java.lang.String styleSheetId)
      Identifier of the stylesheet containing this object (if exists).
    • getMediaList

      public java.util.List<MediaQuery> getMediaList()
      Array of media queries.
    • setMediaList

      public void setMediaList​(java.util.List<MediaQuery> mediaList)
      Array of media queries.