Package org.htmlunit.cssparser.dom
Class MediaListImpl
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.MediaListImpl
- All Implemented Interfaces:
Serializable
,Locatable
Implementation of MediaList.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
private boolean
int
int
hashCode()
mediaQuery
(int index) void
Resets the list of media queries.private void
setMediaList
(MediaQueryList mediaList) void
setMediaText
(String mediaText) Parses the given media text.toString()
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Field Details
-
mediaQueries_
-
-
Constructor Details
-
MediaListImpl
Creates new MediaList.- Parameters:
mediaList
- the media list
-
-
Method Details
-
getMediaText
- Returns:
- the media text
-
setMediaText
Parses the given media text.- Parameters:
mediaText
- text to be parsed- Throws:
DOMException
- in case of error
-
getLength
public int getLength()- Returns:
- the media query count
-
mediaQuery
- Parameters:
index
- the position of the media query- Returns:
- the media query at the given pos
-
toString
-
setMedia
Resets the list of media queries.- Parameters:
media
- the media queries string to be parsed
-
setMediaList
-
equalsMedia
-
equals
-
hashCode
public int hashCode()
-