Component Events in Designer

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

Component Events in Designer

Postby bpetro » Wed Jul 08, 2009 11:40 am

OK, I have a widget (GWT-Ext GridPanel) and I can add an event handler (Row clicked) in it just fine inside the Component widget... But back in the parent (containing the component) I don't see how to register / handle the event that I want that component to publish... What am I missing here???

Seems like I need:
The component to handle by throwing the event outward ...
Designer in the parent, then would need to see that event is published and it would offer a menu to add an event handler on that component (which bubbles up the GridPanel event)

Make sense? How do we do that?
bpetro
 
Posts: 12
Joined: Mon Jun 01, 2009 1:32 pm

Re: Component Events in Designer

Postby bpetro » Wed Jul 08, 2009 2:11 pm

BTW:
I don't see official GWT how-to but I found how to set up the "plumbing" for custom events - I don't know if he uses best practices in this approach - but assuming he does - can Designer support putting together this sort of plumbing? Assuming this isn't a good way, does Designer support putting this linking together in any manner? PS: The fact I'm using a GWT-Ext widget shouldn't matter as the internal component catches whatever event happened and transforms it (in my case I turned it into a "AppSeesRowClicked" event (naming kept generic here).

For details on the approach I'm using, check, the following blog (http://www.itsolut.com/chrismusings/category/gwt/) and go down the blog page a little ways and you'll find "Business Events with GWT 1.6" - this appears to work just fine (but again do not know if its GWT official approach).

So the basic question comes down to: please let us know how Designer supports or doesn't support "cross-component events" like this.
bpetro
 
Posts: 12
Joined: Mon Jun 01, 2009 1:32 pm

Re: Component Events in Designer

Postby Eric Clayberg » Thu Jul 09, 2009 8:21 am

We support any listeners that are added using methods named add*[Listener,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


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest