Framework JavaScript ACube V2.10.0
 

Classe EventManager

Object
   |
   +--EventManager

class EventManager


the class «EventManager» is the class to manage components events.




the static method subscribe subscribe a callback and a component to an event.
the static method unsubscribe unsubscribe a callback to an event.
the static method fire fires the event called 'eventName'


Remarks :




Version: 2.8.0

Date: 18/02/2008

Definie dans technique/fw_eventManager.js


Sommaire des Attributs
<private>  Function[][][] _registered
          Private attribute « _registered » - Array of registered events callbacks

 
Sommaire des Constructeurs
EventManager ()
            Allow the management and linking between component events and dom events
 
Sommaire des Méthodes
 void fire(<DOMElement_Obligatoire> domElement, <String_Obligatoire> eventName, <Array_Optionnel> params)
           The public method « fire() » is used to launch a pre-registered component's event
 void subscribe(<Component_Obligatoire> component, <String_Obligatoire> eventName, <Function_Obligatoire> callback)
           The public method « subscribe() » is used to register an event from a component
 void unsubscribe(<Component_Obligatoire> component, <String_Obligatoire> eventName, <Function_Obligatoire> callback)
           The public method « unsubscribe() » is used to unregister an event from a component

Détail des Attributs

_registered

<private> Function[][][] _registered

Détail des Constructeurs

EventManager

EventManager()

Détail des Méthodes

fire

void fire(<DOMElement_Obligatoire> domElement, <String_Obligatoire> eventName, <Array_Optionnel> params)

subscribe

void subscribe(<Component_Obligatoire> component, <String_Obligatoire> eventName, <Function_Obligatoire> callback)

unsubscribe

void unsubscribe(<Component_Obligatoire> component, <String_Obligatoire> eventName, <Function_Obligatoire> callback)

Framework JavaScript ACube V2.10.0
 

Version 2.10.0, / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.


Documentation generated by JSDoc on Wed Jan 6 17:05:02 2010