Mediator Class Reference

#import <Mediator.h>

Inherits Notifier, and IMediator-p.

List of all members.

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


Detailed Description

A base IMediator implementation.

See also:
View

Member Function Documentation

- (void) handleNotification: (id<INotification>)  notification   [implementation]

Handle INotifications.

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  

Initialize the Mediator instance.

Called automatically by the constructor, this is your opportunity to initialize the Mediator instance in your subclass without overriding the constructor.

Returns:
void

- (NSArray *) listNotificationInterests   [implementation]

List the INotification names this Mediator is interested in being notified of.

Returns:
Array the list of INotification names

Reimplemented from < IMediator >.

- (NSString *) mediatorName  

Get the IMediator instance name

Returns:
the IMediator instance name

+ (NSString *) NAME  

The name of the Mediator.

Typically, a Mediator will be written to serve one specific control or group controls and so, will not have a need to be dynamically named.

- (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.

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

Set the IMediator's view component.

Parameters:
viewComponent the view component

- (id) viewComponent  

Get the IMediator's view component.

Returns:
id the view component


Generated on Wed Dec 24 14:19:08 2008 for PureMVC Objective-C by  doxygen 1.5.7.1