OpenGUI::EventReceiver Class Reference

#include <OpenGUI_Event.h>

List of all members.


Detailed Description

Provides a unified event definition, binding, and relaying service.


Public Member Functions

void createEvent (const String &name)
 Adds the given name to the list of valid (and bindable) events.
void sendEvent (const String &name, EventArgs &args)
 Sends an event of the given name to all such bound EventHandler instances.
EventHandlerListgetEventHandlers (const String &name)
 Returns the list of EventHandler objects for the event of given name.
EventHandlerListoperator[] (const String &name)
 Returns reference to the list of EventHandler objects for the event of given name, throws exception if event does not exist.


Member Function Documentation

void OpenGUI::EventReceiver::createEvent const String name  ) 
 

Adds the given name to the list of valid (and bindable) events.

EventHandlerList * OpenGUI::EventReceiver::getEventHandlers const String name  ) 
 

Returns the list of EventHandler objects for the event of given name.

Returns 0 (NULL) if the event requested does not exist.

See also:
Too create new events see createEvent()

EventHandlerList & OpenGUI::EventReceiver::operator[] const String name  ) 
 

Returns reference to the list of EventHandler objects for the event of given name, throws exception if event does not exist.

void OpenGUI::EventReceiver::sendEvent const String name,
EventArgs args
 

Sends an event of the given name to all such bound EventHandler instances.


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:21 2007