Nico
unread,Aug 25, 2010, 3:20:39 AM8/25/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-mosaic
Hello,
I work with GWT and Mosaïc for 2 years ago and today, for the first
time, I've got an error I don'r understand.
I currently use GWT 2.0.4, GWT Mosaïc 0.4.0 rc4 and FireFox 3.6.8
(with GWT plugin 1.0.7511).
I just try to create an application with source code from showcase:
public void onModuleLoad() {
// Create a layout panel to align the widgets
final LayoutPanel layoutPanel = new ScrollLayoutPanel();
((BoxLayout)layoutPanel.getLayout()).setAlignment(Alignment.CENTER);
final Button b1 = new Button("Width: float<br>Height: float");
final Button b2 = new Button("Width: 25%<br>Height: float");
final Button b3 = new Button("Width: 50%<br>Height: float");
final Button b4 = new Button("Width: 75%<br>Height: float");
final Button b5 = new Button("Width: 50%<br>Height: 50%");
final Button b6 = new Button("Width: 100px<br>Height: 100px");
final Button b7 = new Button("Width: fill<br>Height: float");
layoutPanel.add(b1);
layoutPanel.add(b2, new BoxLayoutData("25%", null));
layoutPanel.add(b3, new BoxLayoutData("50%", null));
layoutPanel.add(b4, new BoxLayoutData("75%", null));
layoutPanel.add(b5, new BoxLayoutData("50%", "50%"));
layoutPanel.add(b6, new BoxLayoutData("100%", "100%"));
layoutPanel.add(b7, new BoxLayoutData(FillStyle.HORIZONTAL));
// Attach the LayoutPanel to the RootLayoutPanel. The latter
will listen for
// resize events on the window to ensure that its children are
informed of
// possible size changes.
RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(layoutPanel);
}
I parametrized my gwt.xml file by adding these lines :
<inherits name='org.gwt.mosaic.Mosaic' />
<inherits name='org.gwt.mosaic.actions.Actions' />
<inherits name='org.gwt.mosaic.forms.Forms' />
<inherits name='org.gwt.mosaic.pagebus.PageBus' />
<inherits name='org.gwt.mosaic.theme.standard.StandardResources' />
But when I launch my application, all the buttons are places on the
same line!
MoreHover, if launch FireBug on the web page, all the buttons move and
take the right place and the right size!
I've just got a warning inEclipse :
Warnings in 'jar:file:/D:/.../lib/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/
mosaic/ui/client/impl/GlassPanelImpl.java'
Line 52: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl
Line 60: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl
Has anyone an idea about my problem?
Nicolas