Re: mvp for application with menutree
Hi Jeroen,
You might be interested in some of the examples included with GWT-
platform. The SimpleNestedExample (http://code.google.com/p/gwt-
platform/wiki/SimpleNestedSample) uses some of the features required
to build an MVP app with a navigation pane. My little side project
PuzzleBazar also has a more involved layout that uses a
DockLayoutPanel and a left menu bar. (http://code.google.com/p/
puzzlebazar/)
To answer your question: I would make the menu item either an
Hyperlink or an Anchor with an onClick revealing a new history token.
This way, navigating by clicking the menu triggers browser navigation
so you benefit from the browser history. This mechanism is very well
handled by GWTP and is the one demonstrated in the examples mentioned
above. Good luck!
Cheers,
Philippe
On Jul 4, 1:12 am, Jeroen Wolff <jeroen.wo...@gmail.com> wrote:
> Hi, i'm just starting with GWT. First is started to build my app without MVP and now i see why they advise to use the MVP pattern and the eventbus.
>
> I'm building an application with a DockLayout with on the west a treemenu and in the center a form. Which form to display depends on the selected menu item.
>
> How kan i replace presenters (the different forms) in the center of the main DockLayout. Via an event?
>
> And in the menu i want submenu items and those will select a (Dock)panel inside the center form pan.
>
> The screen layout is like this (screen-layout.png):
>
> screen-layout.png
> 37KViewDownload
>
>
>
> Is a menu click an event on the bus? How can the application controller replace the needed presenter inside the main docklayout?
>
> Thanks for all suggestions,
>
> Regards,
>
> Jeroen Wolff
--
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