Even do it's dead, let me give some pointers on the Source generic
issue that came in mind:
- My Source isn't part of my HandlerManager, as in the example of Joe
above.
- My Source is contained in the event builder and his type indicated
on the event builder through Generics.
- The source can be passed in every time an event is fired if you
wish.
- I don't think that event delegation is any problem. If I understand
you correctly, I certainly do this and have no problems with it.
Here example code of usage (The Form Generic is the Source):
this.formValidationListenerReg = input.addValidationChangeListener(new
OnValueSourceListener<Form, Boolean>() {
public void onValue(final OnValueSourceEvent<Form, Boolean>
event) {
handleFormValidationChange(event.getValue());
}
});
I am now using it since about 6 months a lot (I work with GWT 24 hours
the last few years) and it works very well...
Have a nice weekend
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---