View

A Multiton 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 Multiton Factory method.
Check if a Mediator is registered or not
Initialize the Multiton 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.
Remove an IView instance
Retrieve an IMediator from the View.

Fields

The Multiton View instanceMap.
Mapping of Mediator names to Mediator instances
Message Constants
The Multiton Key for this Core
Mapping of Notification names to Observer lists

See also