.TH "DOM::EventListener" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::EventListener \- Introduced in \fBDOM\fP Level 2.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom2_events.h>\fP
.PP
Inherits DomShared.
.PP
Inherited by KJS::JSEventListener.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBhandleEvent\fP (\fBEvent\fP &evt)"
.br
.RI "\fIThis method is called whenever an event occurs of the type for which the \fBEventListener\fP interface was registered. \fP"
.ti -1c
.RI "virtual \fBDOMString\fP \fBeventListenerType\fP ()"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "EventListenerImpl * \fBimpl\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Introduced in \fBDOM\fP Level 2. 

The \fBEventListener\fP interface is the primary method for handling events. Users implement the \fBEventListener\fP interface and register their listener on an EventTarget using the AddEventListener method. The users should also remove their \fBEventListener\fP from its EventTarget after they have completed using the listener.
.PP
When a \fBNode\fP is copied using the cloneNode method the EventListeners attached to the source \fBNode\fP are not attached to the copied \fBNode\fP. If the user wishes the same EventListeners to be added to the newly created copy the user must add them manually. 
.PP
Definition at line 68 of file dom2_events.h.
.SH "Member Function Documentation"
.PP 
.SS "void EventListener::handleEvent (\fBEvent\fP & evt)\fC [virtual]\fP"
.PP
This method is called whenever an event occurs of the type for which the \fBEventListener\fP interface was registered. Parameters
.PP
\fBParameters:\fP
.RS 4
\fIevt\fP The \fBEvent\fP contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action. 
.RE
.PP
Definition at line 38 of file dom2_events.cpp.

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