List of usage examples for com.google.gwt.user.client.ui HTML HTML
protected HTML(Element element)
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); }