Class: MenuCtrl

MenuCtrl(router, proxy, view, currentViewState)

The MenuCtrl controls a view and a model MenuProxy. It is always active and it reacts to events from its subjects.

Constructor

The constructor which adds it self as listener to the provided subjects.

Parameters:
Name Type Description
router Router

The router subject

proxy MenuProxy

The menuproxy subject

view View

The view subject

currentViewState CurrentViewState

The current view state subject

Source:

Methods

handleEvent(event)

Handle and incoming event

Parameters:
Name Type Description
event Event

The incoming event

Source: