开发者

Integration of GWT and HTML

开发者 https://www.devze.com 2023-03-25 18:26 出处:网络
Can we keep a static HTML to integrate with the dynamic GW开发者_StackOverflow中文版T Widgets that are created. And how will the event handling can be done for the dynamic GWT Widgets. You have to \"a

Can we keep a static HTML to integrate with the dynamic GW开发者_StackOverflow中文版T Widgets that are created. And how will the event handling can be done for the dynamic GWT Widgets.


You have to "attach" GWT widgets to the existing DOM (i.e. HTML) to receive DOM events.

Use wrap(Element) method that some widgets provide (Label, TextArea, etc) to wrap existing HTML.

You don't have to do this for every Widget, just for the top-most widget in your hierarchy. The easiest would be to use HTML.wrap(element) (or InlineHTML if you need an inline element) and then add your Widgets to it.

0

精彩评论

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