.TH "DOM::MediaList" 3 "28 Jan 2004" "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
.RI "\fIThe parsable textual representation of the media list. \fP"
.ti -1c
.RI "void \fBsetMediaText\fP (const  \fBDOM::DOMString\fP &value)"
.br
.RI "\fIsee \fBmediaText\fP \fP"
.ti -1c
.RI "unsigned long \fBlength\fP () const "
.br
.RI "\fIThe number of media in the list. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBitem\fP (unsigned long index) const "
.br
.RI "\fIReturns the indexth in the list. \fP"
.ti -1c
.RI "void \fBdeleteMedium\fP (const  \fBDOM::DOMString\fP &oldMedium)"
.br
.RI "\fIDeletes the medium indicated by oldMedium from the list. \fP"
.ti -1c
.RI "void \fBappendMedium\fP (const  \fBDOM::DOMString\fP &newMedium)"
.br
.RI "\fIAdds the medium newMedium to the end of the list. \fP"
.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 364 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. 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. Definition at line 298 of file css_stylesheet.cpp.
.SS "void MediaList::setMediaText (const \fBDOM::DOMString\fP & value)"
.PP
see \fBmediaText\fP Definition at line 304 of file css_stylesheet.cpp.
.SS "unsigned long MediaList::length () const"
.PP
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.
.SS "\fBDOM::DOMString\fP MediaList::item (unsigned long index) const"
.PP
Returns the indexth in the list. 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
Definition at line 316 of file css_stylesheet.cpp.
.SS "void MediaList::deleteMedium (const \fBDOM::DOMString\fP & oldMedium)"
.PP
Deletes the medium indicated by oldMedium from the list. \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. Definition at line 322 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. 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. Definition at line 328 of file css_stylesheet.cpp.

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