开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜