Example usage for com.google.gwt.user.client.ui HTML HTML

List of usage examples for com.google.gwt.user.client.ui HTML HTML

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HTML HTML.

Prototype

protected HTML(Element element) 

Source Link

Document

This constructor may be used by subclasses to explicitly use an existing element.

Usage

From source file:com.google.gwt.gwtai.demo.client.TrayIconAppletTab.java

License:Apache License

/**
 * Helper-Method to construct an HTML element containing some example code
 * snippets./*  ww w  .j  ava 2 s  .  c  o  m*/
 */
private HTML createCodeHTML() {
    String html = "<b>TrayIconAppletTab.java</b>" + "<pre>...\n"
            + "TrayIconApplet trayIconApplet = (TrayIconApplet) GWT.create(TrayIconApplet.class);\n"
            + "Widget widgetApplet = AppletJSUtil.createAppletWidget(trayIconApplet);\n" + "...\n"
            + "panelMain.add(widgetApplet);\n" + "initWidget(panelMain);\n" + "...</pre>";

    return new HTML(html);
}