Documentation
¶
Index ¶
- Constants
- type Mediator
- func (self *Mediator) GetMediatorName() string
- func (self *Mediator) GetViewComponent() interface{}
- func (self *Mediator) HandleNotification(notification interfaces.INotification)
- func (self *Mediator) ListNotificationInterests() []string
- func (self *Mediator) OnRegister()
- func (self *Mediator) OnRemove()
- func (self *Mediator) SetViewComponent(viewComponent interface{})
Constants ¶
View Source
const NAME = "Mediator" // default name for the mediator
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mediator ¶
type Mediator struct {
facade.Notifier
Name string // the mediator name
ViewComponent interface{} // The view component
}
A base IMediator implementation.
func (*Mediator) GetMediatorName ¶
Get the name of the Mediator.
func (*Mediator) GetViewComponent ¶
func (self *Mediator) GetViewComponent() interface{}
Get the IMediator's view component.
func (*Mediator) HandleNotification ¶
func (self *Mediator) HandleNotification(notification interfaces.INotification)
Handle INotifications.
Typically this will be handled in a switch statement, with one 'case' entry per INotification the Mediator is interested in.
func (*Mediator) ListNotificationInterests ¶
List the INotification names this Mediator is interested in being notified of.
- returns: Array the list of INotification names
func (*Mediator) OnRegister ¶
func (self *Mediator) OnRegister()
Called by the View when the Mediator is registered
func (*Mediator) OnRemove ¶
func (self *Mediator) OnRemove()
Called by the View when the Mediator is removed
func (*Mediator) SetViewComponent ¶
func (self *Mediator) SetViewComponent(viewComponent interface{})
Set the IMediator's view component.
Click to show internal directories.
Click to hide internal directories.