Class Action
Version
1.0.
Action
Defined in: Hydra.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<private> |
Action()
Action is the class that will manage the action listeners and notifications.
|
Field Attributes | Field Name and Description |
---|---|
oActions is the property that will save the actions to be listened
|
|
type is a property to be able to know the class type.
|
Method Attributes | Method Name and Description |
---|---|
<private> |
__restore__ is a private method to reset the oActions object to an empty object.
|
listen(aNotificationsToListen, fpHandler, oModule)
listen is the method that will add a new action to the oActions object
and that will activate the listener.
|
|
notify(oNotifier)
notify is the method that will launch the actions that are listening the notified action
|
|
stopListen(aNotificationsToStopListen, oModule)
stopListen removes the actions that are listening the aNotificationsToStopListen in the oModule
|
Class Detail
<private>
Action()
Action is the class that will manage the action listeners and notifications.
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
Field Detail
{Object}
Action.oActions
oActions is the property that will save the actions to be listened
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
{String}
Action.type
type is a property to be able to know the class type.
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
Method Detail
<private>
__restore__()
__restore__ is a private method to reset the oActions object to an empty object.
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
listen(aNotificationsToListen, fpHandler, oModule)
listen is the method that will add a new action to the oActions object
and that will activate the listener.
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
- Parameters:
- {Array} aNotificationsToListen
- {Function} fpHandler
- {Object} oModule
notify(oNotifier)
notify is the method that will launch the actions that are listening the notified action
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
- Parameters:
- oNotifier
- - Notifier.type and Notifier.data are needed
stopListen(aNotificationsToStopListen, oModule)
stopListen removes the actions that are listening the aNotificationsToStopListen in the oModule
Author: Tomas Corral Casas.
Author: Tomas Corral Casas.
- Parameters:
- {Array} aNotificationsToStopListen
- {Object} oModule