A Singleton IView
implementation.
In PureMVC, the View
class assumes these responsibilities:
IMediator
instances.IMediators
.INotification
in the application.IObservers
to an INotification
's observer list.INotification
.IObservers
of a given INotification
when it broadcast.Constructor.
This IView
implementation is a Singleton,
so you should not call the constructor
directly, but instead call the static Singleton
Factory method View.getInstance()
Notify the IObservers
for a particular INotification
.
All previously attached IObservers
for this INotification
's
list are notified and are passed a reference to the INotification
in
the order in which they were registered.
Register an IMediator
instance with the View
.
Registers the IMediator
so that it can be retrieved by name,
and further interrogates the IMediator
for its INotification
interests.
If the IMediator
returns any INotification
names to be notified about, an Observer
is created encapsulating
the IMediator
instance's handleNotification
method
and registering it as an Observer
for all INotifications
the
IMediator
is interested in.
IObserver
to be notified of INotifications
with a given name.
IMediator
from the View
.
IMediator
from the View
.