Hi, 

I was reading through one of the earlier post and was unable to understand 
the following lines :

 Gal Dolber  
Post reply
 12/07/2010 
  There no right or wrong way to implement MVP, its just a pattern and you 
can implement it as you like. The only points I think are important are:

   - (As I already said) The view interface shouldn't have *getters*. This 
   makes mocking easy peasy.
   - (Cant I have getSaveButton() in the interface ???)
   - *Do not handle Widgets* on the presenter (any widget code makes your 
   presenter no longer testeable). This means that the methods on the 
   ViewHandlers shouldn't have widget type parameters
   - (What does he mean when he says *Do not handle Widgets* on the 
   presenter )
   - Do not abuse of Event bus, at least I try no to do it.. in general if 
   you need to notice one presenter only of an event find the way to get a 
   reference to it. Try to use eventbus only when you need more than one 
   presenters to handle that event.

Thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dxA0I9MN_BQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to