.TH "DOM::MutationEvent" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::MutationEvent \- Introduced in \fBDOM\fP Level 2.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom2_events.h>\fP
.PP
Inherits \fBDOM::Event\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBattrChangeType\fP { \fBMODIFICATION\fP =  1, \fBADDITION\fP =  2, \fBREMOVAL\fP =  3 }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMutationEvent\fP (const \fBMutationEvent\fP &other)"
.br
.ti -1c
.RI "\fBMutationEvent\fP (const \fBEvent\fP &other)"
.br
.ti -1c
.RI "\fBMutationEvent\fP & \fBoperator=\fP (const \fBMutationEvent\fP &other)"
.br
.ti -1c
.RI "\fBMutationEvent\fP & \fBoperator=\fP (const \fBEvent\fP &other)"
.br
.ti -1c
.RI "\fBNode\fP \fBrelatedNode\fP () const "
.br
.ti -1c
.RI "\fBDOMString\fP \fBprevValue\fP () const "
.br
.ti -1c
.RI "\fBDOMString\fP \fBnewValue\fP () const "
.br
.ti -1c
.RI "\fBDOMString\fP \fBattrName\fP () const "
.br
.ti -1c
.RI "unsigned short \fBattrChange\fP () const "
.br
.ti -1c
.RI "void \fBinitMutationEvent\fP (const \fBDOMString\fP &typeArg, bool canBubbleArg, bool cancelableArg, const \fBNode\fP &relatedNodeArg, const \fBDOMString\fP &prevValueArg, const \fBDOMString\fP &newValueArg, const \fBDOMString\fP &attrNameArg, unsigned short attrChangeArg)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBMutationEvent\fP (MutationEventImpl *impl)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Introduced in \fBDOM\fP Level 2. 

The \fBMutationEvent\fP interface provides specific contextual information associated with Mutation events. 
.PP
Definition at line 749 of file dom2_events.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBDOM::MutationEvent::attrChangeType\fP"
.PP
An integer indicating in which way the \fBAttr\fP was changed. 
.PP
ADDITION: The \fBAttr\fP was just added.
.PP
MODIFICATION: The \fBAttr\fP was modified in place.
.PP
REMOVAL: The \fBAttr\fP was just removed. 
.PP
Definition at line 768 of file dom2_events.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBNode\fP MutationEvent::relatedNode () const"
.PP
relatedNode is used to identify a secondary node related to a mutation event. 
.PP
For example, if a mutation event is dispatched to a node indicating that its parent has changed, the relatedNode is the changed parent. If an event is instead dispatched to a subtree indicating a node was changed within it, the relatedNode is the changed node. In the case of the DOMAttrModified event it indicates the \fBAttr\fP node which was modified, added, or removed. 
.PP
Definition at line 638 of file dom2_events.cpp.
.SS "\fBDOMString\fP MutationEvent::prevValue () const"
.PP
prevValue indicates the previous value of the \fBAttr\fP node in DOMAttrModified events, and of the \fBCharacterData\fP node in DOMCharDataModified events. 
.PP
Definition at line 646 of file dom2_events.cpp.
.SS "\fBDOMString\fP MutationEvent::newValue () const"
.PP
newValue indicates the new value of the \fBAttr\fP node in DOMAttrModified events, and of the \fBCharacterData\fP node in DOMCharDataModified events. 
.PP
Definition at line 654 of file dom2_events.cpp.
.SS "\fBDOMString\fP MutationEvent::attrName () const"
.PP
attrName indicates the name of the changed \fBAttr\fP node in a DOMAttrModified event. 
.PP
Definition at line 662 of file dom2_events.cpp.
.SS "unsigned short MutationEvent::attrChange () const"
.PP
attrChange indicates the type of change which triggered the DOMAttrModified event. 
.PP
The values can be MODIFICATION, ADDITION, or REMOVAL. 
.PP
Definition at line 670 of file dom2_events.cpp.
.SS "void MutationEvent::initMutationEvent (const \fBDOMString\fP & typeArg, bool canBubbleArg, bool cancelableArg, const \fBNode\fP & relatedNodeArg, const \fBDOMString\fP & prevValueArg, const \fBDOMString\fP & newValueArg, const \fBDOMString\fP & attrNameArg, unsigned short attrChangeArg)"
.PP
The initMutationEvent method is used to initialize the value of a \fBMutationEvent\fP created through the DocumentEvent interface. 
.PP
This method may only be called before the \fBMutationEvent\fP has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.
.PP
\fBParameters:\fP
.RS 4
\fItypeArg\fP Specifies the event type.
.br
\fIcanBubbleArg\fP Specifies whether or not the event can bubble.
.br
\fIcancelableArg\fP Specifies whether or not the event's default action can be prevented.
.br
\fIrelatedNodeArg\fP Specifies the Event's related \fBNode\fP.
.br
\fIprevValueArg\fP Specifies the Event's prevValue attribute. This value may be null.
.br
\fInewValueArg\fP Specifies the Event's newValue attribute. This value may be null.
.br
\fIattrNameArg\fP Specifies the Event's attrName attribute. This value may be null.
.br
\fIattrChangeArg\fP Specifies the Event's attrChange attribute 
.RE
.PP

.PP
Definition at line 678 of file dom2_events.cpp.

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