1 16 package com.google.gwt.sample.kitchensink.client; 17 18 import com.google.gwt.user.client.ui.Label; 19 20 23 public class Info extends Sink { 24 25 public static SinkInfo init() { 26 return new SinkInfo("Intro", "<h2>Introduction to the Kitchen Sink</h2>" + 27 "<p>This is the Kitchen Sink sample. " 28 + "It demonstrates many of the widgets in the Google Web Toolkit." 29 + "<p>This sample also demonstrates something else really useful in GWT: " 30 + "history support. " 31 + "When you click on a tab, the location bar will be " 32 + "updated with the current <i>history token</i>, which keeps the app " 33 + "in a bookmarkable state. The back and forward buttons work properly " 34 + "as well. Finally, notice that you can right-click a tab and 'open " 35 + "in new window' (or middle-click for a new tab in Firefox).</p></p>") { 36 37 public Sink createInstance() { 38 return new Info(); 39 } 40 }; 41 } 42 43 public Info() { 44 initWidget(new Label()); 45 } 46 47 public void onShow() { 48 } 49 } 50 | Popular Tags |