Hi,

We are upgrading our code from GWT 1.4 to 1.7.1, and I have hit a
stumbling block. We have created a custom widget based on the
Composite class and have a RichTextArea embedded within the custom
widget class. When a user of the custom widget subscribes to Blur
(used to be Focus) events for the custom class (ultimately fired by
the RichTextArea widget), we need the handlers to think that the
source of the event is the new custom widget (NOT the RichTextArea
widget, which they know nothing about). This was easily done using the
DelegatingFocusListenerCollection class, but the new API reference
says this is deprecated and we need to use the new
Widget.delegateEvent method.

I cannot see how this can be done using this method, especially since
the documentation for the method provides no useful information. I
tried searching for examples on the web, but could find none. I am
guessing that I need to somehow call delegateEvent on the RichTextArea
widget and pass a reference to our new custom Composite widget,
correct? If so, this is a protected method and can therefore only be
called if I extend the RichTextArea widget and make the call from the
newly extended class. If so, it is not obvious when this method should
be called (in the constructor?). It seems like it should be called
when an event is fired.

An example should clear it up.

Any help would be appreciated.

Thanks,

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