DOM::MediaList Class Reference
The MediaList
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 Methods | |
DOM::DOMString | mediaText () const |
The parsable textual representation of the media list. | |
void | setMediaText (const DOM::DOMString &value) |
see mediaText | |
unsigned long | length () const |
The number of media in the list. | |
DOM::DOMString | item (unsigned long index) const |
Returns the indexth in the list. | |
void | deleteMedium (const DOM::DOMString &oldMedium) |
Deletes the medium indicated by oldMedium from the list. | |
void | appendMedium (const DOM::DOMString &newMedium) |
Adds the medium newMedium to the end of the list. |
Detailed Description
The MediaList
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 364 of file css_stylesheet.h.
Member Function Documentation
|
The parsable textual representation of the media list. This is a comma-separated list of media.
Definition at line 298 of file css_stylesheet.cpp. |
|
see mediaText
Definition at line 304 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 310 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.
Definition at line 316 of file css_stylesheet.cpp. |
|
Deletes the medium indicated by oldMedium from the list.
Definition at line 322 of file css_stylesheet.cpp. |
|
Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.
Definition at line 328 of file css_stylesheet.cpp. |
The documentation for this class was generated from the following files: