public class MediaListImpl extends AbstractLocatable implements org.w3c.dom.stylesheets.MediaList, Serializable
MediaList.| Constructor and Description |
|---|
MediaListImpl(MediaQueryList mediaList)
Creates new MediaList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendMedium(String newMedium) |
void |
deleteMedium(String oldMedium) |
boolean |
equals(Object obj) |
int |
getLength() |
String |
getMediaText() |
int |
hashCode() |
String |
item(int index) |
MediaQuery |
mediaQuery(int index) |
void |
setMedia(List<String> media) |
void |
setMediaText(String mediaText) |
String |
toString() |
getLocator, setLocatorpublic MediaListImpl(MediaQueryList mediaList)
mediaList - the media listpublic String getMediaText()
getMediaText in interface org.w3c.dom.stylesheets.MediaListpublic void setMediaText(String mediaText) throws DOMException
setMediaText in interface org.w3c.dom.stylesheets.MediaListDOMExceptionpublic int getLength()
getLength in interface org.w3c.dom.stylesheets.MediaListpublic String item(int index)
item in interface org.w3c.dom.stylesheets.MediaListpublic MediaQuery mediaQuery(int index)
index - the position of the media querypublic void deleteMedium(String oldMedium) throws DOMException
deleteMedium in interface org.w3c.dom.stylesheets.MediaListDOMExceptionpublic void appendMedium(String newMedium) throws DOMException
appendMedium in interface org.w3c.dom.stylesheets.MediaListDOMExceptionCopyright © 2018. All rights reserved.