Widget extending SimplePanel is not added to Custom Controls

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

Widget extending SimplePanel is not added to Custom Controls

Postby ashouric » Thu Oct 19, 2006 1:04 pm

Dear all,

Make a new Widget that extends SimplePanel, then try to add it as a new Entry in Custom Controls, it is not added.

Note that custom widgets directly extending Composite work fine, but seems that indirect sub-classes are ignored.
ashouric
 
Posts: 75
Joined: Sat Sep 30, 2006 9:13 pm

Re: Widget extending SimplePanel is not added to Custom Cont

Postby Eric Clayberg » Thu Oct 19, 2006 5:51 pm

ashouric wrote:Make a new Widget that extends SimplePanel, then try to add it as a new Entry in Custom Controls, it is not added.

I tried this using the latest build and it seemed to work fine. Here's the panel that I used...

Code: Select all
package com.mycompany.project.client;

import com.google.gwt.user.client.ui.SimplePanel;

public class MySimplePanel extends SimplePanel {
     public MySimplePanel() {
          super();
     }
}

Can you send a test case for a panel that does not work?

ashouric wrote:Note that custom widgets directly extending Composite work fine, but seems that indirect sub-classes are ignored.

Can you send a test case? I tried a simple subclass of a subclass of Composite and it worked fine.
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

Postby ashouric » Fri Oct 20, 2006 4:11 am

I was using build 10.18

Now it is fixed, many thanks.
ashouric
 
Posts: 75
Joined: Sat Sep 30, 2006 9:13 pm


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests