.TH "DOM::MutationEvent" 3 "28 Jan 2004" "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
.RI "\fIAn integer indicating in which way the \fBAttr\fP was changed. \fP"
.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
.RI "\fIrelatedNode is used to identify a secondary node related to a mutation event. \fP"
.ti -1c
.RI "\fBDOMString\fP \fBprevValue\fP () const "
.br
.RI "\fIprevValue indicates the previous value of the \fBAttr\fP node in DOMAttrModified events, and of the \fBCharacterData\fP node in DOMCharDataModified events. \fP"
.ti -1c
.RI "\fBDOMString\fP \fBnewValue\fP () const "
.br
.RI "\fInewValue indicates the new value of the \fBAttr\fP node in DOMAttrModified events, and of the \fBCharacterData\fP node in DOMCharDataModified events. \fP"
.ti -1c
.RI "\fBDOMString\fP \fBattrName\fP () const "
.br
.RI "\fIattrName indicates the name of the changed \fBAttr\fP node in a DOMAttrModified event. \fP"
.ti -1c
.RI "unsigned short \fBattrChange\fP () const "
.br
.RI "\fIattrChange indicates the type of change which triggered the DOMAttrModified event. \fP"
.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
.RI "\fIThe initMutationEvent method is used to initialize the value of a \fBMutationEvent\fP created through the DocumentEvent interface. \fP"
.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 728 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. ADDITION: The \fBAttr\fP was just added.
.PP
MODIFICATION: The \fBAttr\fP was modified in place.
.PP
REMOVAL: The \fBAttr\fP was just removed. Definition at line 747 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. 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. Definition at line 572 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. Definition at line 580 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. Definition at line 588 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. Definition at line 596 of file dom2_events.cpp.
.SS "unsigned short MutationEvent::attrChange () const"
.PP
attrChange indicates the type of change which triggered the DOMAttrModified event. The values can be MODIFICATION, ADDITION, or REMOVAL. Definition at line 604 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. 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
Definition at line 612 of file dom2_events.cpp.

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