Class MediaQueryList

java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.parser.media.MediaQueryList
All Implemented Interfaces:
Locatable

public class MediaQueryList extends AbstractLocatable
Implementation of MediaQueryList.
Author:
Ronald Brill
  • Constructor Details

    • MediaQueryList

      public MediaQueryList()
      Ctor.
  • Method Details

    • getLength

      public int getLength()

      getLength.

      Returns:
      the number of mediaQueries
    • getMediaQueries

      public List<MediaQuery> getMediaQueries()

      getMediaQueries.

      Returns:
      the list of media queries
    • add

      public void add(MediaQuery mediaQuery)
      Adds a new media query to the list.
      Parameters:
      mediaQuery - the media query to add
    • toString

      public String toString()
      Overrides:
      toString in class Object