jQuery in Action, 3rd edition
The moose likes GWT and the fly likes Handling Events in Custom Widgets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Handling Events in Custom Widgets" Watch "Handling Events in Custom Widgets" New topic

Handling Events in Custom Widgets

A Raj

Joined: Sep 18, 2011
Posts: 1


I have this doubt which I hope to get clarified.

Prior to GWT 1.6, in a custom widget with overridden 'onBrowserEvent', native events (such as ClickEvent) could be fired to associated listeners using 'fireClick' of [b]ClickListenerCollection
With ClickListenerCollection/ClickListener APIs deprecated since, is it possible to fire the events using a List of ClickHandlers now instead ?

Or is it mandatory that they be registered and then the 'onBrowserEvent' superclass method be called ?
(Reference : Header 'New EventHandler System' and 'Widget Developers' in http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html )

I agree. Here's the link: http://aspose.com/file-tools
subject: Handling Events in Custom Widgets
It's not a secret anymore!