Class CssMediaList

java.lang.Object
org.htmlunit.css.CssMediaList
All Implemented Interfaces:
Serializable

public class CssMediaList extends Object implements Serializable
A MediaList.
See Also:
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    int
    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.
    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 Details

    • wrappedList_

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

    • 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 Details

    • 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 String getMediaText()
      The parsable textual representation of the media list. This is a comma-separated list of media.
      Returns:
      the parsable textual representation.