PureMVC.Patterns.Notification Class Reference

A base INotification implementation. More...

Inheritance diagram for PureMVC.Patterns.Notification:

PureMVC.Interfaces.INotification

List of all members.

Public Member Functions

 Notification (string name)
 Notification (string name, object body)
 Constructs a new notification with the specified name and body, with the default type.
 Notification (string name, object body, string type)
 Constructs a new notification with the specified name, body and type.
override string ToString ()
 Get the string representation of the Notification instance.

Properties

string Name [get]
object Body [get, set]
 The body of the Notification instance.
string Type [get, set]
 The type of the Notification instance.


Detailed Description

A base INotification implementation.

PureMVC does not rely upon underlying event models

The Observer Pattern as implemented within PureMVC exists to support event-driven communication between the application and the actors of the MVC triad

Notifications are not meant to be a replacement for Events. Generally, IMediator implementors place event handlers on their view components, which they then handle in the usual way. This may lead to the broadcast of Notifications to trigger ICommands or to communicate with other IMediators. IProxy and ICommand instances communicate with each other and IMediators by broadcasting INotifications

PureMVC.Patterns.Observer


Constructor & Destructor Documentation

PureMVC.Patterns.Notification.Notification ( string  name  ) 

Constructs a new notification with the specified name, default body and type

Parameters:
name The name of the Notification instance

PureMVC.Patterns.Notification.Notification ( string  name,
object  body 
)

Constructs a new notification with the specified name and body, with the default type.

Parameters:
name The name of the Notification instance
body The Notifications body

PureMVC.Patterns.Notification.Notification ( string  name,
object  body,
string  type 
)

Constructs a new notification with the specified name, body and type.

Parameters:
name The name of the Notification instance
body The Notifications body
type The type of the Notification


Member Function Documentation

override string PureMVC.Patterns.Notification.ToString (  ) 

Get the string representation of the Notification instance.

Returns:
The string representation of the Notification instance

Implements PureMVC.Interfaces.INotification.


Property Documentation

object PureMVC.Patterns.Notification.Body [get, set]

The body of the Notification instance.

This accessor is thread safe

Implements PureMVC.Interfaces.INotification.

string PureMVC.Patterns.Notification.Name [get]

The name of the Notification instance

Implements PureMVC.Interfaces.INotification.

string PureMVC.Patterns.Notification.Type [get, set]

The type of the Notification instance.

This accessor is thread safe

Implements PureMVC.Interfaces.INotification.


The documentation for this class was generated from the following file:

Generated on Thu Jan 1 16:26:46 2009 for PureMVC by  doxygen 1.5.8