"small problem of results with gwtext" -problème d'affichage

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

"small problem of results with gwtext" -problème d'affichage

Postby virtus-neutrino » Mon May 26, 2008 10:04 am

good morning to all
here is my problem:


Code: Select all
public class ImageViewer implements EntryPoint {

Panel panel1 = new Panel();

public void onModuleLoad() {
RootPanel.get();

panel1.setTitle("Panel1");
panel1.setHeight("351px");

final Panel Panel2 = new Panel();
panel1.add(Panel2);
Panel2.setCollapsible(true);


Panel2.setTitle("Panel2");
Panel2.setHeight("351px");

final coucou coucou_ = new coucou();
Panel2.add(coucou_);


RootPanel rootPanel = RootPanel.get();
rootPanel.add(panel1, 0, 0);

}
}
Image

Code: Select all
public class coucou extends Composite {


public coucou() {

final AbsolutePanel absolutePanel = new AbsolutePanel();
initWidget(absolutePanel);

final Panel Panel3 = new Panel();
absolutePanel.add(Panel3, 100, 102);
Panel3.setTitle("Panel3");
Panel3.setSize("100px", "100px");

final Panel Panel4 = new Panel();
absolutePanel.add(Panel4, 300, 102);
Panel4.setTitle("Panel4");
Panel4.setSize("100px", "100px");

final FieldSet fieldSet = new FieldSet("FieldSet");
absolutePanel.add(fieldSet, 16, 29);
fieldSet.setWidth("384px");

final Button button = new Button("New Button");
fieldSet.add(button);

}

}

Image

content coucou_ is not correctly displayed.
somebody would have a small idea.

THANK YOU
virtus-neutrino
 
Posts: 2
Joined: Mon May 26, 2008 8:51 am

Re: "small problem of results with gwtext" -problème d'affichage

Postby virtus-neutrino » Mon May 26, 2008 10:52 pm

I found a resolution
there would be an order to be respected

gwt designer :

final Panel panel = new Panel();
absolutePanel.add(panel, 100, 240);
panel.setCollapsible(true);
panel.setTitle("Panel3");
panel.setSize("100px", "100px");


here is the tidying up of lines :

final Panel Panel3 = new Panel();
Panel3.setTitle("Panel3");
Panel3.setCollapsible(true);

absolutePanel.add(Panel3, 100, 102);
panel.setSize("100px", "100px");

I have no more problems, either of billing, or error

here is the class coucou rectified

public class coucou extends Composite {

public coucou() {

final AbsolutePanel absolutePanel = new AbsolutePanel();
initWidget(absolutePanel);

final Panel Panel3 = new Panel();
Panel3.setTitle("Panel3");
Panel3.setCollapsible(true);
absolutePanel.add(Panel3, 100, 102);
Panel3.setSize("100px", "100px");

final Panel Panel4 = new Panel();
Panel4.setTitle("Panel4");
Panel4.setCollapsible(true);
absolutePanel.add(Panel4, 300, 102);
Panel4.setSize("100px", "100px");

final FieldSet fieldSet = new FieldSet("FieldSet");
final Button button = new Button("New Button");
fieldSet.add(button);
absolutePanel.add(fieldSet, 16, 29);
fieldSet.setWidth("384px");

}

}


it is necessary to look at what produces gwt designer, with the gwtext library

à la prochaine :D
virtus-neutrino
 
Posts: 2
Joined: Mon May 26, 2008 8:51 am

Re: "small problem of results with gwtext" -problème d'affichage

Postby Eric Clayberg » Wed May 28, 2008 3:29 am

This is result of known problems with ExtJs / GWT-Ext...

http://www.gwt-ext.com/forum/viewtopic.php?f=5&t=214

GWT Designer expects normal GWT behavior here and the GWT-Ext widgets are behaving very badly.

Given that the future of GWT-Ext appears to be in question, this is not something we are going to try to fix.
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