Is it possible in GWT to use Event bubbling?
For example i would like to propagate an event from a GWT component to
all it's sub components.
Is there a mechanism that implements this feature?
Thanks a lot for the reply
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
Hi Ed,
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You'll find a few examples in Cell implementations, and UiRenderer is based it too (easier than rolling your own, but it's useful to know what it all means)