Hi everyone,
 I am using EventBus and I have a tab panel. Each tabitem is an
instance of a class (PoliciesTab, SettingsTab etc ) that extends
TabItem.

These tabs have some common elements which I added to each TabItem
(each Tab Item gets its own DateFilterFooter or HelpPanel). In this
case I have my "DateFilterFooter" that fires the custom event
"DateFilterEvent" when the user changes the DateFilter criteria.

My problem is, I only want the bubble to be relevant for the current
tab since having all tabs update in response would be Really Bad (lots
of datagrids). The only way I can think to do this would be to add an
attribute to DateFilterEvent (filterTab) that each registered event
listener (ie: each tab) checks for in its handler so that it can to
determine if it should respond. Probably using a simple enum approach
: if(event.getTab() == TabEvent.POLICIES){ do_stuff(); }

Is that just as wrong-headed as it feels? Any tips?

John-

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to