Can i use GWT Designer in a subclass of Panel?

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

Can i use GWT Designer in a subclass of Panel?

Postby eivenchan » Mon Apr 07, 2008 5:34 pm

Hi ,
I have a class extends the Panel class, and i want to design it in GWT Designer.
But when i click the "Design" button, it shows a dialog:
Designer was unable to find any GUI elements in your source.
Check that the open complilation is a GUI class.


Does GWT Designer support this?
eivenchan
 
Posts: 9
Joined: Tue Mar 25, 2008 5:24 pm

Re: Can i use GWT Designer in a subclass of Panel?

Postby Eric Clayberg » Mon Apr 07, 2008 6:41 pm

eivenchan wrote:I have a class extends the Panel class, and i want to design it in GWT Designer. But when i click the "Design" button, it shows a dialog:
...
Does GWT Designer support this?

Panel should not be subclassed. If you want to create a custom widget/panel, you should subclass Composite as stated in Google GWT docs.

GWT Designer can be used to edit Composites, EntryPoints, DialogBoxes and PopupPanels. It can't be used to edit Panel subclasses. This is intentional.

If you modify your class to be a Composite subclass (containing an Panel), you should be able to edit it using 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