MVP or Activities/Places for stockwatcher example?

65 views
Skip to first unread message

ustad

unread,
Jun 16, 2011, 11:27:44 AM6/16/11
to google-we...@googlegroups.com
Hi all, I'm new to GWT (and more of an advanced beginner with java at that too) and I just worked through the stockwatcher example as posted on the official google page using the latest gwt 2.3 sdk and plugin using eclipse.  So far so good.   However, when trying to incorporate an MVP design pattern I am at a loss.    I understand the basic concept that the idea is a separation of concerns leading to a loosely coupled architecture that facilitates easily testable and extensible code.    But when looking through whatever examples I could find via search, I still haven't wrapped my head around the actual CONCRETE implementation.     I guess what confuses me in the examples I've come across, is all the nested interfaces, nested object instantiations within method invocations and basic nomenclature.... I see 'Display' being used interchangeably with 'View' and 'Presenter' and I get more confused.    Should  I not worry about all that and just try and learn the new Activities/Places implementation?  Or without the fundamentals of MVP I won't understand the latter?

I was wondering if someone could provide me with a very, very basic concrete example of converting the rudimentary stockwatcher example into that of an MVP or Activities/Places adopted one?     I hope this is not too much of a request... but this humble chap who's trying to jump on the bandwagon would be forever indebted!

My humble thanks!
ustad

David Chandler

unread,
Jun 17, 2011, 7:46:15 AM6/17/11
to google-we...@googlegroups.com
Have you seen http://code.google.com/webtoolkit/articles/mvp-architecture.html? It presents the basic MVP pattern without 3rd party frameworks or Activities & Places.

/dmc

--
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/-/5f1wDW7uhloJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

Thad

unread,
Jun 17, 2011, 10:06:36 AM6/17/11
to Google Web Toolkit
In the 3rd item of http://groups.google.com/group/google-web-toolkit/browse_frm/thread/ba4b88d2d54b0cd
I found these links:

http://95.110.143.4/layoutmvp/layoutmvp.tar.gz
http://95.110.143.4/layoutmvp/layoutmvp.html

Read the tread. I found Mauro's example *very helpful* (but I've still
a ways to go).

Ustad

unread,
Jun 17, 2011, 10:50:23 AM6/17/11
to google-we...@googlegroups.com
@Thad:  Thanks so much... Downloaded both tar balls with and without GIN integration....  This demo is very slick looking!   Hoping there's good documentation in it!   Cheers mate!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
-------------------------------------------------------------------------------
"Wait till you look within yourself and see what you find.....
Oh Seeker, one leaf in that Garden is worth more that all of Paradise!"

Rumi
-------------------------------------------------------------------------------
"Those of us who have taken this peep through the door of our own Being are dumbfounded.  We draw back, surprised, at the inscrutable possibilities of the Inner Self.  Man as a spiritual being possesses a capacity for wisdom which is infinite, a resource of happiness which is startling.  He contains a divine infinitude within himself, yet he is content to go on and potter about a petty stretch of life as though he were a mere human insect..."
Dr. Paul Brunton
-------------------------------------------------------------------------------
I have learned silence from the talkative,
toleration from the intolerant, and kindness from the unkind.

Kahlil Gibran

Reply all
Reply to author
Forward
0 new messages