Layer -> Layer : from on layer to another layer ,there are something to do:
Responsibility: Know, Have, Do supply actions, consume actions
Autonomous View:
- data presentation transform
- exposition of actions
- data(state) synchronization
Responsibility: Know, Have, Do supply actions, consume actions
Autonomous View:
- Not Controller, not presenter
- the screen is responsible for everything - getting the data (majorely from the Model) and then deals with the data presentation.
- the Controller is responsible getting data from other parts of the application and then setting up the view with all of the data it needs, including the Model
- the Screen have a reference to the Model, and is responsible for synchronizing screen state with the Model directly, at this point , we may use data binding or other mechanism
- then Controller does very thing for the screen, including the synchronization between the screen state and the Model
- then Screen is just dumb and exposes lots of getter/setter to the controller
- the Presenter is the Model, the Presentation Model is a data container and presenter as well
- the View binds directly to the Presentation Model just like it would in the Supervising Controller.
浙公网安备 33010602011771号