PureMVC.Interfaces.IController Interface Reference

The interface definition for a PureMVC Controller. More...

Inheritance diagram for PureMVC.Interfaces.IController:

PureMVC.Core.Controller

List of all members.

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.


Detailed Description

The interface definition for a PureMVC Controller.

In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:

PureMVC.Interfaces.INotification PureMVC.Interfaces.ICommand

Member Function Documentation

void PureMVC.Interfaces.IController.ExecuteCommand ( INotification  notification  ) 

Execute the ICommand previously registered as the handler for INotifications with the given notification name.

Parameters:
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.

Parameters:
notificationName The name of the INotification to check the ICommand mapping for
Returns:
whether a Command is currently registered for the given 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.

Parameters:
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.

Parameters:
notificationName The name of the INotification to remove the ICommand mapping for

Implemented in PureMVC.Core.Controller.


The documentation for this interface was generated from the following file:

Generated on Thu Jan 1 16:26:46 2009 for PureMVC by  doxygen 1.5.8