Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVP Passive View - Composite Views & Composite Presenters

I found M. Fowler article on Passive View pattern. I would like to apply it in my application. I use Swing for UI. I spent several hours searching tutorials or examples how to implement it but not much useful found. Could anybody help to understand the design or provide good examples here? By "M" in MVP I understand "Domain Model".

like image 973
bancer Avatar asked Oct 26 '22 00:10

bancer


1 Answers

MVP = Model View Presenter

The basic idea is, that you separate presenting logic from UI (view), so you can mock out the view and test presenter with simple JUnit tests, instead of messing the swing (probably generated by designer) code with your "view logic" (code that controls the UI)...

http://www.youtube.com/watch?v=PDuhR18-EdM

Really nice presentation by Ray Ryan. He talks about GWT, but the idea of MVP is well explained...

MVP starts at 21:30

like image 148
Vojta Avatar answered Nov 15 '22 07:11

Vojta