
Public Member Functions | |
| void | RegisterCommand (string notificationName, Type commandType) |
Register a particular ICommand class as the handler for a particular INotification. | |
| void | ExecuteCommand (INotification notification) |
Execute the ICommand previously registered as the handler for INotifications with the given notification name. | |
| void | RemoveCommand (string notificationName) |
Remove a previously registered ICommand to INotification mapping. | |
| bool | HasCommand (string notificationName) |
| Check if a Command is registered for a given Notification. | |
In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:
ICommands are intended to handle which INotifications IObserver with the View for each INotification that it has an ICommand mapping for ICommand to handle a given INotification when notified by the View ICommand's execute method, passing in the INotification | void PureMVC.Interfaces.IController.ExecuteCommand | ( | INotification | notification | ) |
Execute the ICommand previously registered as the handler for INotifications with the given notification name.
| notification | The INotification to execute the associated ICommand for |
Implemented in PureMVC.Core.Controller.
| bool PureMVC.Interfaces.IController.HasCommand | ( | string | notificationName | ) |
Check if a Command is registered for a given Notification.
| notificationName | The name of the INotification to check the ICommand mapping for |
notificationName.Implemented in PureMVC.Core.Controller.
| void PureMVC.Interfaces.IController.RegisterCommand | ( | string | notificationName, | |
| Type | commandType | |||
| ) |
Register a particular ICommand class as the handler for a particular INotification.
| notificationName | The name of the INotification | |
| commandType | The Type of the ICommand |
Implemented in PureMVC.Core.Controller.
| void PureMVC.Interfaces.IController.RemoveCommand | ( | string | notificationName | ) |
Remove a previously registered ICommand to INotification mapping.
| notificationName | The name of the INotification to remove the ICommand mapping for |
Implemented in PureMVC.Core.Controller.
1.5.8