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".
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With