Thursday, March 10, 2011

Re: Using one Activity on two different places, with different funtionallity

Thanks for your responses Juan Pablo Gardella & Thomas Broyer!

I understand that I have to initialize the activity depending on place
in the ActivityMapper. At the moment I have initialized the same
activity with two places.
Both places are then defined in my class HelloActivity which extends
AbstractActivity. I use two constructors, one for place1 and one for
place2. But those constructors pretty much only define the place. How
do I declare that the add button should be in place1 and the remove
button should be in place2?

Alex

On 9 mar, 16:32, Thomas Broyer <t.bro...@gmail.com> wrote:
> It's your ActivityMapper's responsibility to initialize the activity
> depending on the place.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate