org.apache.batik.css
Class DOMMediaList

java.lang.Object
  |
  +--org.apache.batik.css.DOMMediaList
All Implemented Interfaces:
MediaList

public class DOMMediaList
extends java.lang.Object
implements MediaList

This class implements the MediaList interface.


Field Summary
protected  java.util.List list
          The list implementation
 
Constructor Summary
DOMMediaList()
          Creates a new MediaList object.
DOMMediaList(java.lang.String mediaText)
          Creates a new MediaList object.
 
Method Summary
 void appendMedium(java.lang.String newMedium)
          DOM: Implements MediaList.appendMedium(String).
 void deleteMedium(java.lang.String oldMedium)
          DOM: Implements MediaList.deleteMedium(String).
 int getLength()
          DOM: Implements MediaList.getLength().
 java.lang.String getMediaText()
          DOM: Implements MediaList.getMediaText().
 java.lang.String item(int index)
          DOM: Implements MediaList.item(int).
 void setMediaText(java.lang.String mediaText)
          DOM: Implements MediaList.setMediaText(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.List list
The list implementation
Constructor Detail

DOMMediaList

public DOMMediaList()
Creates a new MediaList object.

DOMMediaList

public DOMMediaList(java.lang.String mediaText)
Creates a new MediaList object.
Method Detail

getMediaText

public java.lang.String getMediaText()
DOM: Implements MediaList.getMediaText().
Specified by:
getMediaText in interface MediaList
Following copied from interface: org.w3c.dom.stylesheets.MediaList
Throws:
DOMException - SYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.

setMediaText

public void setMediaText(java.lang.String mediaText)
                  throws DOMException
DOM: Implements MediaList.setMediaText(String).
Specified by:
setMediaText in interface MediaList
Following copied from interface: org.w3c.dom.stylesheets.MediaList
Throws:
DOMException - SYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.

getLength

public int getLength()
DOM: Implements MediaList.getLength().
Specified by:
getLength in interface MediaList

item

public java.lang.String item(int index)
DOM: Implements MediaList.item(int).
Specified by:
item in interface MediaList
Following copied from interface: org.w3c.dom.stylesheets.MediaList
Parameters:
index - Index into the collection.
Returns:
The medium at the indexth position in the MediaList, or null if that is not a valid index.

deleteMedium

public void deleteMedium(java.lang.String oldMedium)
                  throws DOMException
DOM: Implements MediaList.deleteMedium(String).
Specified by:
deleteMedium in interface MediaList
Following copied from interface: org.w3c.dom.stylesheets.MediaList
Parameters:
oldMedium - The medium to delete in the media list.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.
NOT_FOUND_ERR: Raised if oldMedium is not in the list.

appendMedium

public void appendMedium(java.lang.String newMedium)
                  throws DOMException
DOM: Implements MediaList.appendMedium(String).
Specified by:
appendMedium in interface MediaList
Following copied from interface: org.w3c.dom.stylesheets.MediaList
Parameters:
newMedium - The new medium to add.
Throws:
DOMException - INVALID_CHARACTER_ERR: If the medium contains characters that are invalid in the underlying style language.
NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.