开发者

GWT wrap <th/> element as Widget and adding click event

开发者 https://www.devze.com 2023-03-11 02:34 出处:网络
I need adding a click event to th (in a table with UIBinde开发者_JAVA技巧r context). Is it possible? Have I to create a TH-Widget with a wrap method? If it\'s so, how?

I need adding a click event to th (in a table with UIBinde开发者_JAVA技巧r context). Is it possible? Have I to create a TH-Widget with a wrap method? If it's so, how?

Thanks, Randomize


You can create your own widget the old-fashioned way with

class TableHead extends Widget implements HasClickHandlers

and then override onBrowserEvent and implement addClickHandler using other GWT widgets as a model. But I don't know how that interacts with UIBinder.

0

精彩评论

暂无评论...
验证码 换一张
取 消