public class MediaListImp extends Object implements org.w3c.dom.stylesheets.MediaList
MediaList interface provides the abstraction of an
ordered collection of media, without defining or constraining how this
collection is implemented. An empty list is the same as a list that
contains the medium "all".
The items in the MediaList are accessible via an integral
index, starting from 0.
See also the Document Object Model (DOM) Level 2 Style Specification.
| Modifier and Type | Method and Description |
|---|---|
void |
appendMedium(String newMedium) |
void |
deleteMedium(String oldMedium) |
int |
getLength() |
String |
getMediaText() |
String |
item(int index) |
void |
setMediaText(String mediaText) |
public 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 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 © 2017. All rights reserved.