|
||||||||||
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:
ICommand
s 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 INotification s with the given notification name. |
void |
registerCommand(java.lang.String notificationName,
java.lang.Class commandClassRef)
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, java.lang.Class commandClassRef)
ICommand
class as the handler for a
particular INotification
.
notificationName
- the name of the INotification
commandClassRef
- the Class of the ICommand
void executeCommand(INotification notification)
ICommand
previously registered as the handler
for INotification
s 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 for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |