I've managed to convince myself that it would be a trivial amount of work to
introduce a GwtEventPreview interface into the events package and that the
change would be a good one.  In specific we would have:


public interface GwtEventPreview {
    boolean onGwtEventPreview(GwtEvent event);
}


and, in HandlerManager:

public void setGwtEventPreview(GwtEventPreview preview)



Then, in the final fireEvent method, if a preview has been installed, the
event is routed through the preview first and is only fired if the preview
returns true.

Can anyone think of any problems with this logic,  any reason this change
would take more then a few minutes to create, or any potentially better
solutions which we might want to use instead?  As we can certainly wait
until GWT 2.0 to introduce something like this if we can think of
any conceivable objections.


Cheers,

                Emily





-- 
"There are only 10 types of people in the world: Those who understand
binary, and those who don't"

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to