Don't get me wrong: it's a great tool, but like with all visual designer tools: with experience comes detail requirements that can't be done through a designer tool.
-- Anyway, some advice on how to do it without designer:
Take a SimpleWidget panel, add that to the body, or other html element and wen you want to go to another page simple replace the widget in SimpleWidget.
in pseudo code:
SimpleWidget outer = new SimpleWidget();
RootPanel.get("pageId").add(outer);
outer.setWidget(page1); // showing page 1
...
going to page 2 some where in code:
outer.setWidget(page2); // showing page 2
Just put this outer panel in a central Register (Singleton class) such that it can be reached from anywhere and you are done...
Then if you want, add to some Fade In/Out effect when adding page1 and page2... Do this ina transparent way such that the code that add's page X won't see this...
Fade effects looks so much better and professional when navigating. I always do it by wrapping any GWT Panel through my own panel such that the user that adds a widget to the panel won't notice the effect as it's a property of the panel...
BTW: wrapping a panel is also good for testing..., see: https://groups.google.com/forum/#!topic/google-web-toolkit/hwMKmuZv4BI
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/-/jYqkZgyLrl0J.
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.
No comments:
Post a Comment