public class MediaListImpl extends AbstractLocatable implements Serializable
| Constructor and Description |
|---|
MediaListImpl(MediaQueryList mediaList)
Creates new MediaList.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getLength() |
String |
getMediaText() |
int |
hashCode() |
MediaQuery |
mediaQuery(int index) |
void |
setMedia(List<String> media)
Resets the list of media queries.
|
void |
setMediaText(String mediaText)
Parses the given media text.
|
String |
toString() |
getLocator, setLocatorpublic MediaListImpl(MediaQueryList mediaList)
mediaList - the media listpublic String getMediaText()
public void setMediaText(String mediaText) throws DOMException
mediaText - text to be parsedDOMException - in case of errorpublic int getLength()
public MediaQuery mediaQuery(int index)
index - the position of the media querypublic void setMedia(List<String> media)
media - the media queries string to be parsedCopyright © 2021. All rights reserved.