Tuesday, December 6, 2011

Re: Event Bubbling

The event bubbling you are looking for has nothing to do with GWT.
It's a java design issue.

Like Ashton suggests: use a local (or global) event bus.
Or a parent child relation.
Example: Archive controller with a Declaration and Wallet Archive
controller that will show them self depending if the user want's to
see the wallet or declarations.
The Archive will forward the events to his child's when needs. You can
put this event orchestration in a base class which classes like
Archive extend.

GWT Event bubbling works great but just the other way around as you
suggest.
Example: A panel contains a Button widget. You attach a click handler
to the panel and will receive the Button click events. Very handy when
the Panel has many buttons for example (event bubbles up). This
doesn't work for focus events btw.

Ed

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate