|
|||||||||
| Home >> All >> com >> steadystate >> css >> [ dom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.steadystate.css.dom
Class MediaListImpl

java.lang.Objectcom.steadystate.css.dom.MediaListImpl
- All Implemented Interfaces:
- org.w3c.dom.stylesheets.MediaList, java.io.Serializable
- public class MediaListImpl
- extends java.lang.Object
- implements org.w3c.dom.stylesheets.MediaList, java.io.Serializable
- extends java.lang.Object
- Version:
- $Release$
| Field Summary | |
private java.util.Vector |
_media
|
| Constructor Summary | |
MediaListImpl(org.w3c.css.sac.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 indexth in the list. |
void |
setMediaText(java.lang.String mediaText)
The parsable textual representation of the media list. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
_media
private java.util.Vector _media
| Constructor Detail |
MediaListImpl
public MediaListImpl(org.w3c.css.sac.SACMediaList mediaList)
| Method Detail |
getMediaText
public java.lang.String getMediaText()
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - The parsable textual representation of the media list. This is a
comma-separated list of media.
- Specified by:
getMediaTextin interfaceorg.w3c.dom.stylesheets.MediaList
setMediaText
public void setMediaText(java.lang.String mediaText) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - The parsable textual representation of the media list. This is a
comma-separated list of media.
- Specified by:
setMediaTextin interfaceorg.w3c.dom.stylesheets.MediaList
getLength
public int getLength()
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - The number of media in the list. The range of valid media is
0tolength-1inclusive.- Specified by:
getLengthin interfaceorg.w3c.dom.stylesheets.MediaList
item
public java.lang.String item(int index)
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - Returns the
indexth in the list. Ifindexis greater than or equal to the number of media in the list, this returnsnull.- Specified by:
itemin interfaceorg.w3c.dom.stylesheets.MediaList
deleteMedium
public void deleteMedium(java.lang.String oldMedium) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - Deletes the medium indicated by
oldMediumfrom the list.- Specified by:
deleteMediumin interfaceorg.w3c.dom.stylesheets.MediaList
appendMedium
public void appendMedium(java.lang.String newMedium) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.stylesheets.MediaList - Adds the medium
newMediumto the end of the list. If thenewMediumis already used, it is first removed.- Specified by:
appendMediumin interfaceorg.w3c.dom.stylesheets.MediaList
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> steadystate >> css >> [ dom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.steadystate.css.dom.MediaListImpl