KJS::JSEventListener Class Reference

Inheritance diagram for KJS::JSEventListener:

DOM::EventListener DOM::DomShared KJS::JSLazyEventListener List of all members.

Detailed Description

Definition at line 34 of file kjs_events.h.


Public Member Functions

 JSEventListener (Object _listener, ObjectImp *_compareListenerImp, const Object &_win, bool _html=false)
virtual ~JSEventListener ()
virtual void handleEvent (DOM::Event &evt)
virtual DOM::DOMString eventListenerType ()
virtual Object listenerObj () const
ObjectImp * listenerObjImp () const
void clear ()
bool isHTMLEventListener () const

Protected Attributes

Object listener
ObjectImp * compareListenerImp
bool html
Object win

Constructor & Destructor Documentation

JSEventListener::JSEventListener ( Object  _listener,
ObjectImp *  _compareListenerImp,
const Object &  _win,
bool  _html = false 
)

Parameters:
_listener the function object, that will be called when the event is emitted
_win Window object, for memory management and caching. Never create a JSEventListener directly, use Window::getJSEventListener.

Definition at line 42 of file kjs_events.cpp.


Member Function Documentation

void JSEventListener::handleEvent ( DOM::Event evt  )  [virtual]

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters

Parameters:
evt The Event 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.

Reimplemented from DOM::EventListener.

Reimplemented in KJS::JSLazyEventListener.

Definition at line 59 of file kjs_events.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys