Home » xml-commons-external-1.4.01-src » org.w3c » dom » stylesheets » [javadoc | source]
org.w3c.dom.stylesheets
public interface: MediaList [javadoc | source] The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium "all".

The items in the MediaList are accessible via an integral index, starting from 0.

See also the Document Object Model (DOM) Level 2 Style Specification.

Method from org.w3c.dom.stylesheets.MediaList Summary:
appendMedium,   deleteMedium,   getLength,   getMediaText,   item,   setMediaText
Method from org.w3c.dom.stylesheets.MediaList Detail:
 public  void appendMedium(String newMedium) throws DOMException
    Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.
 public  void deleteMedium(String oldMedium) throws DOMException
    Deletes the medium indicated by oldMedium from the list.
 public int getLength()
    The number of media in the list. The range of valid media is 0 to length-1 inclusive.
 public String getMediaText()
    The parsable textual representation of the media list. This is a comma-separated list of media.
 public String item(int index)
    Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.
 public  void setMediaText(String mediaText) throws DOMException
    The parsable textual representation of the media list. This is a comma-separated list of media.