Class Biojs.EventHandler
Defined in: Biojs.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Biojs.EventHandler(eventType)
|
| Field Attributes | Field Name and Description |
|---|---|
|
The name of the event.
|
|
|
Array of the registered listeners.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addListener(actionPerformed)
Register action listeners for the event.
|
|
|
triggerEvent(eventObject)
Executes all listener actions registered in the listeners field.
|
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.
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.