Class | View |
In: |
src/org/puremvc/ruby/core/view.rb
|
Parent: | Object |
In PureMVC, the View class assumes these responsibilities:
mediator_map | [RW] | |
observer_map | [RW] |
This View implementation is a Singleton, so you should not call the constructor directly, but instead call the static Singleton Factory method View.instance.
Initialize the Singleton View instance.
Called automatically by the constructor, this is your opportunity to initialize the Singleton instance in your subclass without overriding the constructor
Notify the Observers for a particular Notification.
All previously attached Observers for this Notification‘s list are notified and are passed a reference to the Notification in the order in which they were registered.
Register a Mediator instance with the View.
Registers the Mediator so that it can be retrieved by name and further interrogates the mediator for its Notification interests.
If the mediator returns any Notifiation name to be notified about, an Observer is created encapsulating the Mediator instance‘s handle_notification method and registering it as an Observer for all Notifications the Mediator is interested in.
Register an Observer to be notified of Notifications with a given name.
Remove the observer for a given notify context from an observer list for a given Notification name.