addClickHandler vs addClickListener

225 views
Skip to first unread message

Aldin Habibović

unread,
Dec 18, 2012, 3:50:10 PM12/18/12
to google-web-toolkit
Hi,

What is the difference between addClickHandler and addClickListener methods. I think there is no difference between it, except
addclickHandler returns HandlerRegistration (used to remove this handler) and by addClickListener return type is void.

What 's better to use?

Jens

unread,
Dec 18, 2012, 4:02:55 PM12/18/12
to google-we...@googlegroups.com
Use addClickHandler.

addClickListener is deprecated and will probably be removed soon.

-- J.

Patrick Tucker

unread,
Dec 19, 2012, 9:27:55 AM12/19/12
to google-we...@googlegroups.com
That would be nice...

Ed

unread,
Dec 19, 2012, 10:51:21 AM12/19/12
to google-we...@googlegroups.com
It would removed in version 2.0 ;)

Op woensdag 19 december 2012 15:27:55 UTC+1 schreef Patrick Tucker het volgende:

Aldin Habibović

unread,
Dec 19, 2012, 10:52:10 AM12/19/12
to google-web-toolkit
but i use GWT 2.5 :D

Thomas Broyer

unread,
Dec 19, 2012, 11:38:31 AM12/19/12
to google-we...@googlegroups.com


On Wednesday, December 19, 2012 3:27:55 PM UTC+1, Patrick Tucker wrote:
That would be nice...


But IIRC Ray told me they have some apps at Google that still use them, so it'll have to wait a bit that those apps are migrated to handlers.
When the switch to Git is over, then maybe Google would be able to revert the change on their own internal fork though.
Reply all
Reply to author
Forward
0 new messages