Class CSSMedia


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

      Nested Classes 
      Modifier and Type Class Description
      static class  CSSMedia.Source  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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).
      CSSMedia.Source 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.
      StyleSheetId getStyleSheetId()
      Identifier of the stylesheet containing this object (if exists).
      java.lang.String getText()
      Media query text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getText

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

        public CSSMedia.Source 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.
      • getSourceURL

        public java.lang.String getSourceURL()
        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).
      • getStyleSheetId

        public StyleSheetId getStyleSheetId()
        Identifier of the stylesheet containing this object (if exists).
      • getMediaList

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