4. Presentation Model 4 Presentation Model View State & Logic Provides Model data Decoupled from View Observes Model data Updates Model data Coupled with PM
10. Swiz Intro Framework for Flex Lightweight & flexible Doesn’t enforce any design patterns, project layout or inheritance Decoupled from your application code 10
11. Swiz Features Inversion of Control / Dependency Injection [Inject] Event handing and mediation [Dispatcher], [Mediate] Handling bean life cycle [PostConstruct], [PreDestroy] Simplifies remote service calls ServiceHelper, MockDelegateHelper Chaining API EventChain, CommandChain Custom Metadata Processors [URLMapping], [MediateSignal], [Resource], [Logger], [Bind] 11
PM is a variation of MVC design pattern.Key principals:State is in the presentation modelLogic is in the presentation modelView observes the model and updates accordinglyThe view “knows” about the presentation modelThe presentation model does not “know” about the view