1 / 8

PureMVC Framework

PureMVC Framework. Components of PureMVC. Model data objects proxies delegates View mediators view components Controller commands Facade . Tying together the components. create an instance of Facade which will then initialize the Model, View & Controller classes

kreeli
Download Presentation

PureMVC Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PureMVC Framework

  2. Components of PureMVC Model • data objects • proxies • delegates View • mediators • view components Controller • commands Facade

  3. Tying together the components • create an instance of Facade which will then initialize the Model, View & Controller classes • Model manages the Proxies • proxies are registered / retrieved through the Model • View manages the Mediators • mediators are registered / retrieved through the View • Controller manages the Commands • commands are registered / retrieved through the Controller

  4. Model • Proxies are used to get / set any data used in the app • Data objects are the "business objects" used to store data used by the app. • Delegates are used as the data input / output - call remote services

  5. View • Mediators are used as "observers"; you can specify which Notifications (events) that they should handle • View Components are UI components that are controlled by the mediators

  6. Controller • manages the commands in the application • Commands are used to communicate between the Model & the View • 2 types of commands • MacroCommand • SimpleCommand • MacroCommand calls an array of SubCommands • SubCommands need to be added to the MacroCommand • used for application level tasks • SimpleCommands can be invoked by the Mediators • used for specific tasks

  7. Sequence Example

  8. PureMVC Sample Application Sample application Code for sample application

More Related