DOM::MediaList Class Reference
TheMediaList
interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented.
More...
#include <css_stylesheet.h>
Public Member Functions | |
MediaList (const MediaList &other) | |
MediaList (MediaListImpl *impl) | |
MediaList & | operator= (const MediaList &other) |
DOM::DOMString | mediaText () const |
void | setMediaText (const DOM::DOMString &value) |
unsigned long | length () const |
DOM::DOMString | item (unsigned long index) const |
void | deleteMedium (const DOM::DOMString &oldMedium) |
void | appendMedium (const DOM::DOMString &newMedium) |
MediaListImpl * | handle () const |
bool | isNull () const |
Protected Attributes | |
MediaListImpl * | impl |
Detailed Description
TheMediaList
interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented.
All media are lowercase strings.
Definition at line 362 of file css_stylesheet.h.
Member Function Documentation
|
The parsable textual representation of the media list. This is a comma-separated list of media.
|
|
see mediaText Definition at line 298 of file css_stylesheet.cpp. |
|
The number of media in the list. The range of valid media is 0 to length-1 inclusive. Definition at line 304 of file css_stylesheet.cpp. |
|
Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.
|
|
Deletes the medium indicated by oldMedium from the list.
|
|
Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.
|
The documentation for this class was generated from the following files: