|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IController
The interface definition for a PureMVC Controller.
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.
INotification,
ICommand| Method Summary | |
|---|---|
void |
executeCommand(INotification notification)
Execute the ICommand previously registered as the handler
for INotifications with the given notification name. |
boolean |
hasCommand(java.lang.String notificationName)
Check if a Command is registered for a given Notification |
void |
registerCommand(java.lang.String notificationName,
ICommand command)
Register a particular ICommand class as the handler for a
particular INotification. |
void |
removeCommand(java.lang.String notificationName)
Remove a previously registered ICommand to
INotification mapping. |
| Method Detail |
|---|
void registerCommand(java.lang.String notificationName,
ICommand command)
ICommand class as the handler for a
particular INotification.
notificationName - the name of the INotificationcommand - the Class of the ICommandvoid executeCommand(INotification notification)
ICommand previously registered as the handler
for INotifications with the given notification name.
notification - the INotification to execute the associated
ICommand forvoid removeCommand(java.lang.String notificationName)
ICommand to
INotification mapping.
notificationName - the name of the INotification to remove the
ICommand mapping forboolean hasCommand(java.lang.String notificationName)
notificationName -
notificationName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||