Hi, I am currently working on a project using GWT.
Maybe is a good suggestion to change the return value of functions
such as addStyleDependentName or addStyleName from void to the UI
modified itself, so you can do things like this:
DockLayoutPanel appPanel = new DockLayoutPanel(Unit.EM);
appPanel.addNorth(new HTML("hh1").addStyleName("header"), 4);
appPanel.addNorth(new HTML("hh2").addStyleName("subHeader"),
10);
appPanel.addSouth(new HTML("foot").addStyleName("footer"), 4);
appPanel.addWest(new HTML("nav").addStyleName("navigation"),
10);
this code wont compile since the chaining of addStyleName returns void
and not the Widget element.
Simple example provided.
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors