What is the Function of the Mediator Class?

Updated 19 Oct, 2009 05:01 AM in Reference MVCS Implementation

The View tier is represented by the Mediator class. Classes that extend Mediator are used to handle framework interaction with View Components. A Mediator will listen for framework events, add event listeners to the View Components, and send framework events in response to events received from the View Components they are responsible for. This allows the developer to put application specific logic on the Mediator, and avoid coupling View components to specific applications.

More from the knowledge base

Recent Discussions