public class CssMediaList extends Object implements Serializable
Constructor and Description |
---|
CssMediaList(org.htmlunit.cssparser.dom.MediaListImpl wrappedList)
Creates a new instance.
|
Modifier and Type | Method and 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.
|
String |
getMediaText()
The parsable textual representation of the media list.
|
public CssMediaList(org.htmlunit.cssparser.dom.MediaListImpl wrappedList)
wrappedList
- the wrapped media list that this host object exposespublic org.htmlunit.cssparser.parser.media.MediaQuery getMediaQuery(int index)
index
- the index or key corresponding to the element or elements to returnpublic int getLength()
public String getMediaText()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.