You can use the class as the "source" for the event (
EventBus#addHandlerToSource<http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/event/shared/EventBus.html#addHandlerToSource(com.google.gwt.event.shared.GwtEvent.Type,
 
java.lang.Object, H)> and 
EventBus#fireEventFromSource<http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/event/shared/EventBus.html#fireEventFromSource(com.google.gwt.event.shared.GwtEvent,
 
java.lang.Object)>).
This is what RequestFactory uses for instance: it has a single 
EntityProxyChange event and you register with a Class<? extends EntityProxy> 
to be notified only when the event is about that particular kind of objects.

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

Reply via email to