GWT designer - layoutpanels visibility problem

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 - layoutpanels visibility problem

Postby hosszu » Wed Nov 10, 2010 12:48 am

Bug report:


GWT Designer
Version: 8.1.0
Build id: 2010.10.22

Eclipse SDK
Version: 3.6.1
Build id: M20100909-0800

Windows Vista

to reproduce the bug:

1. make a new class: public class myClass extends SimplePanel
2. switch to design view, set SimplePanel size to 600x600, just to be sure its not too small
3. put a SplitLayoutPanel on SimplePanel, size eg. 500x500, or any visible size
4. put a Button (or any other widget) on North (or West or enywhere), e.g. size 100x100

result: just resize frame of designer for the widget from point 4 is visible, nothing else...

Am I doing something wrong ? some settings problem ? or is this really a bug ?

Thanks for answers.

T.H.

P.S: couldnt find the URL for bug report, is there any ?
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby Eric Clayberg » Wed Nov 10, 2010 6:32 am

I'm not sure what problem you are reporting since you did not include any screen shots. I tried the steps you described, and it seemed to work fine.

I do have a couple of comments though...

1) Class names should be capitalized (e.g., MyClass)

2) You should subclass Composite rather than SimplePanel. See...

http://code.google.com/webtoolkit/doc/l ... dgets.html

3) Resizing the content widget of a SimplePanel is a bad idea in general. It should always be sized to 100%, 100%.
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 - layoutpanels visibility problem

Postby hosszu » Wed Nov 10, 2010 8:21 am

Hi,

OK, I got the idea of SimplePanel is bad example.

here is the code and the screenshot if what is not working well.... and look at attachment screenshots...where is the Button ? (I cannot see it :( )

public class MyClass extends SplitLayoutPanel {
public MyClass() {
setSize("400", "400");

Button button = new Button("New button");
addNorth(button, 100.0);
button.setSize("100", "100");

SimplePanel simplePanel = new SimplePanel();
addEast(simplePanel, 100.0);
simplePanel.setSize("100", "100");
}

}
Attachments
Screenshot 2.jpg
Screenshot 2.jpg (148.87 KiB) Viewed 417 times
Screenshot 1.jpg
Screenshot 1.jpg (96.24 KiB) Viewed 417 times
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby hosszu » Wed Nov 10, 2010 8:24 am

another example:

code is here and see screenshot attachment:

public class MyClass extends ResizeComposite {
public MyClass() {

DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.EM);
initWidget(dockLayoutPanel);

Button button = new Button("New button");
dockLayoutPanel.addWest(button, 6.2);

Button button_1 = new Button("New button");
dockLayoutPanel.addEast(button_1, 6.2);

}
}
Attachments
Screenshot 3.jpg
Screenshot 3.jpg (147.51 KiB) Viewed 417 times
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby hosszu » Wed Nov 10, 2010 8:52 am

OK

I found more info why it is not working. In standard situation it works well...

BUT...

Unfortunately, my conception of application is like this:

A. main project, imagine just a simple tablayoutpanel....

B. modules, whithout entry points (standard client and server package in every module). These modules client class is used in mainproject tabpanel as tabpanel.add(moduleclass) if logged user has rights. These modules I reuse in different applications for different customers. (e.g. module for user administration, static HTML editor etc...)

So modules are something like standalone applications, put together in simple tabpanel project on tabs in main application.

Designing problem I complain about is not working (as I described in previous posts) ONLY in those modules (no war dir, no .html no web.xml)

any solution ?
thank you for your time.

T.H.
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby Eric Clayberg » Thu Nov 11, 2010 9:28 am

I have no idea without a complete test case project.

We don't see any problems with projects like the one you described.
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 - layoutpanels visibility problem

Postby hosszu » Thu Nov 11, 2010 4:35 pm

Hi,

OK, I prepared a complete very simple test project for you to see what is not working well.
btw, I found a solution workaround which is included in the test project.

in attachment, there is a complete Eclipse workspace.

description:

1. main module (GWTDesignerTest) just a splitlayoutpanel - (vertical split).
this is via deferred binding attaching (North+center) two widgets comming from standalone modules (projects - see below).

if you try to design this GWTDesignerTest.java - everything works OK

1.a. ClassNotWorking (descendant of splitlayoutpanel) with two buttons.

try to design it, and see the problem...

1. b. ClassWorking (same as 1a)

here designing works.

workaround - its not necessary for module, but I added war directory, web.xml and empty html. and it worked.
It seems that designer parsing is always dependent on .html file.


thank you.

except this I have a question: are you planning support for clientbudle ? (I mean no way now use the designer to set e.g. Image(ImageResource) - ImageBundle is deprecated)

T.H.
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby hosszu » Thu Nov 11, 2010 4:38 pm

sorry,

here is the attachement - archive export from eclipse
Attachments
worktest.zip
(13.08 KiB) Downloaded 13 times
hosszu
 
Posts: 8
Joined: Tue Nov 09, 2010 3:40 pm

Re: GWT designer - layoutpanels visibility problem

Postby Eric Clayberg » Mon Nov 15, 2010 7:24 pm

Both of your examples look fine on or end.

What exact OS and browser version are you using? This may be very specific to that combination.
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

cron