01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package com.google.gwt.sample.kitchensink.client;
17:
18: import com.google.gwt.user.client.ui.Label;
19:
20: /**
21: * Introduction page.
22: */
23: public class Info extends Sink {
24:
25: public static SinkInfo init() {
26: return new SinkInfo(
27: "Intro",
28: "<h2>Introduction to the Kitchen Sink</h2>"
29: + "<p>This is the Kitchen Sink sample. "
30: + "It demonstrates many of the widgets in the Google Web Toolkit."
31: + "<p>This sample also demonstrates something else really useful in GWT: "
32: + "history support. "
33: + "When you click on a tab, the location bar will be "
34: + "updated with the current <i>history token</i>, which keeps the app "
35: + "in a bookmarkable state. The back and forward buttons work properly "
36: + "as well. Finally, notice that you can right-click a tab and 'open "
37: + "in new window' (or middle-click for a new tab in Firefox).</p></p>") {
38:
39: @Override
40: public Sink createInstance() {
41: return new Info();
42: }
43: };
44: }
45:
46: public Info() {
47: initWidget(new Label());
48: }
49:
50: @Override
51: public void onShow() {
52: }
53: }
|