MediaList interface provides the abstraction of an
ordered collection of media, without defining or constraining how this
collection is implemented. An empty list is the same as a list that
contains the medium "all".
The items in the MediaList are accessible via an integral
index, starting from 0.
See also the Document Object Model (DOM) Level 2 Style Specification.
| Modifier and Type | Method and Description |
|---|---|
| public void | appendMedium(String
The new medium to add. newMedium)Adds the medium |
| public void | deleteMedium(String
The medium to delete in the media list. oldMedium)Deletes the medium indicated by |
| public int | |
| public String | |
| public String | Returns: The medium at theindexth position in the
MediaList, or null if that is not a valid
index.Index into the collection. index)Returns the |
| public void |
| appendMedium | back to summary |
|---|---|
| public void appendMedium(String newMedium) throws DOMException Adds the medium
| |
| deleteMedium | back to summary |
|---|---|
| public void deleteMedium(String oldMedium) throws DOMException Deletes the medium indicated by
| |
| getLength | back to summary |
|---|---|
| public int getLength() The number of media in the list. The range of valid media is
| |
| getMediaText | back to summary |
|---|---|
| public String getMediaText() The parsable textual representation of the media list. This is a comma-separated list of media. | |
| item | back to summary |
|---|---|
| public String item(int index) Returns the
| |
| setMediaText | back to summary |
|---|---|
| public void setMediaText(String mediaText) throws DOMException The parsable textual representation of the media list. This is a comma-separated list of media.
| |