Class CssMediaList

  • All Implemented Interfaces:
    java.io.Serializable

    public class CssMediaList
    extends java.lang.Object
    implements java.io.Serializable
    A MediaList.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.htmlunit.cssparser.dom.MediaListImpl wrappedList_  
    • Constructor Summary

      Constructors 
      Constructor Description
      CssMediaList​(org.htmlunit.cssparser.dom.MediaListImpl wrappedList)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLength()
      Returns the number of media in the list.
      org.htmlunit.cssparser.parser.media.MediaQuery getMediaQuery​(int index)
      Returns the item or items corresponding to the specified index or key.
      java.lang.String getMediaText()
      The parsable textual representation of the media list.
      • Methods inherited from class java.lang.Object

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

      • wrappedList_

        private final org.htmlunit.cssparser.dom.MediaListImpl wrappedList_
    • Constructor Detail

      • CssMediaList

        public CssMediaList​(org.htmlunit.cssparser.dom.MediaListImpl wrappedList)
        Creates a new instance.
        Parameters:
        wrappedList - the wrapped media list that this host object exposes
    • Method Detail

      • getMediaQuery

        public org.htmlunit.cssparser.parser.media.MediaQuery getMediaQuery​(int index)
        Returns the item or items corresponding to the specified index or key.
        Parameters:
        index - the index or key corresponding to the element or elements to return
        Returns:
        the element or elements corresponding to the specified index or key
      • getLength

        public int getLength()
        Returns the number of media in the list.
        Returns:
        the number of media in the list
      • getMediaText

        public java.lang.String getMediaText()
        The parsable textual representation of the media list. This is a comma-separated list of media.
        Returns:
        the parsable textual representation.