Almost (it never made it into GWT under that exact form):
http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem#Steps_to_create_a_custom_event
1. GwtEvent is a generic class, parameterized with the EventHandler type
2. Key is actually named Type, and only parameterized with the EventHandler 
type (not the event type)
3. the fire() method from Key in the sample code is actually the dispatch() 
method in the GwtEvent class.

I'd recommend looking at the events from com.google.gwt.event.logical.* as 
an inspiration for your own events.

-- 
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