com.steadystate.css.dom
Class MediaListImpl

java.lang.Object
  extended by com.steadystate.css.dom.CSSOMObjectImpl
      extended by 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

Constructor Summary
MediaListImpl()
          Constructor.
MediaListImpl(org.w3c.css.sac.SACMediaList mediaList)
          Creates new MediaList.
 
Method Summary
 void appendMedium(String newMedium)
           
 void deleteMedium(String oldMedium)
           
 boolean equals(Object obj)
           
 int getLength()
           
 String getMediaText()
           
 int hashCode()
           
 String item(int index)
           
 void setMedia(List<String> media)
           
 void setMediaText(String mediaText)
           
 String toString()
           
 
Methods inherited from class com.steadystate.css.dom.CSSOMObjectImpl
getUserData, getUserDataMap, setUserData, setUserDataMap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.