public class MediaListImpl extends CSSOMObjectImpl implements org.w3c.dom.stylesheets.MediaList
MediaList.| Constructor and Description |
|---|
MediaListImpl()
Constructor.
|
MediaListImpl(SACMediaList 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() |
String |
getMediaText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
int |
hashCode() |
String |
item(int index) |
MediaQuery |
mediaQuery(int index) |
void |
setMedia(List<String> media) |
void |
setMediaText(String mediaText) |
String |
toString() |
getUserData, getUserDataMap, setUserData, setUserDataMappublic MediaListImpl(SACMediaList mediaList)
mediaList - the media listpublic MediaListImpl()
public String getMediaText()
getMediaText in interface org.w3c.dom.stylesheets.MediaListpublic String getMediaText(CSSFormat format)
format - the formatting rulespublic 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)
public 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.MediaListDOMExceptionpublic boolean equals(Object obj)
equals in class CSSOMObjectImplpublic int hashCode()
hashCode in class CSSOMObjectImplCopyright © 1999–2022. All rights reserved.