Events in GWT use a bitfield (see sinkEvents and the various constants on 
com.google.gwt.user.client.Event). Unfortunately, it limits the total number 
of events that GWT can support to 32, which is soon to be exhausted.
For browsers which "do not leak" 
(see http://code.google.com/p/google-web-toolkit/wiki/UnderstandingMemoryLeaks 
), that is, almost all but IE, you can add new DomEvent types without the 
need for a reserved bit in the bitfield (they'd be attached "by name" rather 
than "by bit"). addBitlessDomHandler will "addEventHandler" (in the JS) 
using the DomEvent#Type.getName(), rather than deferring to sinkEvent with 
the bit corresponding to that name (resolved by Event.getTypeInt(String)).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mIf8tMiHdeUJ.
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