Protected Readonly_namethe mediator name
Protected Optional_viewThe view component
ProtectedfacadeReturn the Singleton Facade instance
StaticNAMEThe default name for the mediator.
the mediator name
The name of the mediator.
Get the Mediator's view component.
Additionally, an implicit getter will usually be defined in the subclass that casts the view object to a type, like this:
The view component.
Set the Mediator's view component.
The new view component.
Handle Notifications.
Typically, this will be handled in a switch statement,
with one 'case' entry per Notification
the Mediator is interested in.
The notification to handle.
Create and send an Notification.
Keeps us from having to construct new Notification instances in our implementation code.
The name of the notification to be sent.
Optionalbody: anyOptional data to be included with the notification.
Optionaltype: stringOptional type of the notification.
A base
Mediatorimplementation.See
View
Mediator