Overview | Namespace | Classifier | Tree | Index | Help
PREV NEXT | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | DESTR | METHOD | DETAIL: FIELD | CONSTR | DESTR | METHOD

## Namespace: PureMVC.Interfaces.IController
Interface IController

All Known Implementing Classes:
  TController

public interface IController

Persistent
  False

see

remarks
  In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:Remembering which ICommands are intended to handle which INotificationsRegistering itself as an IObserver with the View for each INotification that it has an ICommand mapping forCreating a new instance of the proper ICommand to handle a given INotification when notified by the ViewCalling the ICommand's execute method, passing in the INotification

summary
  The interface definition for a PureMVC Controller

Method Summary
`public Sub` | `ExecuteCommand(Notification: PureMVC.Interfaces.INotification.INotification )` Execute the ICommand previously registered as the handler for INotifications with the given notification name
`public function Boolean` | `HasCommand(NotificationName: string)` Check if a Command is registered for a given Notification.
`public Sub` | `RegisterCommand(NotificationName: string; CommandType: TClass)` Register a particular ICommand class as the handler for a particular INotification
`public Sub` | `RemoveCommand(NotificationName: string)` Remove a previously registered ICommand to INotification mapping.

Method Detail

### ExecuteCommand

    public procedure ExecuteCommand(Notification: PureMVC.Interfaces.INotification.INotification )

Reintroduce
  False

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

param
  The INotification to execute the associated ICommand for

### HasCommand

    public function HasCommand(NotificationName: string): Boolean

Reintroduce
  False

Returns
  Boolean

summary
  Check if a Command is registered for a given Notification.

returns
  whether a Command is currently registered for the given notificationName.

param
  The name of the INotification to check the ICommand mapping for

### RegisterCommand

    public procedure RegisterCommand(NotificationName: string; CommandType: TClass)

Reintroduce
  False

summary
  Register a particular ICommand class as the handler for a particular INotification

param
  The name of the INotification
  The Type of the ICommand

### RemoveCommand

    public procedure RemoveCommand(NotificationName: string)

Reintroduce
  False

summary
  Remove a previously registered ICommand to INotification mapping.

param
  The name of the INotification to remove the ICommand mapping for

Overview | Namespace | Classifier | Tree | Index | Help
PREV NEXT | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | DESTR | METHOD | DETAIL: FIELD | CONSTR | DESTR | METHOD