eDriven Framework API
EventDispatcher Class
NamespaceseDriven.Core.EventsEventDispatcher
eDriven Framework API
The EventDispatcher Base class for all classes that dispatch events
Declaration Syntax
C#Visual BasicVisual C++
public class EventDispatcher : IEventDispatcher, 
	IEventQueue, IDisposable
Public Class EventDispatcher _
	Implements IEventDispatcher, IEventQueue, IDisposable
public ref class EventDispatcher : IEventDispatcher, 
	IEventQueue, IDisposable
Members
All MembersConstructorsMethodsFields



IconMemberDescription
EventDispatcher()()()()
Constructor

EventDispatcher(Object)
Constructor

AddEventListener(String, EventHandler, EventPhase, Int32)
Adds the event listener

AddEventListener(String, EventHandler, EventPhase)
Adds the event listener

AddEventListener(String, EventHandler)
AddEventListener Overload Assumes that useCapturePhase is false

AddEventListener(String, EventHandler, Int32)
Adds the event listener

DebugMode
Debug mode

DispatchEvent(Event, Boolean)
Dispatches an event with the option of late processing (immediate = TRUE/FALSE)

DispatchEvent(Event)
Dispatches an event immediatelly

Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnqueueEvent(Event)
Adds an event to the queue The queue will be processed when ProcessQueue() manually executed

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ExecuteListeners(Event)
Executes event handlers listening for a particular event type

Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
HasBubblingEventListener(String)
Returns true if there are any subscribers in bubbling hierarchy
Override in superclass

HasEventListener(String)
Returns true if EventDispatcher has any registered listeners for a specific type and phase

IsDefaultPrevented(String, Boolean)
Exposes the cancelable event to the outside if there are listeners for that event type If default prevented, returns false If not, returns true

IsDefaultPrevented(String)
No-bubbling version

MappedToAnyPhase(String, EventHandler, EventPhase)
Returns true if handler is mapped to any of the specified phases

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ProcessEvent(Event)
Could be overriden in a subclass (for instance to implement event bubbling)

ProcessQueue()()()()
If events are added to queue, they are waiting to be fired
in the same order they are added

RemoveAllListeners(String)
Removes all listeners for the spacified event type (both capture and bubbling phase)

RemoveAllListeners(String, EventPhase)
Removes all listeners for the spacified event type and phases

RemoveEventListener(String, EventHandler, EventPhase)
Removes the event listener

RemoveEventListener(String, EventHandler)
Removes the event listener

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
Coded by Danko Kozar
Inheritance Hierarchy

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)