com.steadystate.css.dom
Class MediaListImpl
java.lang.Object
com.steadystate.css.dom.MediaListImpl
- MediaList, Serializable
public class MediaListImpl
extends java.lang.Object
void | appendMedium(String newMedium) - Adds the medium
newMedium to the end of the list.
|
void | deleteMedium(String oldMedium) - Deletes the medium indicated by
oldMedium from the list.
|
int | getLength() - The number of media in the list.
|
String | getMediaText() - The parsable textual representation of the media list.
|
String | item(int index) - Returns the
index th in the list.
|
void | setMediaText(String mediaText)
|
String | toString()
|
appendMedium
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.
- appendMedium in interface MediaList
deleteMedium
public void deleteMedium(String oldMedium)
throws DOMException
Deletes the medium indicated by oldMedium
from the list.
- deleteMedium in interface MediaList
getLength
public int getLength()
The number of media in the list. The range of valid media is
0
to length-1
inclusive.
- getLength in interface MediaList
getMediaText
public String getMediaText()
The parsable textual representation of the media list. This is a
comma-separated list of media.
- getMediaText in interface MediaList
item
public String item(int index)
Returns the index
th in the list. If index
is
greater than or equal to the number of media in the list, this
returns null
.
- item in interface MediaList
index
- Index into the collection.
- The medium at the
index
th position in the
MediaList
, or null
if that is not a valid
index.
setMediaText
public void setMediaText(String mediaText)
throws DOMException
- setMediaText in interface MediaList
toString
public String toString()