Sunday, August 29, 2010

Re: using the Widget.handlerManager with Composites

On 29 août, 21:26, Joe Hudson <joe...@gmail.com> wrote:
> Hi,
>
> I am using Composites and would like to be able reference the
> HandlerManager methods.  These seem to not be visible to me so I end
> up duplicating the code that already exists on Widget for my
> composites - is there any reason why these methods are friendly scoped
> instead of protected scoped?  Or, am I just thinking about this
> incorrectly?

Any reason you don't just use Widget#addHandler and Widget#fireEvent?
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/Widget.html#addHandler(H,
com.google.gwt.event.shared.GwtEvent.Type)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment