|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.DOMMediaList
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 |
protected java.util.List list
Constructor Detail |
public DOMMediaList()
public DOMMediaList(java.lang.String mediaText)
Method Detail |
public java.lang.String getMediaText()
MediaList.getMediaText()
.getMediaText
in interface MediaList
org.w3c.dom.stylesheets.MediaList
DOMException
- SYNTAX_ERR: Raised if the specified string value has a syntax error
and is unparsable.
public void setMediaText(java.lang.String mediaText) throws DOMException
MediaList.setMediaText(String)
.setMediaText
in interface MediaList
org.w3c.dom.stylesheets.MediaList
DOMException
- SYNTAX_ERR: Raised if the specified string value has a syntax error
and is unparsable.
public int getLength()
MediaList.getLength()
.getLength
in interface MediaList
public java.lang.String item(int index)
MediaList.item(int)
.item
in interface MediaList
org.w3c.dom.stylesheets.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 DOMException
MediaList.deleteMedium(String)
.deleteMedium
in interface MediaList
org.w3c.dom.stylesheets.MediaList
oldMedium
- The medium to delete in the media list.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 DOMException
MediaList.appendMedium(String)
.appendMedium
in interface MediaList
org.w3c.dom.stylesheets.MediaList
newMedium
- The new medium to add.DOMException
- INVALID_CHARACTER_ERR: If the medium contains characters that are
invalid in the underlying style language.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |