#import <Mediator.h>
Inherits Notifier, and IMediator-p.
Public Member Functions | |
(void) | - initializeMediator |
(void) | - handleNotification: [implementation] |
(NSArray *) | - listNotificationInterests [implementation] |
(void) | - onRegister [implementation] |
(void) | - onRemove [implementation] |
(void) | - sendNotification:body:type: [implementation] |
(NSString *) | - mediatorName |
(id) | - viewComponent |
(void) | - setViewComponent: |
Static Public Member Functions | |
(NSString *) | + NAME |
IMediator
implementation.
- (void) handleNotification: | (id<INotification>) | notification | [implementation] |
Handle INotification
s.
Typically this will be handled in a switch statement, with one 'case' entry per INotification
the Mediator
is interested in.
Reimplemented from < IMediator >.
- (void) initializeMediator |
- (NSArray *) listNotificationInterests | [implementation] |
List the INotification
names this Mediator
is interested in being notified of.
INotification
names Reimplemented from < IMediator >.
+ (NSString *) NAME |
- (void) onRegister | [implementation] |
Called by the View when the Mediator is registered
Reimplemented from < IMediator >.
- (void) onRemove | [implementation] |
Called by the View when the Mediator is removed
Reimplemented from < IMediator >.
- (void) sendNotification: | (NSString *) | notificationName | ||
body: | (id) | body | ||
type: | (NSString *) | type | ||
[implementation] |
Create and send an INotification
.
Keeps us from having to construct new INotification instances in our implementation code.
notificationName | the name of the notiification to send | |
body | the body of the notification | |
type | the type of the notification |
Reimplemented from < INotifier >.
- (void) setViewComponent: | (id) | viewComponent |
- (id) viewComponent |