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, setUserDataMap
public MediaListImpl(SACMediaList mediaList)
mediaList
- the media listpublic MediaListImpl()
public String getMediaText()
getMediaText
in interface org.w3c.dom.stylesheets.MediaList
public String getMediaText(CSSFormat format)
format
- the formatting rulespublic void setMediaText(String mediaText) throws DOMException
setMediaText
in interface org.w3c.dom.stylesheets.MediaList
DOMException
public int getLength()
getLength
in interface org.w3c.dom.stylesheets.MediaList
public String item(int index)
item
in interface org.w3c.dom.stylesheets.MediaList
public MediaQuery mediaQuery(int index)
public void deleteMedium(String oldMedium) throws DOMException
deleteMedium
in interface org.w3c.dom.stylesheets.MediaList
DOMException
public void appendMedium(String newMedium) throws DOMException
appendMedium
in interface org.w3c.dom.stylesheets.MediaList
DOMException
public boolean equals(Object obj)
equals
in class CSSOMObjectImpl
public int hashCode()
hashCode
in class CSSOMObjectImpl
Copyright © 1999–2022. All rights reserved.