Package org.htmlunit.css
Class CssMediaList
java.lang.Object
org.htmlunit.css.CssMediaList
- All Implemented Interfaces:
Serializable
A MediaList.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.htmlunit.cssparser.dom.MediaListImpl
-
Constructor Summary
ConstructorsConstructorDescriptionCssMediaList
(org.htmlunit.cssparser.dom.MediaListImpl wrappedList) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
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.
-
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
The parsable textual representation of the media list. This is a comma-separated list of media.- Returns:
- the parsable textual representation.
-