I concur with Y2i regarding the use of a top TabBar, I'm using a similar approach.
Other things you may want to add: - Loose coupling between TabBar and content presenters (they are not injected in one another). The TabBar sends an event on the bus to discover and collect all the content presenters it should handle. The TabBar sends an event when a tab is clicked to display the corresponding presenter. - History support You may want each tab to corresponds to a different history token. This one is trickier to do as it requires two way communication between the content presenters and the TabBar presenter: when a presenter is displayed, it needs to tell the TabBar which tab to highlight. - Nested tabs It gets slightly trickier if you want to support TabBars within TabBars, à-la Google Code You can have a look at GWTP for inspiration on how to do all of the above. Cheers, Philippe On Thu, Mar 24, 2011 at 8:30 AM, Y2i <yur...@gmail.com> wrote: > I'm not aware of an existing sample app, but it's not hard to implement. > Start from this > tutorial http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html > In the entry > point http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#Putting_it_all_together > Instead of SimplePanel create DockLayoutPanel. Add TabBar as a north > widget, and a SimplePanel as the center widget. > Initialize the TabBar with tabs > Add SelectionHandler<Integer> to the TabBar > In the selection handler call placeCotroller.goTo() depending on which tab > is selected. > Set SimpleWidget as the display of the activityManager. > Add the DockLayoutPanel to the RootPanel at the end. > You also have to create a presenter, a view, a view implementation (that > implements the view) and an activity (that implements the presenter) for > each tab. > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.