简体   繁体   English

将HTML页面用于GWT应用程序

[英]Use HTML pages into GWT application

I want to use html pages into phone-gap application with the help of GWT application. 我想在GWT应用程序的帮助下将html页面用于电话间隙应用程序。

I have one HTML page with css and javascript file. 我有一个带有CSS和javascript文件的HTML页面。 So How can I integrate with GWT web application.? 那么如何与GWT Web应用程序集成呢?

So By the end of compiling, I can use into phone-gap project for same as I designed the page. 因此,在编译结束时,我可以像设计页面一样使用手机间隙项目。

can anyone tell me steps for this procedure.? 谁能告诉我这个程序的步骤。

Thanks in Advance. 提前致谢。

Haven't tried it but this may help. 没试过,但这可能会有所帮助。 http://code.google.com/p/gwt-phonegap/ http://code.google.com/p/gwt-phonegap/

Heard it is pretty good 听说它很不错

Try using iframe . 尝试使用iframe It is a standard HTML tag (see http://www.w3schools.com/tags/tag_iframe.asp ), where you can put a link to another page and the page will be embedded in your document. 它是一个标准的HTML标记(请参阅http://www.w3schools.com/tags/tag_iframe.asp ),您可以在其中放置指向另一个页面的链接,该页面将嵌入到您的文档中。

<iframe src="http://www.w3schools.com">
  <p>Your browser does not support iframes.</p>
</iframe>

You can add it programmatically as well. 您也可以通过编程方式添加它。

public class FrameExample implements EntryPoint {

    public void onModuleLoad() {
        // Make a new frame, and point it at Google.
        Frame frame = new Frame("http://www.google.com/");

        // Add it to the root panel.
        RootPanel.get().add(frame);
    }

}

The example is from http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Frame.html . 该示例来自http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Frame.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM