jesterxl

Mediator code gen use cases

Jun 21st, 2011
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. 1. While developing a View, I need to create a Mediator for it.
  2. 2. When dispatching Events from a View, I follow the View naming pattern. So "PhoneView" dispatches a "PhoneViewEvent" and has a "PhoneViewMediator".
  3. 3. Most Views (not controls) that dispatch events are typically handled by their Mediator. As such, the addViewListener should already be pre-generated inside of the Mediator to handle these user gestures.
Advertisement
Add Comment
Please, Sign In to add comment