showing a list of values in the designer

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

showing a list of values in the designer

Postby mwaschkowski » Thu Aug 28, 2008 12:16 pm

Hi,

In the properties tab in Gwt Designer if a field is an enum type, a list of values for the enum are shown in a dropdown (via reflection), which is fabulous. Is there any other way to populate the drop down that GWT Designer generates other than having a field of an enum type?

ie. I would like to create a dynamic list of values via a List<String> or some such...

Thanks very much!

Mark
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: showing a list of values in the designer

Postby Eric Clayberg » Fri Aug 29, 2008 4:25 am

mwaschkowski wrote:In the properties tab in Gwt Designer if a field is an enum type, a list of values for the enum are shown in a dropdown (via reflection), which is fabulous. Is there any other way to populate the drop down that GWT Designer generates other than having a field of an enum type?

Under GWT, Enums are the only way to do this currently.

Under SWT & Swing, this is easy as both support JavaBean-based customizers, so it is easy to add custom properties and custom editors. GWT does not support this (not yet anyway).
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: showing a list of values in the designer

Postby mwaschkowski » Fri Aug 29, 2008 5:34 am

OK, great to know, thanks very much!

Would love to see that support in GWT in the future.

As well, I want to let you know that GWT Designer is working out really well for me, I wouldn't be able to complete my project without it.

Best,

Mark
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: showing a list of values in the designer

Postby Eric Clayberg » Fri Aug 29, 2008 9:51 am

mwaschkowski wrote:Would love to see that support in GWT in the future.

Petition Google. We could make something up, but it would be much better for Google to standardize this entire area.
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: showing a list of values in the designer

Postby mwaschkowski » Tue Sep 30, 2008 4:15 am

Hi Eric,

OK, I keep running into this issue, what would I say to google to petition them for this type of functionality? Support for JavaBean-based customizers?

Thanks,

Mark
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: showing a list of values in the designer

Postby Eric Clayberg » Tue Sep 30, 2008 5:07 am

mwaschkowski wrote:Support for JavaBean-based customizers?

General JavaBean support would be good which would include standardize support for property accessors, default constructors, custom editors, customizers, Beans.isDesignTime(), etc.
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: showing a list of values in the designer

Postby mwaschkowski » Mon Oct 06, 2008 5:11 pm

I'm afraid that I may not have made my point clear, or that I'm not able to reach the correct people. I'm going to try in the contrib forum later on in the week.

http://groups.google.com/group/Google-W ... 66ecb98dc9

Regards,

Mark
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: showing a list of values in the designer

Postby Eric Clayberg » Tue Oct 07, 2008 10:28 am

Support for Beans.isDesignTime() in the GWT emulation layer would be a good start.

If Google does not standardize support for custom widgets/beans, we will probably just publish a spec for integrating directly with GWT Designer.
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 3 guests