开发者

Template embedding in gwt application

I have template with its css and html.Now I want to get all the look and features (compatibility) of that template in my gwt application. I am not getting the right way to do that. One way which I thought is that for control there will开发者_运维知识库 be a .html file , which will be added to the gwt root panel using frame.I also don't know it is right way or not. Please help me out to embed all the look and feature of the template to the gwt application.


You can simply use your html template as the GWT host page.

The tricky part is using GWT Widgets. GWT Widgets, especially layout panels, produce their own html, which might not match your template and/or css.

You might get around that somewhat by wrapping Widgets around existing html by using widget.wrap(element) method. This method is available on some widgets: Label, TextBox, etc..

Also, if your css is class-oriented, you might get by by setting proper style classes of widgets: widget.setStyleName(className).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜