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 Summary
Constructors Constructor Description MediaQueryList()Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(MediaQuery mediaQuery)Adds a new media query to the list.intgetLength()getLength.List<MediaQuery>getMediaQueries()getMediaQueries.StringtoString()-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
-
-
-
Method Detail
-
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
-
-