PureMVC Framework - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

PureMVC Framework

Description:

Facade. Tying together the components. create an instance of Facade which will then initialize the Model, View & Controller classes ... – PowerPoint PPT presentation

Number of Views:131
Avg rating:3.0/5.0
Slides: 9
Provided by: Goog433
Category:

less

Transcript and Presenter's Notes

Title: PureMVC Framework


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
Write a Comment
User Comments (0)
About PowerShow.com