popup example

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

popup example

Postby richfarrell » Wed Jun 20, 2007 8:24 am

Hello,
First let me say I love gwtDesigner, its been great to work with.

I don't understand how to use the popup panel however (more of a gwt issue I'm sure than just designer).

If I create a popuppanel, should I instantiate an instance of it in my composite that I want to have a popup?

Ive tried creating a panel using gwt>popupPanel,

My popup is just:

...
public class SurveyUsersPopup extends PopupPanel {
public SurveyUsersPopup() {
super(true);
final FlexTable userTable = new FlexTable();
setWidget(userTable);
userTable.setSize("100%", "100%");

final Label testLabel = new Label("TEST");
userTable.setWidget(0, 0, testLabel);
}
}

and then within my composite i just load it with
new SurveyUsersPopup().show();

however that throws an error at runtime.

Is there a popup example around somewhere?

Thanks for any advice.
... Rich
richfarrell
 
Posts: 3
Joined: Wed Mar 07, 2007 11:36 am
Location: waltham, ma

Re: popup example

Postby Eric Clayberg » Sun Jun 24, 2007 3:19 pm

richfarrell wrote:Is there a popup example around somewhere?

Have you looked at Google's GWT examples?

The Kitchen Sink example has a page with popups.
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