Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Connecting views with Mediators

Chapter 8. Connecting views with Mediators

What brings the ‘rich’ to our rich internet applications? The beautiful, animated, interactive, lovingly crafted view components that users interact with. These view components and screens can be created in any number of ways. They might be complex Flex components or pure ActionScript using low level graphics APIs. No matter how your views are developed they will need to communicate both with other views and with the services and models we discussed in chapter 7.

This is where Mediators come in. Mediators are lightweight classes that create a bridge between your view tier and the rest of your application. Mediators act as switchboards. They listen for important events that the view needs to respond to, and dispatch events to let the rest of the application know when something changes in your view—usually because of user interaction.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint