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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

6. Mediating the View > Determining Granularity of Mediation

Determining Granularity of Mediation

We have a fairly deep hierarchy of View Components in places. Inside the Timeline component alone, we can have a hierarchy of StoryTile, PartTile, ChapterTile, SceneTile, and DraftTile. Do we need a Mediator for each of these components? Do we need a Mediator for the Timeline instead? Or is it even necessary to have a Mediator for the Timeline, which itself is only a child of the Controls component, which is a child of the Editor? Confusing, right? How much mediation is too much? Does every button need a Mediator? Well, that depends on how our view hierarchy is built and how much custom tending each component really needs. The best approach is to consider your needs from the top down, not from the bottom up.


  

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