com.steadystate.css.dom
Class MediaListImpl
java.lang.Object
com.steadystate.css.dom.CSSOMObjectImpl
com.steadystate.css.dom.MediaListImpl
- All Implemented Interfaces:
- CSSOMObject, Serializable, org.w3c.dom.stylesheets.MediaList
public class MediaListImpl
- extends CSSOMObjectImpl
- implements org.w3c.dom.stylesheets.MediaList
Implements MediaList
.
- Author:
- David Schweinsberg, rbri
- See Also:
- Serialized Form
MediaListImpl
public MediaListImpl(org.w3c.css.sac.SACMediaList mediaList)
- Creates new MediaList.
- Parameters:
mediaList
- the media list
MediaListImpl
public MediaListImpl()
- Constructor.
The attributes are null.
getMediaText
public String getMediaText()
- Specified by:
getMediaText
in interface org.w3c.dom.stylesheets.MediaList
setMediaText
public void setMediaText(String mediaText)
throws DOMException
- Specified by:
setMediaText
in interface org.w3c.dom.stylesheets.MediaList
- Throws:
DOMException
getLength
public int getLength()
- Specified by:
getLength
in interface org.w3c.dom.stylesheets.MediaList
item
public String item(int index)
- Specified by:
item
in interface org.w3c.dom.stylesheets.MediaList
deleteMedium
public void deleteMedium(String oldMedium)
throws DOMException
- Specified by:
deleteMedium
in interface org.w3c.dom.stylesheets.MediaList
- Throws:
DOMException
appendMedium
public void appendMedium(String newMedium)
throws DOMException
- Specified by:
appendMedium
in interface org.w3c.dom.stylesheets.MediaList
- Throws:
DOMException
toString
public String toString()
- Overrides:
toString
in class Object
setMedia
public void setMedia(List<String> media)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class CSSOMObjectImpl
hashCode
public int hashCode()
- Overrides:
hashCode
in class CSSOMObjectImpl
Copyright © 2013. All rights reserved.