Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.steadystate.css.dom
Class MediaListImpl  view MediaListImpl download MediaListImpl.java

java.lang.Object
  extended bycom.steadystate.css.dom.MediaListImpl
All Implemented Interfaces:
org.w3c.dom.stylesheets.MediaList, java.io.Serializable

public class MediaListImpl
extends java.lang.Object
implements org.w3c.dom.stylesheets.MediaList, java.io.Serializable

Version:
$Release$

Field Summary
private  java.util.Vector _media
           
 
Constructor Summary
MediaListImpl(org.w3c.css.sac.SACMediaList mediaList)
           
 
Method Summary
 void appendMedium(java.lang.String newMedium)
          Adds the medium newMedium to the end of the list.
 void deleteMedium(java.lang.String oldMedium)
          Deletes the medium indicated by oldMedium from the list.
 int getLength()
          The number of media in the list.
 java.lang.String getMediaText()
          The parsable textual representation of the media list.
 java.lang.String item(int index)
          Returns the indexth in the list.
 void setMediaText(java.lang.String mediaText)
          The parsable textual representation of the media list.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_media

private java.util.Vector _media
Constructor Detail

MediaListImpl

public MediaListImpl(org.w3c.css.sac.SACMediaList mediaList)
Method Detail

getMediaText

public java.lang.String getMediaText()
Description copied from interface: org.w3c.dom.stylesheets.MediaList
The parsable textual representation of the media list. This is a comma-separated list of media.

Specified by:
getMediaText in interface org.w3c.dom.stylesheets.MediaList

setMediaText

public void setMediaText(java.lang.String mediaText)
                  throws org.w3c.dom.DOMException
Description copied from interface: org.w3c.dom.stylesheets.MediaList
The parsable textual representation of the media list. This is a comma-separated list of media.

Specified by:
setMediaText in interface org.w3c.dom.stylesheets.MediaList

getLength

public int getLength()
Description copied from interface: org.w3c.dom.stylesheets.MediaList
The number of media in the list. The range of valid media is 0 to length-1 inclusive.

Specified by:
getLength in interface org.w3c.dom.stylesheets.MediaList

item

public java.lang.String item(int index)
Description copied from interface: org.w3c.dom.stylesheets.MediaList
Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.

Specified by:
item in interface org.w3c.dom.stylesheets.MediaList

deleteMedium

public void deleteMedium(java.lang.String oldMedium)
                  throws org.w3c.dom.DOMException
Description copied from interface: org.w3c.dom.stylesheets.MediaList
Deletes the medium indicated by oldMedium from the list.

Specified by:
deleteMedium in interface org.w3c.dom.stylesheets.MediaList

appendMedium

public void appendMedium(java.lang.String newMedium)
                  throws org.w3c.dom.DOMException
Description copied from interface: org.w3c.dom.stylesheets.MediaList
Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.

Specified by:
appendMedium in interface org.w3c.dom.stylesheets.MediaList

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).