|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steadystate.css.dom.MediaListImpl
public class MediaListImpl
Constructor Summary | |
---|---|
MediaListImpl(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 index th in the list. |
void |
setMediaText(java.lang.String mediaText)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MediaListImpl(SACMediaList mediaList)
Method Detail |
---|
public java.lang.String getMediaText()
MediaList
getMediaText
in interface MediaList
public void setMediaText(java.lang.String mediaText) throws org.w3c.dom.DOMException
setMediaText
in interface MediaList
org.w3c.dom.DOMException
public int getLength()
MediaList
0
to length-1
inclusive.
getLength
in interface MediaList
public java.lang.String item(int index)
MediaList
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.
index
th position in the
MediaList
, or null
if that is not a valid
index.public void deleteMedium(java.lang.String oldMedium) throws org.w3c.dom.DOMException
MediaList
oldMedium
from the list.
deleteMedium
in interface MediaList
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.
oldMedium
is not in the
list.public void appendMedium(java.lang.String newMedium) throws org.w3c.dom.DOMException
MediaList
newMedium
to the end of the list. If the
newMedium
is already used, it is first removed.
appendMedium
in interface MediaList
org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: If the medium contains characters that are
invalid in the underlying style language.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |