Class Index | File Index

Classes


Class Biojs.EventHandler


Defined in: Biojs.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Biojs.EventHandler(eventType)
Field Summary
Field Attributes Field Name and Description
 
The name of the event.
 
Array of the registered listeners.
Method Summary
Method Attributes Method Name and Description
 
addListener(actionPerformed)
Register action listeners for the event.
 
removeListener(actionPerformed)
Removes an action listener for the event.
 
triggerEvent(eventObject)
Executes all listener actions registered in the listeners field.
Class Detail
Biojs.EventHandler(eventType)
Parameters:
{string} eventType
The name of the event.
Field Detail
eventType
The name of the event.

listeners
Array of the registered listeners.
Method Detail
addListener(actionPerformed)
Register action listeners for the event.
Parameters:
{function} actionPerformed
The action listener to be registered.

removeListener(actionPerformed)
Removes an action listener for the event.
Parameters:
{function} actionPerformed
The action listener to be removed.

triggerEvent(eventObject)
Executes all listener actions registered in the listeners field.
Parameters:
{Object} eventObject
The event' object to be passed as argument to the listeners.

Documentation generated by JsDoc Toolkit 2.3.2 on Thu Apr 17 2014 17:42:42 GMT+0100 (BST)