GXT : GWT Designer and event handler

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

GXT : GWT Designer and event handler

Postby eoriou » Tue Nov 10, 2009 8:22 am

I tested different kind of GXT components and when I created a list, a grid or a tree, I expected to find in context menu "Add event handler" the way to add a select event handler or double click event handler to the selected component but I didn't find them. This menu doesn't contain the most frequently used events. Could you tell me if you will improve this point in a near future ?
eoriou
 
Posts: 19
Joined: Thu May 07, 2009 7:43 am

Re: GXT : GWT Designer and event handler

Postby Eric Clayberg » Mon Nov 16, 2009 2:49 pm

eoriou wrote:I tested different kind of GXT components and when I created a list, a grid or a tree, I expected to find in context menu "Add event handler" the way to add a select event handler or double click event handler to the selected component but I didn't find them. This menu doesn't contain the most frequently used events. Could you tell me if you will improve this point in a near future ?

The "Add event handler" command can be used to create event handlers for any of the standard typed events supported by GWT and GXT. It appears that the GXT API is a bit "lazy" and offers a number of untyped events that do not have normal, typed counterparts. The latest GWT Designer build now adds support for these untyped events which can be configured by right-clicking on the widget and selecting the event type.

Image

Code like the following will be generated:

Code: Select all
button.addListener(Events.Select, new Listener<ButtonEvent>() {
    public void handleEvent(ButtonEvent e) {
    }
});

Hold the Ctrl key down to remove an event handler.
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: GXT : GWT Designer and event handler

Postby eoriou » Wed Nov 18, 2009 6:40 am

Thank you for this improvement.
eoriou
 
Posts: 19
Joined: Thu May 07, 2009 7:43 am

Re: GXT : GWT Designer and event handler

Postby Eric Clayberg » Wed Nov 18, 2009 6:54 am

I hope that lets you do what you wanted. Let us know if we missed any events on any of the components (we had to build up these lists manually since the normal reflection techniques we use for normal types events would not work).
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 1 guest