.TH "DOM::MediaList" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::MediaList \- The \fC\fBMediaList\fP\fP interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_stylesheet.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMediaList\fP (const \fBMediaList\fP &other)"
.br
.ti -1c
.RI "\fBMediaList\fP (MediaListImpl *impl)"
.br
.ti -1c
.RI "\fBMediaList\fP & \fBoperator=\fP (const \fBMediaList\fP &other)"
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBmediaText\fP () const "
.br
.ti -1c
.RI "void \fBsetMediaText\fP (const \fBDOM::DOMString\fP &value)"
.br
.ti -1c
.RI "unsigned long \fBlength\fP () const "
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBitem\fP (unsigned long index) const "
.br
.ti -1c
.RI "void \fBdeleteMedium\fP (const \fBDOM::DOMString\fP &oldMedium)"
.br
.ti -1c
.RI "void \fBappendMedium\fP (const \fBDOM::DOMString\fP &newMedium)"
.br
.ti -1c
.RI "MediaListImpl * \fBhandle\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "MediaListImpl * \fBimpl\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC\fBMediaList\fP\fP interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. 

All media are lowercase strings. 
.PP
Definition at line 363 of file css_stylesheet.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBDOM::DOMString\fP MediaList::mediaText () const"
.PP
The parsable textual representation of the media list. 
.PP
This is a comma-separated list of media.
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP SYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly. 
.PP
Definition at line 292 of file css_stylesheet.cpp.
.SS "void MediaList::setMediaText (const \fBDOM::DOMString\fP & value)"
.PP
see mediaText 
.PP
Definition at line 298 of file css_stylesheet.cpp.
.SS "unsigned long MediaList::length () const"
.PP
The number of media in the list. 
.PP
The range of valid media is 0 to length-1 inclusive. 
.PP
Definition at line 304 of file css_stylesheet.cpp.
.PP
References DOM::DOMString::length().
.SS "\fBDOM::DOMString\fP MediaList::item (unsigned long index) const"
.PP
Returns the indexth in the list. 
.PP
If index is greater than or equal to the number of media in the list, this returns null.
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP Index into the collection.
.RE
.PP
\fBReturns:\fP
.RS 4
The medium at the indexth position in the \fBMediaList\fP, or null if that is not a valid index. 
.RE
.PP

.PP
Definition at line 310 of file css_stylesheet.cpp.
.SS "void MediaList::deleteMedium (const \fBDOM::DOMString\fP & oldMedium)"
.PP
Deletes the medium indicated by oldMedium from the list. 
.PP
\fBParameters:\fP
.RS 4
\fIoldMedium\fP The medium to delete in the media list.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.
.RE
.PP
NOT_FOUND_ERR: Raised if oldMedium is not in the list. 
.PP
Definition at line 316 of file css_stylesheet.cpp.
.SS "void MediaList::appendMedium (const \fBDOM::DOMString\fP & newMedium)"
.PP
Adds the medium newMedium to the end of the list. 
.PP
If the newMedium is already used, it is first removed.
.PP
\fBParameters:\fP
.RS 4
\fInewMedium\fP The new medium to add.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_CHARACTER_ERR: If the medium contains characters that are invalid in the underlying style language.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly. 
.PP
Definition at line 322 of file css_stylesheet.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
