GWT Designer does not render flaxtable items

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

GWT Designer does not render flaxtable items

Postby hermod » Wed Feb 25, 2009 3:00 am

I have a flextable that I add widgets to rows/cells. To avoid mistakes, i use an int index as a pointer to the row:
int rowcount = 0;
FlexTable table = new FlexTable();
table.setWidget(rowcount, 0, new Label("Name");
TextBox name = new TextBox();
table.setWidget(rowcount++, 1, name);
TextBox address = new TextBox();
table.setWidget(rowcount++, 1, address);
and so on

GWT Designer will only show the last added cell when doing it this way. If i use numbered indexing it works fine

Hermod
hermod
 
Posts: 2
Joined: Wed Feb 25, 2009 2:46 am

Re: GWT Designer does not render flaxtable items

Postby Eric Clayberg » Wed Feb 25, 2009 7:24 am

That is correct and working as designed.

GWT Designer will only parse static indeces for row/column positions.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: GWT Designer does not render flaxtable items

Postby hermod » Wed Feb 25, 2009 9:20 am

Ok. Please add a feature request that it will do so in newer releases

Hermod
hermod
 
Posts: 2
Joined: Wed Feb 25, 2009 2:46 am

Re: GWT Designer does not render flaxtable items

Postby Eric Clayberg » Thu Feb 26, 2009 4:11 pm

There is no practical way to round-trip edit dynamic code like that, so this is very unlikely to happen.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests