how to define a widget which have custum defined event?

14 views
Skip to first unread message

wahaha

unread,
Dec 4, 2011, 9:42:01 PM12/4/11
to Google Web Toolkit
i do not know how to define a widget wich have its own event type and
listener type.

Ashton Thomas

unread,
Dec 5, 2011, 8:01:44 AM12/5/11
to google-we...@googlegroups.com
1) create a widget
2) create event
3) create event handler
4) have your widget implement the handler
5) register the widget as a handler of the new event with eventBus (probably at the very start of your application)

Hope that helps
Reply all
Reply to author
Forward
0 new messages