View
A Singleton IView implementation.
Inheritance
ObjectView
Namespace: PureMVC.CoreAssembly: PureMVC in (PureMVC.dll)
Syntax
C#
public class View: IView
Remarks
In PureMVC, the View class assumes these responsibilities:
- Maintain a cache of IMediator instances
- Provide methods for registering, retrieving, and removing IMediators
- Managing the observer lists for each INotification in the application
- Providing a method for attaching IObservers to an INotification's observer list
- Providing a method for broadcasting an INotification
- Notifying the IObservers of a given INotification when it broadcast
Constructors
Constructs and initializes a new view
Methods
View Singleton Factory method.
Check if a Mediator is registered or not
Initialize the Singleton View instance.
Notify the IObservers for a particular INotification.
Register an IMediator instance with the View.
Register an IObserver to be notified of INotifications with a given name.
Remove an IMediator from the View.
Remove the observer for a given notifyContext from an observer list for a given Notification name.
Retrieve an IMediator from the View.
Fields
Singleton instance
Mapping of Mediator names to Mediator instances
Mapping of Notification names to Observer lists
Message Constants