Detailed Description

A set of events for a given object (document or element). Used by addEventListener.

Public Member Functions

List< EventListenerGet (string name)
 Gets the set of handlers for the given event name. More...
 
bool Run (Event e, bool capture)
 Runs the event with the given name by passing it the given event object. More...
 
void Add (string name, EventListener handler)
 Internally adds an event handler for the given named event. More...
 
EventListener GetFirstListener (string name)
 Gets the first delegate event handler for the given event name. More...
 
void Remove (string name, object mtd)
 Removes the given method from this set. More...
 

Public Attributes

Dictionary< string, List
< EventListener > > 
Handlers
 The handlers in this set. May be null. More...
 

Member Function Documentation

void Dom.EventsSet.Add ( string  name,
EventListener  handler 
)
inline

Internally adds an event handler for the given named event.

List<EventListener> Dom.EventsSet.Get ( string  name)
inline

Gets the set of handlers for the given event name.

EventListener Dom.EventsSet.GetFirstListener ( string  name)
inline

Gets the first delegate event handler for the given event name.

void Dom.EventsSet.Remove ( string  name,
object  mtd 
)
inline

Removes the given method from this set.

bool Dom.EventsSet.Run ( Event  e,
bool  capture 
)
inline

Runs the event with the given name by passing it the given event object.

Returns
True if at least one handler was triggered.

Member Data Documentation

Dictionary<string,List<EventListener> > Dom.EventsSet.Handlers

The handlers in this set. May be null.