我如何在GWT / GXT网络应用程序中嵌入网页? [英] How can I embed a webpage in a GWT/GXT webapp?

查看:98
本文介绍了我如何在GWT / GXT网络应用程序中嵌入网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力重新创建(概念上)我在GWT / GXT中用卡布奇诺编写的原型。通过使用WebView,卡布奇诺使得显示外部网页作为应用程序的一部分变得微不足道。

然而,我找不到用GWT / GXT做这件事的方法。有一个HtmlContainer小部件,但这似乎是为其他目的而设计的。如何做到这一点的任何建议?

解决方案

您可以设置 ContentPanel



例如

  ContentPanel panel = new ContentPanel(); 
panel.setUrl(http://www.url.com/page);
panel.setHeaderVisible(false);
panel.setBorders(false);
panel.setBodyBorder(false);

您也可以对GXT Window类执行此操作。


I am working to recreate (conceptually) a prototype I've written in Cappuccino in GWT/GXT. Cappuccino made it trivial to display an external webpage as part of the application by using a WebView.

However, I cannot find any way to do this with GWT/GXT. There is a HtmlContainer widget, but this seems to be intended for something else. Any suggestions on how to do this?

解决方案

You can set the url of a ContentPanel

e.g.

ContentPanel panel = new ContentPanel();
panel.setUrl("http://www.url.com/page");
panel.setHeaderVisible(false);
panel.setBorders(false);
panel.setBodyBorder(false);

You can also do this for the GXT Window class too.

这篇关于我如何在GWT / GXT网络应用程序中嵌入网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆