Removed KitchenSink example as it is being replaced by the Showcase example. References to the KitchenSink example in the getting started guide have been replaced with Mail sample, including the associated images.
Patch by: jlabanca
Review by: bruce (pair programming)
Issue: 2306
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2481 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/distro-source/core/src/index.html b/distro-source/core/src/index.html
index 7cc19f6..3c6781e 100644
--- a/distro-source/core/src/index.html
+++ b/distro-source/core/src/index.html
@@ -125,9 +125,9 @@
</div>
</li>
<li>
- <a href="samples/KitchenSink/www/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html">Kitchen Sink</a>
+ <a href="samples/Showcase/www/com.google.gwt.sample.showcase.Showcase/Showcase.html">Showcase</a>
<div>
- Widgets in action.
+ Complex UI illustrating Widgets in action.
</div>
</li>
<li>
diff --git a/doc/src/gettingstarted.html b/doc/src/gettingstarted.html
index 0400263..4c55c0a 100644
--- a/doc/src/gettingstarted.html
+++ b/doc/src/gettingstarted.html
@@ -206,37 +206,37 @@
<h3>Running in Hosted Mode</h3>
-<p>To run the Kitchen Sink sample in <a href="./com.google.gwt.doc.DeveloperGuide.Fundamentals.HostedMode.html">hosted mode</a>, navigate to the <code>samples/KitchenSink/</code> directory and run the <code>KitchenSink-shell</code> script. This will open the GWT browser with the Kitchen Sink application running inside:</p>
+<p>To run the Mail sample in <a href="./com.google.gwt.doc.DeveloperGuide.Fundamentals.HostedMode.html">hosted mode</a>, navigate to the <code>samples/Mail/</code> directory and run the <code>Mail-shell</code> script. This will open the GWT browser with the Mail application running inside:</p>
-<div class="screenshot"><img src="./kitchensink-hosted.jpg" alt="Screenshot"/></div>
+<div class="screenshot"><img src="./mail-hosted.png" alt="Screenshot"/></div>
<p>Since you're running in <a href="./com.google.gwt.doc.DeveloperGuide.Fundamentals.HostedMode.html">hosted mode</a>, the application is running in the Java Virtual Machine (JVM). This is typically the mode you'll use to debug your applications.</p>
<h3>Running in Web Mode</h3>
-<p>To run the application in <a href="./com.google.gwt.doc.DeveloperGuide.Fundamentals.WebMode.html">web mode</a>, compile the application by running the <code>KitchenSink-compile</code> script. The GWT compiler will generate a number of JavaScript and HTML files from the Kitchen Sink Java source code in the <code>www/</code> subdirectory. To see the application, open the file <code>www/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html</code> in your favorite web browser.</p>
+<p>To run the application in <a href="./com.google.gwt.doc.DeveloperGuide.Fundamentals.WebMode.html">web mode</a>, compile the application by running the <code>Mail-compile</code> script. The GWT compiler will generate a number of JavaScript and HTML files from the Mail Java source code in the <code>www/</code> subdirectory. To see the application, open the file <code>www/com.google.gwt.sample.mail.Mail/Mail.html</code> in your favorite web browser.</p>
-<div class="screenshot"><img src="./kitchensink-web.jpg" alt="Screenshot"/></div>
+<div class="screenshot"><img src="./mail-web.png" alt="Screenshot"/></div>
-<p>Since you've compiled the project, you're now running pure JavaScript and HTML that should work in IE, Firefox, or Safari. If you were to deploy the Kitchen Sink example project in production, you would distribute the files in your <code>www/com.google.com.google.gwt.sample.kitchensink.KitchenSink/</code> directory to your web servers.</p>
+<p>Since you've compiled the project, you're now running pure JavaScript and HTML that should work in IE, Firefox, or Safari. If you were to deploy the Mail example project in production, you would distribute the files in your <code>www/com.google.com.google.gwt.sample.mail.Mail/</code> directory to your web servers.</p>
<h3>Make a Few Changes</h3>
-<p>The source code for Kitchen Sink is in the <code>src/</code> subdirectory. Try closing your browser windows, and open the file
-<code>src/com/google/gwt/sample/kitchensink/client/Info.java</code> in a text editor. Line 26 of the file is the first line of the
-static initialization method for the first tab in the Kitchen Sink application ("Intro"):</p>
+<p>The source code for Mail sample is in the <code>src/</code> subdirectory. Try closing your browser windows, and open the file
+<code>src/com/google/gwt/sample/mail/client/Shortcuts.java</code> in a text editor. Line 55 of the file adds a new "Tasks"
+section to the main StackPanel on the left side of the application:</p>
-<pre class="code">return new SinkInfo("Intro", "<h2>Introduction to the Kitchen Sink.</h2>") {</pre>
+<pre class="code">add(images, new Tasks(), images.tasksgroup(), "Tasks");</pre>
-<p>Change the second string from <code>"<h2>Introduction to the Kitchen Sink.</h2>"</code> to <code>"<h2>Foo bar</h2>"</code>:</p>
+<p>Change the string from <code>"Tasks"</code> to <code>"To-Do List"</code>:</p>
-<pre class="code">return new SinkInfo("Intro", <ins>"<h2>Foo bar</h2>"</ins>) {</pre>
+<pre class="code">add(images, new Tasks(), images.tasksgroup(), "To-Do List");</pre>
<p>Now, save the file and simply click "Refresh" in the hosted mode application to see your recent change (if you previously closed
-hosted mode, go ahead and re-run the <code>KitchenSink-shell</code> script). The header should now say "Foo
-bar" instead of "Introduction to the Kitchen Sink.":</p>
+hosted mode, go ahead and re-run the <code>Mail-shell</code> script). The second item in the main StackPanel should now say
+"To-Do List" instead of "Tasks":</p>
-<div class="screenshot"><img src="./kitchensink-modified.jpg" alt="Screenshot" style="border: 1px solid silver"/></div>
+<div class="screenshot"><img src="./mail-modified.png" alt="Screenshot" style="border: 1px solid silver"/></div>
<a name="New"></a>
<h2>Creating an Application from Scratch (without Eclipse)</h2>
diff --git a/doc/src/kitchensink-hosted.jpg b/doc/src/kitchensink-hosted.jpg
deleted file mode 100644
index c3f4d1f..0000000
--- a/doc/src/kitchensink-hosted.jpg
+++ /dev/null
Binary files differ
diff --git a/doc/src/kitchensink-modified.jpg b/doc/src/kitchensink-modified.jpg
deleted file mode 100644
index fd167e4..0000000
--- a/doc/src/kitchensink-modified.jpg
+++ /dev/null
Binary files differ
diff --git a/doc/src/kitchensink-web.jpg b/doc/src/kitchensink-web.jpg
deleted file mode 100644
index 6a3429e..0000000
--- a/doc/src/kitchensink-web.jpg
+++ /dev/null
Binary files differ
diff --git a/doc/src/mail-hosted.png b/doc/src/mail-hosted.png
new file mode 100644
index 0000000..c10056b
--- /dev/null
+++ b/doc/src/mail-hosted.png
Binary files differ
diff --git a/doc/src/mail-modified.png b/doc/src/mail-modified.png
new file mode 100644
index 0000000..458cf6d
--- /dev/null
+++ b/doc/src/mail-modified.png
Binary files differ
diff --git a/doc/src/mail-web.png b/doc/src/mail-web.png
new file mode 100644
index 0000000..9c7201e
--- /dev/null
+++ b/doc/src/mail-web.png
Binary files differ
diff --git a/eclipse/README.txt b/eclipse/README.txt
index ae639dd..f994a37 100644
--- a/eclipse/README.txt
+++ b/eclipse/README.txt
@@ -116,7 +116,7 @@
Select 'gwt-user'
Select any of the GWT samples as you want. The most useful ones are:
- Hello: very simple project useful as a little playground
- - KitchenSink: complex UI application
+ - Showcase: complex UI application
- DynaTable: uses RPC
Then press the Finish button.
diff --git a/eclipse/samples/KitchenSink/.checkstyle b/eclipse/samples/KitchenSink/.checkstyle
deleted file mode 100644
index 0f1cbd9..0000000
--- a/eclipse/samples/KitchenSink/.checkstyle
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<fileset-config file-format-version="1.2.0" simple-config="true">
- <fileset name="all" enabled="true" check-config-name="GWT Checks" local="false">
- <file-match-pattern match-pattern="." include-pattern="true"/>
- </fileset>
- <filter name="NonSrcDirs" enabled="true"/>
-</fileset-config>
diff --git a/eclipse/samples/KitchenSink/.classpath b/eclipse/samples/KitchenSink/.classpath
deleted file mode 100644
index 8996e78..0000000
--- a/eclipse/samples/KitchenSink/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="core/src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry combineaccessrules="false" kind="src" path="/gwt-user"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/eclipse/samples/KitchenSink/.project b/eclipse/samples/KitchenSink/.project
deleted file mode 100644
index 4962ae3..0000000
--- a/eclipse/samples/KitchenSink/.project
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>KitchenSink</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
- </natures>
- <linkedResources>
- <link>
- <name>core</name>
- <type>2</type>
- <location>GWT_ROOT/samples/kitchensink</location>
- </link>
- </linkedResources>
-</projectDescription>
diff --git a/samples/build.xml b/samples/build.xml
index 37ad07b..ccf4ff4 100644
--- a/samples/build.xml
+++ b/samples/build.xml
@@ -22,10 +22,6 @@
<gwt.ant dir="json" />
</target>
- <target name="kitchensink" description="Build kitchensink">
- <gwt.ant dir="kitchensink" />
- </target>
-
<target name="mail" description="Build mail">
<gwt.ant dir="mail" />
</target>
@@ -43,7 +39,6 @@
<antcall target="hello" />
<antcall target="i18n" />
<antcall target="json" />
- <antcall target="kitchensink" />
<antcall target="mail" />
<antcall target="showcase" />
<antcall target="simplexml" />
diff --git a/samples/kitchensink/build.xml b/samples/kitchensink/build.xml
deleted file mode 100755
index 6056a9e..0000000
--- a/samples/kitchensink/build.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<project name="kitchensink" default="build" basedir=".">
- <property name="sample.root" value="kitchensink" />
- <property name="sample.module" value="KitchenSink" />
- <import file="../common.ant.xml" />
-</project>
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/COPYING b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/COPYING
deleted file mode 100644
index d9a10c0..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/COPYING
+++ /dev/null
@@ -1,176 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/KitchenSink.gwt.xml b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/KitchenSink.gwt.xml
deleted file mode 100644
index 13b6396..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/KitchenSink.gwt.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<!-- -->
-<!-- Copyright 2007 Google Inc. -->
-<!-- Licensed under the Apache License, Version 2.0 (the "License"); you -->
-<!-- may not use this file except in compliance with the License. You may -->
-<!-- may obtain a copy of the License at -->
-<!-- -->
-<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
-<!-- -->
-<!-- Unless required by applicable law or agreed to in writing, software -->
-<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
-<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
-<!-- implied. License for the specific language governing permissions and -->
-<!-- limitations under the License. -->
-
-<module>
- <inherits name='com.google.gwt.user.User'/>
- <inherits name="com.google.gwt.i18n.I18N"/>
- <entry-point class='com.google.gwt.sample.kitchensink.client.KitchenSink'/>
- <stylesheet src='KitchenSink.css'/>
-</module>
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Info.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Info.java
deleted file mode 100644
index 8b7e698..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Info.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.ui.Label;
-
-/**
- * Introduction page.
- */
-public class Info extends Sink {
-
- public static SinkInfo init() {
- return new SinkInfo("Intro", "<h2>Introduction to the Kitchen Sink</h2>" +
- "<p>This is the Kitchen Sink sample. "
- + "It demonstrates many of the widgets in the Google Web Toolkit."
- + "<p>This sample also demonstrates something else really useful in GWT: "
- + "history support. "
- + "When you click on a tab, the location bar will be "
- + "updated with the current <i>history token</i>, which keeps the app "
- + "in a bookmarkable state. The back and forward buttons work properly "
- + "as well. Finally, notice that you can right-click a tab and 'open "
- + "in new window' (or middle-click for a new tab in Firefox).</p></p>") {
-
- @Override
- public Sink createInstance() {
- return new Info();
- }
- };
- }
-
- public Info() {
- initWidget(new Label());
- }
-
- @Override
- public void onShow() {
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/KitchenSink.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/KitchenSink.java
deleted file mode 100644
index ee006e5..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/KitchenSink.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.sample.kitchensink.client.Sink.SinkInfo;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.History;
-import com.google.gwt.user.client.HistoryListener;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.RootPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
-
-/**
- * Application that demonstrates all of the built-in widgets.
- */
-public class KitchenSink implements EntryPoint, HistoryListener {
-
- private static final Sink.Images images = GWT.create(Sink.Images.class);
-
- protected SinkList list = new SinkList(images);
- private SinkInfo curInfo;
- private Sink curSink;
- private HTML description = new HTML();
- private VerticalPanel panel = new VerticalPanel();
-
- public void onHistoryChanged(String token) {
- // Find the SinkInfo associated with the history context. If one is
- // found, show it (It may not be found, for example, when the user mis-
- // types a URL, or on startup, when the first context will be "").
- SinkInfo info = list.find(token);
- if (info == null) {
- showInfo();
- return;
- }
- show(info, false);
- }
-
- public void onModuleLoad() {
- // Load all the sinks.
- loadSinks();
-
- panel.add(list);
- panel.add(description);
- panel.setWidth("100%");
-
- description.setStyleName("ks-Info");
-
- History.addHistoryListener(this);
- RootPanel.get().add(panel);
-
- // Show the initial screen.
- String initToken = History.getToken();
- if (initToken.length() > 0) {
- onHistoryChanged(initToken);
- } else {
- showInfo();
- }
- }
-
- public void show(SinkInfo info, boolean affectHistory) {
- // Don't bother re-displaying the existing sink. This can be an issue
- // in practice, because when the history context is set, our
- // onHistoryChanged() handler will attempt to show the currently-visible
- // sink.
- if (info == curInfo) {
- return;
- }
- curInfo = info;
-
- // Remove the old sink from the display area.
- if (curSink != null) {
- curSink.onHide();
- panel.remove(curSink);
- }
-
- // Get the new sink instance, and display its description in the
- // sink list.
- curSink = info.getInstance();
- list.setSinkSelection(info.getName());
- description.setHTML(info.getDescription());
-
- // If affectHistory is set, create a new item on the history stack. This
- // will ultimately result in onHistoryChanged() being called. It will call
- // show() again, but nothing will happen because it will request the exact
- // same sink we're already showing.
- if (affectHistory) {
- History.newItem(info.getName());
- }
-
- // Change the description background color.
- DOM.setStyleAttribute(description.getElement(), "backgroundColor",
- info.getColor());
-
- // Display the new sink.
- curSink.setVisible(false);
- panel.add(curSink);
- panel.setCellHorizontalAlignment(curSink, VerticalPanel.ALIGN_CENTER);
- curSink.setVisible(true);
- curSink.onShow();
- }
-
- /**
- * Adds all sinks to the list. Note that this does not create actual instances
- * of all sinks yet (they are created on-demand). This can make a significant
- * difference in startup time.
- */
- protected void loadSinks() {
- list.addSink(Info.init());
- list.addSink(Widgets.init(images));
- list.addSink(Panels.init(images));
- list.addSink(Lists.init(images));
- list.addSink(Text.init());
- list.addSink(Popups.init());
- }
-
- private void showInfo() {
- show(list.find("Intro"), false);
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Lists.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Lists.java
deleted file mode 100644
index a73d2a3..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Lists.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.ui.ChangeListener;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.MultiWordSuggestOracle;
-import com.google.gwt.user.client.ui.SuggestBox;
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * Demonstrates {@link com.google.gwt.user.client.ui.ListBox}.
- */
-public class Lists extends Sink implements ChangeListener, TreeListener {
-
- private static class PendingItem extends TreeItem {
- public PendingItem() {
- super("Please wait...");
- }
- }
-
- private static class Proto {
- public Proto[] children;
- public TreeItem item;
- public String text;
-
- public Proto(String text) {
- this.text = text;
- }
-
- public Proto(String text, Proto[] children) {
- this(text);
- this.children = children;
- }
- }
-
- private static final String[][] stringLists = new String[][] {
- new String[] {"foo0", "bar0", "baz0", "toto0", "tintin0"},
- new String[] {"foo1", "bar1", "baz1", "toto1", "tintin1"},
- new String[] {"foo2", "bar2", "baz2", "toto2", "tintin2"},
- new String[] {"foo3", "bar3", "baz3", "toto3", "tintin3"},
- new String[] {"foo4", "bar4", "baz4", "toto4", "tintin4"},};
-
- private static final String[] words = new String[] {
- "1337", "apple", "about", "ant", "bruce", "banana", "bobv", "canada",
- "coconut", "compiler", "donut", "deferred binding", "dessert topping",
- "eclair", "ecc", "frog attack", "floor wax", "fitz", "google", "gosh",
- "gwt", "hollis", "haskell", "hammer", "in the flinks", "internets",
- "ipso facto", "jat", "jgw", "java", "jens", "knorton", "kaitlyn",
- "kangaroo", "la grange", "lars", "love", "morrildl", "max", "maddie",
- "mloofle", "mmendez", "nail", "narnia", "null", "optimizations",
- "obfuscation", "original", "ping pong", "polymorphic", "pleather",
- "quotidian", "quality", "qu'est-ce que c'est", "ready state", "ruby",
- "rdayal", "subversion", "superclass", "scottb", "tobyr", "the dans",
- "~ tilde", "undefined", "unit tests", "under 100ms", "vtbl", "vidalia",
- "vector graphics", "w3c", "web experience", "work around", "w00t!",
- "xml", "xargs", "xeno", "yacc", "yank (the vi command)", "zealot", "zoe",
- "zebra"};
-
- private static Proto[] fProto = new Proto[]{
- new Proto("Beethoven", new Proto[]{
- new Proto("Concertos", new Proto[]{
- new Proto("No. 1 - C"), new Proto("No. 2 - B-Flat Major"),
- new Proto("No. 3 - C Minor"), new Proto("No. 4 - G Major"),
- new Proto("No. 5 - E-Flat Major"),}),
- new Proto("Quartets", new Proto[]{
- new Proto("Six String Quartets"), new Proto("Three String Quartets"),
- new Proto("Grosse Fugue for String Quartets"),}),
- new Proto("Sonatas", new Proto[]{
- new Proto("Sonata in A Minor"), new Proto("Sonata in F Major"),}),
- new Proto("Symphonies", new Proto[]{
- new Proto("No. 1 - C Major"), new Proto("No. 2 - D Major"),
- new Proto("No. 3 - E-Flat Major"), new Proto("No. 4 - B-Flat Major"),
- new Proto("No. 5 - C Minor"), new Proto("No. 6 - F Major"),
- new Proto("No. 7 - A Major"), new Proto("No. 8 - F Major"),
- new Proto("No. 9 - D Minor"),}),}),
- new Proto("Brahms", new Proto[]{
- new Proto("Concertos", new Proto[]{
- new Proto("Violin Concerto"), new Proto("Double Concerto - A Minor"),
- new Proto("Piano Concerto No. 1 - D Minor"),
- new Proto("Piano Concerto No. 2 - B-Flat Major"),}),
- new Proto("Quartets", new Proto[]{
- new Proto("Piano Quartet No. 1 - G Minor"),
- new Proto("Piano Quartet No. 2 - A Major"),
- new Proto("Piano Quartet No. 3 - C Minor"),
- new Proto("String Quartet No. 3 - B-Flat Minor"),}),
- new Proto("Sonatas", new Proto[]{
- new Proto("Two Sonatas for Clarinet - F Minor"),
- new Proto("Two Sonatas for Clarinet - E-Flat Major"),}),
- new Proto("Symphonies", new Proto[]{
- new Proto("No. 1 - C Minor"), new Proto("No. 2 - D Minor"),
- new Proto("No. 3 - F Major"), new Proto("No. 4 - E Minor"),}),}),
- new Proto("Mozart", new Proto[]{new Proto("Concertos", new Proto[]{
- new Proto("Piano Concerto No. 12"), new Proto("Piano Concerto No. 17"),
- new Proto("Clarinet Concerto"), new Proto("Violin Concerto No. 5"),
- new Proto("Violin Concerto No. 4"),}),}),};
-
- public static SinkInfo init(final Sink.Images images) {
- return new SinkInfo("Lists",
- "<h2>Lists and Trees</h2>" +
- "<p>GWT provides a number of ways to display lists and trees. This " +
- "includes the browser's built-in list and drop-down boxes, as well as " +
- "the more advanced suggestion combo-box and trees.</p><p>Try typing " +
- "some text in the SuggestBox below to see what happens!</p>") {
-
- @Override
- public Sink createInstance() {
- return new Lists(images);
- }
- };
- }
- private ListBox combo = new ListBox();
- private ListBox list = new ListBox();
-
- private MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
-
- private SuggestBox suggestBox = new SuggestBox(oracle);
-
- private Tree tree;
-
- public Lists(Sink.Images images) {
- combo.setVisibleItemCount(1);
- combo.addChangeListener(this);
- list.setVisibleItemCount(10);
- list.setMultipleSelect(true);
-
- for (int i = 0; i < stringLists.length; ++i) {
- combo.addItem("List " + i);
- }
- combo.setSelectedIndex(0);
- fillList(0);
-
- list.addChangeListener(this);
-
- for (int i = 0; i < words.length; ++i) {
- oracle.add(words[i]);
- }
-
- VerticalPanel suggestPanel = new VerticalPanel();
- suggestPanel.add(new Label("Suggest box:"));
- suggestPanel.add(suggestBox);
-
- HorizontalPanel horz = new HorizontalPanel();
- horz.setVerticalAlignment(HorizontalPanel.ALIGN_TOP);
- horz.setSpacing(8);
- horz.add(combo);
- horz.add(list);
- horz.add(suggestPanel);
-
- VerticalPanel panel = new VerticalPanel();
- panel.setHorizontalAlignment(VerticalPanel.ALIGN_LEFT);
- panel.add(horz);
- initWidget(panel);
-
- tree = new Tree(images);
- for (int i = 0; i < fProto.length; ++i) {
- createItem(fProto[i]);
- tree.addItem(fProto[i].item);
- }
-
- tree.addTreeListener(this);
- tree.setWidth("20em");
- horz.add(tree);
- }
-
- public void onChange(Widget sender) {
- if (sender == combo) {
- fillList(combo.getSelectedIndex());
- } else if (sender == list) {
- }
- }
-
- @Override
- public void onShow() {
- }
-
- public void onTreeItemSelected(TreeItem item) {
- }
-
- public void onTreeItemStateChanged(TreeItem item) {
- TreeItem child = item.getChild(0);
- if (child instanceof PendingItem) {
- item.removeItem(child);
-
- Proto proto = (Proto) item.getUserObject();
- for (int i = 0; i < proto.children.length; ++i) {
- createItem(proto.children[i]);
- item.addItem(proto.children[i].item);
- }
- }
- }
-
- private void createItem(Proto proto) {
- proto.item = new TreeItem(proto.text);
- proto.item.setUserObject(proto);
- if (proto.children != null) {
- proto.item.addItem(new PendingItem());
- }
- }
-
- private void fillList(int idx) {
- // Set the contents of the list box to reflect the combo selection.
- list.clear();
- String[] strings = stringLists[idx];
- for (int i = 0; i < strings.length; ++i) {
- list.addItem(strings[i]);
- }
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java
deleted file mode 100644
index 0c9f612..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Panels.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.CheckBox;
-import com.google.gwt.user.client.ui.DisclosurePanel;
-import com.google.gwt.user.client.ui.DockPanel;
-import com.google.gwt.user.client.ui.FlowPanel;
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.HorizontalSplitPanel;
-import com.google.gwt.user.client.ui.ScrollPanel;
-import com.google.gwt.user.client.ui.TabPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
-
-/**
- * Demonstrates various panels and the way they lay widgets out.
- */
-public class Panels extends Sink {
-
- public static SinkInfo init(final Sink.Images images) {
- return new SinkInfo(
- "Panels",
- "<h2>Panels</h2><p>This page demonstrates some of the basic GWT panels, each of which "
- + "arranges its contained widgets differently. "
- + "These panels are designed to take advantage of the browser's "
- + "built-in layout mechanics, which keeps the user interface snappy "
- + "and helps your AJAX code play nicely with existing HTML. "
- + "On the other hand, if you need pixel-perfect control, "
- + "you can tweak things at a low level using the "
- + "<code>DOM</code> class.</p>") {
-
- @Override
- public Sink createInstance() {
- return new Panels(images);
- }
-
- @Override
- public String getColor() {
- return "#fe9915";
- }
- };
- }
-
- public Panels(Sink.Images images) {
- HTML contents = new HTML("This is a <code>ScrollPanel</code> contained at "
- + "the center of a <code>DockPanel</code>. "
- + "By putting some fairly large contents "
- + "in the middle and setting its size explicitly, it becomes a "
- + "scrollable area within the page, but without requiring the use of "
- + "an IFRAME."
- + "Here's quite a bit more meaningless text that will serve primarily "
- + "to make this thing scroll off the bottom of its visible area. "
- + "Otherwise, you might have to make it really, really small in order "
- + "to see the nifty scroll bars!");
- ScrollPanel scroller = new ScrollPanel(contents);
- scroller.setStyleName("ks-layouts-Scroller");
-
- DockPanel dock = new DockPanel();
- dock.setHorizontalAlignment(DockPanel.ALIGN_CENTER);
- HTML north0 = new HTML("This is the <i>first</i> north component", true);
- HTML east = new HTML(
- "<center>This<br>is<br>the<br>east<br>component</center>", true);
- HTML south = new HTML("This is the south component");
- HTML west = new HTML(
- "<center>This<br>is<br>the<br>west<br>component</center>", true);
- HTML north1 = new HTML("This is the <b>second</b> north component", true);
- dock.add(north0, DockPanel.NORTH);
- dock.add(east, DockPanel.EAST);
- dock.add(south, DockPanel.SOUTH);
- dock.add(west, DockPanel.WEST);
- dock.add(north1, DockPanel.NORTH);
- dock.add(scroller, DockPanel.CENTER);
-
- DisclosurePanel disc = new DisclosurePanel("Click to disclose something:");
- disc.setContent(new HTML("This widget is is shown and hidden<br>by the "
- + "disclosure panel that wraps it."));
-
- FlowPanel flow = new FlowPanel();
- for (int i = 0; i < 8; ++i) {
- flow.add(new CheckBox("Flow " + i));
- }
-
- HorizontalPanel horz = new HorizontalPanel();
- horz.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
- horz.add(new Button("Button"));
- horz.add(new HTML("<center>This is a<br>very<br>tall thing</center>", true));
- horz.add(new Button("Button"));
-
- VerticalPanel vert = new VerticalPanel();
- vert.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
- vert.add(new Button("Small"));
- vert.add(new Button("--- BigBigBigBig ---"));
- vert.add(new Button("tiny"));
-
- VerticalPanel vp = new VerticalPanel();
- vp.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
- vp.setSpacing(8);
- vp.add(makeLabel("Disclosure Panel"));
- vp.add(disc);
- vp.add(makeLabel("Flow Panel"));
- vp.add(flow);
- vp.add(makeLabel("Horizontal Panel"));
- vp.add(horz);
- vp.add(makeLabel("Vertical Panel"));
- vp.add(vert);
-
- Grid grid = new Grid(4, 4);
- for (int r = 0; r < 4; ++r) {
- for (int c = 0; c < 4; ++c) {
- grid.setWidget(r, c, images.gwtLogo().createImage());
- }
- }
-
- TabPanel tabs = new TabPanel();
- tabs.add(vp, "Basic Panels");
- tabs.add(dock, "Dock Panel");
- tabs.add(grid, "Tables");
- tabs.setWidth("100%");
- tabs.selectTab(0);
-
- HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
- hSplit.setStartOfLineWidget(tabs);
- hSplit.setEndOfLineWidget(new HTML(
- "This is some text to make the right side of this " +
- "splitter look a bit more interesting... " +
- "This is some text to make the right side of this " +
- "splitter look a bit more interesting... " +
- "This is some text to make the right side of this " +
- "splitter look a bit more interesting... " +
- "This is some text to make the right side of this " +
- "splitter look a bit more interesting... "));
-
- initWidget(hSplit);
- hSplit.setSize("100%", "450px");
- }
-
- @Override
- public void onShow() {
- }
-
- private HTML makeLabel(String caption) {
- HTML html = new HTML(caption);
- html.setStyleName("ks-layouts-Label");
- return html;
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Popups.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Popups.java
deleted file mode 100644
index f6b098c..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Popups.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.ClickListener;
-import com.google.gwt.user.client.ui.DialogBox;
-import com.google.gwt.user.client.ui.DockPanel;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.Image;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.PopupPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.i18n.client.LocaleInfo;
-
-/**
- * Demonstrates {@link com.google.gwt.user.client.ui.PopupPanel} and
- * {@link com.google.gwt.user.client.ui.DialogBox}.
- */
-public class Popups extends Sink implements ClickListener {
-
- /**
- * A simple dialog box that displays a message, a Frame, and a close button.
- */
- private static class MyDialog extends DialogBox implements ClickListener {
- public MyDialog() {
- setText("Sample DialogBox");
-
- Button closeButton = new Button("Close", this);
- HTML msg = new HTML(
- "<center>This is an example of a standard dialog box component.</center>",
- true);
-
- DockPanel dock = new DockPanel();
- dock.setSpacing(4);
-
- dock.add(closeButton, DockPanel.SOUTH);
- dock.add(msg, DockPanel.NORTH);
- dock.add(new Image("images/jimmy.jpg"), DockPanel.CENTER);
-
- dock.setCellHorizontalAlignment(closeButton, DockPanel.ALIGN_RIGHT);
- dock.setWidth("100%");
- setWidget(dock);
- }
-
- public void onClick(Widget sender) {
- hide();
- }
- }
-
- /**
- * A very simple popup that closes automatically when you click off of it.
- */
- private static class MyPopup extends PopupPanel {
- public MyPopup() {
- super(true);
-
- HTML contents = new HTML(
- "Click anywhere outside this popup to make it disappear.");
- contents.setWidth("128px");
- setWidget(contents);
-
- setStyleName("ks-popups-Popup");
- }
- }
-
- public static SinkInfo init() {
- return new SinkInfo(
- "Popups",
- "<h2>Popups and Dialog Boxes</h2>"
- + "<p>This page demonstrates GWT's built-in support for in-page "
- + "popups. The first is a very simple informational popup that closes "
- + "itself automatically when you click off of it. The second is a more "
- + "complex draggable dialog box. If you're wondering why there's "
- + "a list box at the bottom, it's to demonstrate that you can drag the "
- + "dialog box over it (this obscure corner case often renders incorrectly "
- + "on some browsers).</p>") {
-
- @Override
- public Sink createInstance() {
- return new Popups();
- }
-
- @Override
- public String getColor() {
- return "#bf2a2a";
- }
- };
- }
-
- private Button dialogButton = new Button("Show Dialog", this);
- private Button popupButton = new Button("Show Popup", this);
-
- public Popups() {
- VerticalPanel panel = new VerticalPanel();
- panel.add(popupButton);
- panel.add(dialogButton);
-
- ListBox list = new ListBox();
- list.setVisibleItemCount(1);
- for (int i = 0; i < 10; ++i) {
- list.addItem("list item " + i);
- }
- panel.add(list);
-
- panel.setSpacing(8);
- initWidget(panel);
- }
-
- public void onClick(final Widget sender) {
- if (sender == popupButton) {
-
- final MyPopup p = new MyPopup();
-
- // Set the position relative to the button
- p.setPopupPositionAndShow(new PopupPanel.PositionCallback() {
- public void setPosition(int offsetWidth, int offsetHeight) {
- int left = popupButton.getAbsoluteLeft() + 10;
- int top = popupButton.getAbsoluteTop() + 10;
- if (LocaleInfo.getCurrentLocale().isRTL()) {
- left = popupButton.getAbsoluteLeft() +
- popupButton.getOffsetWidth() - offsetWidth - 10;
- }
- p.setPopupPosition(left, top);
- }
- });
- } else if (sender == dialogButton) {
- DialogBox dlg = new MyDialog();
- dlg.center();
- }
- }
-
- @Override
- public void onShow() {
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar$Strings.properties b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar$Strings.properties
deleted file mode 100644
index 363b704..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar$Strings.properties
+++ /dev/null
@@ -1,35 +0,0 @@
-bold = Toggle Bold
-createLink = Create Link
-hr = Insert Horizontal Rule
-indent = Indent Right
-insertImage = Insert Image
-italic = Toggle Italic
-justifyCenter = Center
-justifyLeft = Left Justify
-justifyRight = Right Justify
-ol = Insert Ordered List
-outdent = Indent Left
-removeFormat = Remove Formatting
-removeLink = Remove Link
-strikeThrough = Toggle Strikethrough
-subscript = Toggle Subscript
-superscript = Toggle Superscript
-ul = Insert Unordered List
-underline = Toggle Underline
-color = Color
-black = Black
-white = White
-red = Red
-green = Green
-yellow = Yellow
-blue = Blue
-font = Font
-normal = Normal
-size = Size
-xxsmall = XX-Small
-xsmall = X-Small
-small = Small
-medium = Medium
-large = Large
-xlarge = X-Large
-xxlarge = XX-Large
\ No newline at end of file
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar.java
deleted file mode 100644
index c808083..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/RichTextToolbar.java
+++ /dev/null
@@ -1,438 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.i18n.client.Constants;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-import com.google.gwt.user.client.ui.ChangeListener;
-import com.google.gwt.user.client.ui.ClickListener;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.ImageBundle;
-import com.google.gwt.user.client.ui.KeyboardListener;
-import com.google.gwt.user.client.ui.ListBox;
-import com.google.gwt.user.client.ui.PushButton;
-import com.google.gwt.user.client.ui.RichTextArea;
-import com.google.gwt.user.client.ui.ToggleButton;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * A sample toolbar for use with {@link RichTextArea}. It provides a simple UI
- * for all rich text formatting, dynamically displayed only for the available
- * functionality.
- */
-public class RichTextToolbar extends Composite {
-
- /**
- * This {@link ImageBundle} is used for all the button icons. Using an image
- * bundle allows all of these images to be packed into a single image, which
- * saves a lot of HTTP requests, drastically improving startup time.
- */
- public interface Images extends ImageBundle {
-
- AbstractImagePrototype bold();
-
- AbstractImagePrototype createLink();
-
- AbstractImagePrototype hr();
-
- AbstractImagePrototype indent();
-
- AbstractImagePrototype insertImage();
-
- AbstractImagePrototype italic();
-
- AbstractImagePrototype justifyCenter();
-
- AbstractImagePrototype justifyLeft();
-
- AbstractImagePrototype justifyRight();
-
- AbstractImagePrototype ol();
-
- AbstractImagePrototype outdent();
-
- AbstractImagePrototype removeFormat();
-
- AbstractImagePrototype removeLink();
-
- AbstractImagePrototype strikeThrough();
-
- AbstractImagePrototype subscript();
-
- AbstractImagePrototype superscript();
-
- AbstractImagePrototype ul();
-
- AbstractImagePrototype underline();
- }
-
- /**
- * This {@link Constants} interface is used to make the toolbar's strings
- * internationalizable.
- */
- public interface Strings extends Constants {
-
- String black();
-
- String blue();
-
- String bold();
-
- String color();
-
- String createLink();
-
- String font();
-
- String green();
-
- String hr();
-
- String indent();
-
- String insertImage();
-
- String italic();
-
- String justifyCenter();
-
- String justifyLeft();
-
- String justifyRight();
-
- String large();
-
- String medium();
-
- String normal();
-
- String ol();
-
- String outdent();
-
- String red();
-
- String removeFormat();
-
- String removeLink();
-
- String size();
-
- String small();
-
- String strikeThrough();
-
- String subscript();
-
- String superscript();
-
- String ul();
-
- String underline();
-
- String white();
-
- String xlarge();
-
- String xsmall();
-
- String xxlarge();
-
- String xxsmall();
-
- String yellow();
- }
-
- /**
- * We use an inner EventListener class to avoid exposing event methods on the
- * RichTextToolbar itself.
- */
- private class EventListener implements ClickListener, ChangeListener,
- KeyboardListener {
-
- public void onChange(Widget sender) {
- if (sender == backColors) {
- basic.setBackColor(backColors.getValue(backColors.getSelectedIndex()));
- backColors.setSelectedIndex(0);
- } else if (sender == foreColors) {
- basic.setForeColor(foreColors.getValue(foreColors.getSelectedIndex()));
- foreColors.setSelectedIndex(0);
- } else if (sender == fonts) {
- basic.setFontName(fonts.getValue(fonts.getSelectedIndex()));
- fonts.setSelectedIndex(0);
- } else if (sender == fontSizes) {
- basic.setFontSize(fontSizesConstants[fontSizes.getSelectedIndex() - 1]);
- fontSizes.setSelectedIndex(0);
- }
- }
-
- public void onClick(Widget sender) {
- if (sender == bold) {
- basic.toggleBold();
- } else if (sender == italic) {
- basic.toggleItalic();
- } else if (sender == underline) {
- basic.toggleUnderline();
- } else if (sender == subscript) {
- basic.toggleSubscript();
- } else if (sender == superscript) {
- basic.toggleSuperscript();
- } else if (sender == strikethrough) {
- extended.toggleStrikethrough();
- } else if (sender == indent) {
- extended.rightIndent();
- } else if (sender == outdent) {
- extended.leftIndent();
- } else if (sender == justifyLeft) {
- basic.setJustification(RichTextArea.Justification.LEFT);
- } else if (sender == justifyCenter) {
- basic.setJustification(RichTextArea.Justification.CENTER);
- } else if (sender == justifyRight) {
- basic.setJustification(RichTextArea.Justification.RIGHT);
- } else if (sender == insertImage) {
- String url = Window.prompt("Enter an image URL:", "http://");
- if (url != null) {
- extended.insertImage(url);
- }
- } else if (sender == createLink) {
- String url = Window.prompt("Enter a link URL:", "http://");
- if (url != null) {
- extended.createLink(url);
- }
- } else if (sender == removeLink) {
- extended.removeLink();
- } else if (sender == hr) {
- extended.insertHorizontalRule();
- } else if (sender == ol) {
- extended.insertOrderedList();
- } else if (sender == ul) {
- extended.insertUnorderedList();
- } else if (sender == removeFormat) {
- extended.removeFormat();
- } else if (sender == richText) {
- // We use the RichTextArea's onKeyUp event to update the toolbar status.
- // This will catch any cases where the user moves the cursur using the
- // keyboard, or uses one of the browser's built-in keyboard shortcuts.
- updateStatus();
- }
- }
-
- public void onKeyDown(Widget sender, char keyCode, int modifiers) {
- }
-
- public void onKeyPress(Widget sender, char keyCode, int modifiers) {
- }
-
- public void onKeyUp(Widget sender, char keyCode, int modifiers) {
- if (sender == richText) {
- // We use the RichTextArea's onKeyUp event to update the toolbar status.
- // This will catch any cases where the user moves the cursur using the
- // keyboard, or uses one of the browser's built-in keyboard shortcuts.
- updateStatus();
- }
- }
- }
-
- private static final RichTextArea.FontSize[] fontSizesConstants = new RichTextArea.FontSize[] {
- RichTextArea.FontSize.XX_SMALL, RichTextArea.FontSize.X_SMALL,
- RichTextArea.FontSize.SMALL, RichTextArea.FontSize.MEDIUM,
- RichTextArea.FontSize.LARGE, RichTextArea.FontSize.X_LARGE,
- RichTextArea.FontSize.XX_LARGE};
-
- private Images images = GWT.create(Images.class);
- private Strings strings = GWT.create(Strings.class);
- private EventListener listener = new EventListener();
-
- private RichTextArea richText;
- private RichTextArea.BasicFormatter basic;
- private RichTextArea.ExtendedFormatter extended;
-
- private VerticalPanel outer = new VerticalPanel();
- private HorizontalPanel topPanel = new HorizontalPanel();
- private HorizontalPanel bottomPanel = new HorizontalPanel();
- private ToggleButton bold;
- private ToggleButton italic;
- private ToggleButton underline;
- private ToggleButton subscript;
- private ToggleButton superscript;
- private ToggleButton strikethrough;
- private PushButton indent;
- private PushButton outdent;
- private PushButton justifyLeft;
- private PushButton justifyCenter;
- private PushButton justifyRight;
- private PushButton hr;
- private PushButton ol;
- private PushButton ul;
- private PushButton insertImage;
- private PushButton createLink;
- private PushButton removeLink;
- private PushButton removeFormat;
-
- private ListBox backColors;
- private ListBox foreColors;
- private ListBox fonts;
- private ListBox fontSizes;
-
- /**
- * Creates a new toolbar that drives the given rich text area.
- *
- * @param richText the rich text area to be controlled
- */
- public RichTextToolbar(RichTextArea richText) {
- this.richText = richText;
- this.basic = richText.getBasicFormatter();
- this.extended = richText.getExtendedFormatter();
-
- outer.add(topPanel);
- outer.add(bottomPanel);
- topPanel.setWidth("100%");
- bottomPanel.setWidth("100%");
-
- initWidget(outer);
- setStyleName("gwt-RichTextToolbar");
-
- if (basic != null) {
- topPanel.add(bold = createToggleButton(images.bold(), strings.bold()));
- topPanel.add(italic = createToggleButton(images.italic(), strings.italic()));
- topPanel.add(underline = createToggleButton(images.underline(),
- strings.underline()));
- topPanel.add(subscript = createToggleButton(images.subscript(),
- strings.subscript()));
- topPanel.add(superscript = createToggleButton(images.superscript(),
- strings.superscript()));
- topPanel.add(justifyLeft = createPushButton(images.justifyLeft(),
- strings.justifyLeft()));
- topPanel.add(justifyCenter = createPushButton(images.justifyCenter(),
- strings.justifyCenter()));
- topPanel.add(justifyRight = createPushButton(images.justifyRight(),
- strings.justifyRight()));
- }
-
- if (extended != null) {
- topPanel.add(strikethrough = createToggleButton(images.strikeThrough(),
- strings.strikeThrough()));
- topPanel.add(indent = createPushButton(images.indent(), strings.indent()));
- topPanel.add(outdent = createPushButton(images.outdent(), strings.outdent()));
- topPanel.add(hr = createPushButton(images.hr(), strings.hr()));
- topPanel.add(ol = createPushButton(images.ol(), strings.ol()));
- topPanel.add(ul = createPushButton(images.ul(), strings.ul()));
- topPanel.add(insertImage = createPushButton(images.insertImage(),
- strings.insertImage()));
- topPanel.add(createLink = createPushButton(images.createLink(),
- strings.createLink()));
- topPanel.add(removeLink = createPushButton(images.removeLink(),
- strings.removeLink()));
- topPanel.add(removeFormat = createPushButton(images.removeFormat(),
- strings.removeFormat()));
- }
-
- if (basic != null) {
- bottomPanel.add(backColors = createColorList("Background"));
- bottomPanel.add(foreColors = createColorList("Foreground"));
- bottomPanel.add(fonts = createFontList());
- bottomPanel.add(fontSizes = createFontSizes());
-
- // We only use these listeners for updating status, so don't hook them up
- // unless at least basic editing is supported.
- richText.addKeyboardListener(listener);
- richText.addClickListener(listener);
- }
- }
-
- private ListBox createColorList(String caption) {
- ListBox lb = new ListBox();
- lb.addChangeListener(listener);
- lb.setVisibleItemCount(1);
-
- lb.addItem(caption);
- lb.addItem(strings.white(), "white");
- lb.addItem(strings.black(), "black");
- lb.addItem(strings.red(), "red");
- lb.addItem(strings.green(), "green");
- lb.addItem(strings.yellow(), "yellow");
- lb.addItem(strings.blue(), "blue");
- return lb;
- }
-
- private ListBox createFontList() {
- ListBox lb = new ListBox();
- lb.addChangeListener(listener);
- lb.setVisibleItemCount(1);
-
- lb.addItem(strings.font(), "");
- lb.addItem(strings.normal(), "");
- lb.addItem("Times New Roman", "Times New Roman");
- lb.addItem("Arial", "Arial");
- lb.addItem("Courier New", "Courier New");
- lb.addItem("Georgia", "Georgia");
- lb.addItem("Trebuchet", "Trebuchet");
- lb.addItem("Verdana", "Verdana");
- return lb;
- }
-
- private ListBox createFontSizes() {
- ListBox lb = new ListBox();
- lb.addChangeListener(listener);
- lb.setVisibleItemCount(1);
-
- lb.addItem(strings.size());
- lb.addItem(strings.xxsmall());
- lb.addItem(strings.xsmall());
- lb.addItem(strings.small());
- lb.addItem(strings.medium());
- lb.addItem(strings.large());
- lb.addItem(strings.xlarge());
- lb.addItem(strings.xxlarge());
- return lb;
- }
-
- private PushButton createPushButton(AbstractImagePrototype img, String tip) {
- PushButton pb = new PushButton(img.createImage());
- pb.addClickListener(listener);
- pb.setTitle(tip);
- return pb;
- }
-
- private ToggleButton createToggleButton(AbstractImagePrototype img, String tip) {
- ToggleButton tb = new ToggleButton(img.createImage());
- tb.addClickListener(listener);
- tb.setTitle(tip);
- return tb;
- }
-
- /**
- * Updates the status of all the stateful buttons.
- */
- private void updateStatus() {
- if (basic != null) {
- bold.setDown(basic.isBold());
- italic.setDown(basic.isItalic());
- underline.setDown(basic.isUnderlined());
- subscript.setDown(basic.isSubscript());
- superscript.setDown(basic.isSuperscript());
- }
-
- if (extended != null) {
- strikethrough.setDown(extended.isStrikethrough());
- }
- }
-}
-
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java
deleted file mode 100644
index cfbe585..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Sink.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.ImageBundle;
-import com.google.gwt.user.client.ui.TreeImages;
-
-/**
- * A 'sink' is a single panel of the kitchen sink. They are meant to be lazily
- * instantiated so that the application doesn't pay for all of them on startup.
- */
-public abstract class Sink extends Composite {
-
- /**
- * An image provider to make available images to Sinks.
- */
- public interface Images extends ImageBundle, TreeImages {
- AbstractImagePrototype gwtLogo();
- }
-
- /**
- * Encapsulated information about a sink. Each sink is expected to have a
- * static <code>init()</code> method that will be called by the kitchen sink
- * on startup.
- */
- public abstract static class SinkInfo {
- private Sink instance;
- private String name, description;
-
- public SinkInfo(String name, String desc) {
- this.name = name;
- description = desc;
- }
-
- public abstract Sink createInstance();
-
- public String getColor() {
- return "#2a8ebf";
- }
-
- public String getDescription() {
- return description;
- }
-
- public final Sink getInstance() {
- if (instance != null) {
- return instance;
- }
- return (instance = createInstance());
- }
-
- public String getName() {
- return name;
- }
- }
-
- /**
- * Called just before this sink is hidden.
- */
- public void onHide() {
- }
-
- /**
- * Called just after this sink is shown.
- */
- public void onShow() {
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java
deleted file mode 100644
index 4c1a75f..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/SinkList.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.sample.kitchensink.client.Sink.SinkInfo;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.Event;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.Hyperlink;
-import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.i18n.client.LocaleInfo;
-
-import java.util.ArrayList;
-
-/**
- * The left panel that contains all of the sinks, along with a short description
- * of each.
- */
-public class SinkList extends Composite {
-
- private class MouseLink extends Hyperlink {
-
- private int index;
-
- public MouseLink(String name, int index) {
- super(name, name);
- this.index = index;
- sinkEvents(Event.MOUSEEVENTS);
- }
-
- @Override
- public void onBrowserEvent(Event event) {
- switch (DOM.eventGetType(event)) {
- case Event.ONMOUSEOVER:
- mouseOver(index);
- break;
-
- case Event.ONMOUSEOUT:
- mouseOut(index);
- break;
- }
-
- super.onBrowserEvent(event);
- }
- }
-
- private HorizontalPanel list = new HorizontalPanel();
- private ArrayList<SinkInfo> sinks = new ArrayList<SinkInfo>();
-
- private int selectedSink = -1;
-
- public SinkList(Sink.Images images) {
- initWidget(list);
- list.add(images.gwtLogo().createImage());
- setStyleName("ks-List");
- }
-
- public void addSink(final SinkInfo info) {
- String name = info.getName();
- int index = list.getWidgetCount() - 1;
-
- MouseLink link = new MouseLink(name, index);
- list.add(link);
- sinks.add(info);
-
- list.setCellVerticalAlignment(link, HorizontalPanel.ALIGN_BOTTOM);
- styleSink(index, false);
- }
-
- public SinkInfo find(String sinkName) {
- for (int i = 0; i < sinks.size(); ++i) {
- SinkInfo info = sinks.get(i);
- if (info.getName().equals(sinkName)) {
- return info;
- }
- }
-
- return null;
- }
-
- public void setSinkSelection(String name) {
- if (selectedSink != -1) {
- styleSink(selectedSink, false);
- }
-
- for (int i = 0; i < sinks.size(); ++i) {
- SinkInfo info = sinks.get(i);
- if (info.getName().equals(name)) {
- selectedSink = i;
- styleSink(selectedSink, true);
- return;
- }
- }
- }
-
- private void colorSink(int index, boolean on) {
- String color = "";
- if (on) {
- color = sinks.get(index).getColor();
- }
-
- Widget w = list.getWidget(index + 1);
- DOM.setStyleAttribute(w.getElement(), "backgroundColor", color);
- }
-
- private void mouseOut(int index) {
- if (index != selectedSink) {
- colorSink(index, false);
- }
- }
-
- private void mouseOver(int index) {
- if (index != selectedSink) {
- colorSink(index, true);
- }
- }
-
- private void styleSink(int index, boolean selected) {
- Widget w = list.getWidget(index + 1);
-
- String primaryStyleName = "ks-SinkItem";
-
- if (LocaleInfo.getCurrentLocale().isRTL()) {
- primaryStyleName += "-rtl";
- }
-
- w.setStylePrimaryName(primaryStyleName);
-
- if (index == 0) {
- w.addStyleDependentName("first");
- } else {
- w.removeStyleDependentName("first");
- }
-
- if (selected) {
- w.addStyleDependentName("selected");
- } else {
- w.removeStyleDependentName("selected");
- }
-
- colorSink(index, selected);
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Text.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Text.java
deleted file mode 100644
index 0cfdfdb..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Text.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.ui.ClickListener;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.KeyboardListenerAdapter;
-import com.google.gwt.user.client.ui.PasswordTextBox;
-import com.google.gwt.user.client.ui.RichTextArea;
-import com.google.gwt.user.client.ui.TextArea;
-import com.google.gwt.user.client.ui.TextBox;
-import com.google.gwt.user.client.ui.TextBoxBase;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * Demonstrates the various text widgets.
- */
-public class Text extends Sink {
-
- public static SinkInfo init() {
- return new SinkInfo(
- "Text",
- "<h2>Basic and Rich Text</h2>"
- + "<p>GWT includes the standard complement of text-entry widgets, each of which "
- + "supports keyboard and selection events you can use to control text entry. "
- + "In particular, notice that the selection range for each widget is "
- + "updated whenever you press a key.</p>"
- + "<p>Also notice the rich-text area to the right. This is supported on "
- + "all major browsers, and will fall back gracefully to the level of "
- + "functionality supported on each.</p>") {
-
- @Override
- public Sink createInstance() {
- return new Text();
- }
-
- @Override
- public String getColor() {
- return "#2fba10";
- }
- };
- }
-
- private PasswordTextBox passwordText = new PasswordTextBox();
- private TextArea textArea = new TextArea();
- private TextBox textBox = new TextBox();
-
- public Text() {
- TextBox readOnlyTextBox = new TextBox();
- readOnlyTextBox.setReadOnly(true);
- readOnlyTextBox.setText("read only");
-
- VerticalPanel vp = new VerticalPanel();
- vp.setSpacing(8);
- vp.add(new HTML("Normal text box:"));
- vp.add(createTextThing(textBox, true));
- vp.add(createTextThing(readOnlyTextBox, false));
- vp.add(new HTML("Password text box:"));
- vp.add(createTextThing(passwordText, true));
- vp.add(new HTML("Text area:"));
- vp.add(createTextThing(textArea, true));
-
- textArea.setVisibleLines(5);
-
- Widget richText = createRichText();
- richText.setWidth("32em");
-
- HorizontalPanel hp = new HorizontalPanel();
- hp.add(vp);
- hp.add(richText);
- hp.setCellHorizontalAlignment(vp, HorizontalPanel.ALIGN_LEFT);
- hp.setCellHorizontalAlignment(richText, HorizontalPanel.ALIGN_RIGHT);
-
- initWidget(hp);
- hp.setWidth("100%");
- }
-
- @Override
- public void onShow() {
- }
-
- private Widget createRichText() {
- RichTextArea area = new RichTextArea();
- RichTextToolbar tb = new RichTextToolbar(area);
-
- VerticalPanel p = new VerticalPanel();
- p.add(tb);
- p.add(area);
-
- area.setHeight("14em");
- area.setWidth("100%");
- tb.setWidth("100%");
- p.setWidth("100%");
- DOM.setStyleAttribute(p.getElement(), "margin-right", "4px");
- return p;
- }
-
- private Widget createTextThing(final TextBoxBase textBox,
- boolean addSelection) {
- HorizontalPanel p = new HorizontalPanel();
- p.setSpacing(4);
-
- textBox.setWidth("20em");
- p.add(textBox);
-
- if (addSelection) {
- final HTML echo = new HTML();
-
- p.add(echo);
- textBox.addKeyboardListener(new KeyboardListenerAdapter() {
- @Override
- public void onKeyUp(Widget sender, char keyCode, int modifiers) {
- updateText(textBox, echo);
- }
- });
-
- textBox.addClickListener(new ClickListener() {
- public void onClick(Widget sender) {
- updateText(textBox, echo);
- }
- });
-
- updateText(textBox, echo);
- }
- return p;
- }
-
- private void updateText(TextBoxBase text, HTML echo) {
- echo.setHTML("Selection: " + text.getCursorPos() + ", "
- + text.getSelectionLength());
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Widgets.java b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Widgets.java
deleted file mode 100644
index bf37793..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/Widgets.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * Copyright 2007 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.gwt.sample.kitchensink.client;
-
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.CheckBox;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.MenuBar;
-import com.google.gwt.user.client.ui.MenuItem;
-import com.google.gwt.user.client.ui.PushButton;
-import com.google.gwt.user.client.ui.RadioButton;
-import com.google.gwt.user.client.ui.ToggleButton;
-import com.google.gwt.user.client.ui.VerticalPanel;
-
-/**
- * Demonstrates the various button widgets.
- */
-public class Widgets extends Sink implements Command {
-
- public static SinkInfo init(final Sink.Images images) {
- return new SinkInfo("Widgets", "<h2>Basic Widgets</h2>" +
- "<p>GWT has all sorts of the basic widgets you would expect from any " +
- "toolkit.</p><p>Below, you can see various kinds of buttons, check boxes, " +
- "radio buttons, and menus.</p>") {
-
- @Override
- public Sink createInstance() {
- return new Widgets(images);
- }
-
- @Override
- public String getColor() {
- return "#bf2a2a";
- }
- };
- }
-
- private Button disabledButton = new Button("Disabled Button");
- private CheckBox disabledCheck = new CheckBox("Disabled Check");
- private Button normalButton = new Button("Normal Button");
- private CheckBox normalCheck = new CheckBox("Normal Check");
- private VerticalPanel panel = new VerticalPanel();
- private RadioButton radio0 = new RadioButton("group0", "Choice 0");
- private RadioButton radio1 = new RadioButton("group0", "Choice 1");
- private RadioButton radio2 = new RadioButton("group0", "Choice 2 (Disabled)");
- private RadioButton radio3 = new RadioButton("group0", "Choice 3");
- private PushButton pushButton;
- private ToggleButton toggleButton;
-
- public Widgets(Sink.Images images) {
- pushButton = new PushButton(images.gwtLogo().createImage());
- toggleButton = new ToggleButton(images.gwtLogo().createImage());
-
- HorizontalPanel hp;
-
- panel.add(createMenu());
-
- panel.add(hp = new HorizontalPanel());
- hp.setSpacing(8);
- hp.add(normalButton);
- hp.add(disabledButton);
-
- panel.add(hp = new HorizontalPanel());
- hp.setSpacing(8);
- hp.add(normalCheck);
- hp.add(disabledCheck);
-
- panel.add(hp = new HorizontalPanel());
- hp.setSpacing(8);
- hp.add(radio0);
- hp.add(radio1);
- hp.add(radio2);
- hp.add(radio3);
-
- panel.add(hp = new HorizontalPanel());
- hp.setSpacing(8);
- hp.add(pushButton);
- hp.add(toggleButton);
-
- disabledButton.setEnabled(false);
- disabledCheck.setEnabled(false);
- radio2.setEnabled(false);
-
- panel.setSpacing(8);
- initWidget(panel);
- }
-
- public MenuBar createMenu() {
- MenuBar menu = new MenuBar();
- menu.setAutoOpen(true);
-
- MenuBar subMenu = new MenuBar(true);
- subMenu.addItem("<code>Code</code>", true, this);
- subMenu.addItem("<strike>Strikethrough</strike>", true, this);
- subMenu.addItem("<u>Underlined</u>", true, this);
-
- MenuBar menu0 = new MenuBar(true);
- menu0.addItem("<b>Bold</b>", true, this);
- menu0.addItem("<i>Italicized</i>", true, this);
- menu0.addItem("More", true, subMenu);
- MenuBar menu1 = new MenuBar(true);
- menu1.addItem("<font color='#FF0000'><b>Apple</b></font>", true, this);
- menu1.addItem("<font color='#FFFF00'><b>Banana</b></font>", true, this);
- menu1.addItem("<font color='#FFFFFF'><b>Coconut</b></font>", true, this);
- menu1.addItem("<font color='#8B4513'><b>Donut</b></font>", true, this);
- MenuBar menu2 = new MenuBar(true);
- menu2.addItem("Bling", this);
- menu2.addItem("Ginormous", this);
- menu2.addItem("<code>w00t!</code>", true, this);
-
- menu.addItem(new MenuItem("Style", menu0));
- menu.addItem(new MenuItem("Fruit", menu1));
- menu.addItem(new MenuItem("Term", menu2));
-
- menu.setWidth("100%");
-
- return menu;
- }
-
- public void execute() {
- Window.alert("Thank you for selecting a menu item.");
- }
-
- @Override
- public void onShow() {
- }
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/backColors.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/backColors.gif
deleted file mode 100644
index ddfc1ce..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/backColors.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/bold.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/bold.gif
deleted file mode 100644
index 249e5af..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/bold.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/createLink.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/createLink.gif
deleted file mode 100644
index 3ab9e59..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/createLink.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fontSizes.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fontSizes.gif
deleted file mode 100644
index c2f4c8c..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fontSizes.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fonts.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fonts.gif
deleted file mode 100644
index 1629cab..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/fonts.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/foreColors.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/foreColors.gif
deleted file mode 100644
index 2bb89ef..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/foreColors.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/gwtLogo.png b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/gwtLogo.png
deleted file mode 100644
index 8072818..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/gwtLogo.png
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/hr.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/hr.gif
deleted file mode 100644
index 3fb1607..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/hr.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/indent.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/indent.gif
deleted file mode 100644
index 8b837f0..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/indent.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/insertImage.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/insertImage.gif
deleted file mode 100644
index db61c9a..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/insertImage.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/italic.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/italic.gif
deleted file mode 100644
index 2b0a5a0..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/italic.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyCenter.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyCenter.gif
deleted file mode 100644
index 7d22640..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyCenter.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyLeft.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyLeft.gif
deleted file mode 100644
index 3c0f350..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyLeft.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyRight.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyRight.gif
deleted file mode 100644
index 99ee258..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/justifyRight.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ol.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ol.gif
deleted file mode 100644
index 833bb40..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ol.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/outdent.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/outdent.gif
deleted file mode 100644
index be86624..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/outdent.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeFormat.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeFormat.gif
deleted file mode 100644
index a4339c0..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeFormat.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeLink.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeLink.gif
deleted file mode 100644
index 522ab4b..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/removeLink.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/strikeThrough.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/strikeThrough.gif
deleted file mode 100644
index 6b174c8..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/strikeThrough.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/subscript.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/subscript.gif
deleted file mode 100644
index 04bba05..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/subscript.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/superscript.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/superscript.gif
deleted file mode 100644
index ac478ee..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/superscript.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ul.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ul.gif
deleted file mode 100644
index 01380db..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/ul.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/underline.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/underline.gif
deleted file mode 100644
index 82bae11..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/client/underline.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css
deleted file mode 100644
index 2583b22..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css
+++ /dev/null
@@ -1,442 +0,0 @@
-body {
- background-color: white;
- color: black;
- font-family: Helvetica, Arial, sans-serif;
- font-size: 10pt;
- margin: 0px 20px 20px 20px;
-}
-
-h2 {
- font-weight: normal;
-}
-
-table {
- font-size: 100%;
-}
-
-code {
- font-size: small;
-}
-
-a {
- color: darkblue;
-}
-
-a:visited {
- color: darkblue;
-}
-
-.gwt-BorderedPanel {
-}
-
-.gwt-Button {
- background:#f5f5f5;
- border:1px solid #aaa;
- border-top:1px solid #ddd;
- border-left:1px solid #ddd;
- padding: 2px;
- width: 12em;
-}
-
-.gwt-Button:active {
- border:1px solid #aaa;
- border-bottom:1px solid #ccc;
- border-right:1px solid #ccc;
-}
-
-.gwt-Button[disabled] {
- background: #ccc;
- border:1px solid #999;
- border-top:1px solid #ccc;
- border-left:1px solid #ccc;
- color: #888;
-}
-
-.gwt-Canvas {
-}
-
-.gwt-CheckBox {
-}
-
-.gwt-DialogBox {
- border: 2px outset;
- background-color: white;
-}
-
-.gwt-DialogBox .Caption {
- background-color: #C3D9FF;
- padding: 3px;
- margin: 2px;
- font-weight: bold;
- cursor: default;
-}
-
-.gwt-FileUpload {
-}
-
-.gwt-Frame {
-}
-
-.gwt-HTML {
-}
-
-.gwt-Hyperlink {
-}
-
-.gwt-Image {
-}
-
-.gwt-Label {
-}
-
-.gwt-ListBox {
-}
-
-.gwt-MenuBar {
- background-color: #C3D9FF;
- border: 1px solid #87B3FF;
- cursor: default;
-}
-
-.gwt-MenuBar .gwt-MenuItem {
- padding: 1px 4px 1px 4px;
- cursor: default;
-}
-
-.gwt-MenuBar .gwt-MenuItem-selected {
- background-color: #E8EEF7;
-}
-
-.gwt-PasswordTextBox {
-}
-
-.gwt-RadioButton {
-}
-
-.gwt-TabPanel {
- margin-top: 4px;
-}
-
-.gwt-TabPanelBottom {
- background-color: #E8EEF7;
-}
-
-.gwt-TabBar {
- padding-top: 2px;
- border-bottom: 4px solid #87B3FF;
- background-color: #fff;
-}
-
-.gwt-TabBar .gwt-TabBarFirst {
-}
-
-.gwt-TabBar .gwt-TabBarRest {
-}
-
-.gwt-TabBar .gwt-TabBarItem {
- padding: 4px;
- cursor: pointer;
- cursor: hand;
-
- background-color: #e8eef7;
- border-bottom: 2px solid white;
- margin-right: 2px;
-}
-
-.gwt-TabBar .gwt-TabBarItem-selected {
- padding: 4px;
- font-weight: bold;
- cursor: default;
-
- background-color: #87b3ff;
- border-bottom: 2px solid #87b3ff;
- margin-right: 2px;
-}
-
-.gwt-TextArea {
-}
-
-.gwt-TextBox {
-}
-
-.gwt-TextBox-readonly {
- color: #888;
-}
-
-.gwt-Tree {
- background: white;
-}
-
-.gwt-Tree .gwt-TreeItem {
-}
-
-.gwt-Tree .gwt-TreeItem-selected {
- background-color: #C3D9FF;
-}
-
-.gwt-StackPanel {
-}
-
-.gwt-StackPanel .gwt-StackPanelItem {
- background-color: #C3D9FF;
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-StackPanel .gwt-StackPanelItem-selected {
-}
-
-.gwt-PushButton-up {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-PushButton-up-hovering {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-PushButton-down {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-PushButton-down-hovering {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-ToggleButton-up {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-ToggleButton-up-hovering {
- background-color: #C3D9FF;
- padding: 2px;
- border: 2px solid transparent;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-ToggleButton-down {
- background-color: #C3D9FF;
- padding: 2px;
- background-color: #E8F1FF;
- border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-ToggleButton-down-hovering {
- background-color: #C3D9FF;
- padding: 2px;
- background-color: #E8F1FF;
- border: 2px solid transparent;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
- cursor: pointer;
- cursor: hand;
-}
-
-.gwt-RichTextArea {
- border: 1px solid black;
- background-color: white;
-}
-
-.gwt-RichTextToolbar {
- background-color: #C3D9FF;
- padding: 2px;
-}
-
-.gwt-RichTextToolbar .gwt-PushButton-up {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
-}
-
-.gwt-RichTextToolbar .gwt-PushButton-up-hovering {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
-}
-
-.gwt-RichTextToolbar .gwt-PushButton-down {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
-}
-
-.gwt-RichTextToolbar .gwt-PushButton-down-hovering {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
-}
-
-.gwt-RichTextToolbar .gwt-ToggleButton-up {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
-}
-
-.gwt-RichTextToolbar .gwt-ToggleButton-up-hovering {
- margin-right: 2px;
- border: 1px solid #C3D9FF;
- border-color: #E8F1FF rgb(157, 174, 205) rgb(157, 174, 205) rgb(232, 241, 255);
-}
-
-.gwt-RichTextToolbar .gwt-ToggleButton-down {
- margin-right: 2px;
- background-color: #E8F1FF;
- border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
-}
-
-.gwt-RichTextToolbar .gwt-ToggleButton-down-hovering {
- margin-right: 2px;
- background-color: #E8F1FF;
- border: 1px solid #C3D9FF;
- border-color: #9DAECD rgb(232, 241, 255) rgb(232, 241, 255) rgb(157, 174, 205);
-}
-
-.gwt-HorizontalSplitPanel {
- border: 8px solid #C3D9FF;
-}
-
-.gwt-HorizontalSplitPanel .hsplitter {
- background-color: #C3D9FF;
- cursor: move;
-}
-
-.gwt-HorizontalSplitPanel .left {
- background-color: #E8EEF7;
-}
-
-.gwt-VerticalSplitPanel {
-}
-
-.gwt-VerticalSplitPanel .splitter {
- background-color: #C3D9FF;
- height: 8px;
- cursor: move;
-}
-
-.gwt-SuggestBoxPopup {
- border: 2px solid #C3D9FF;
-}
-
-.gwt-SuggestBoxPopup .item {
- padding: 2px;
-}
-
-.gwt-SuggestBoxPopup .item-selected {
- background-color: #C3D9FF;
- padding: 2px;
-}
-
-/* -------------------------------------------------------------------------- */
-.ks-Sink {
- width: 100%;
- height: 24em;
-}
-
-.ks-Info {
- color: white;
- padding: 20px 10px 20px 40px;
- margin-bottom: 10px;
-}
-
-.ks-List {
-}
-
-.ks-List .gwt-Image {
- position: relative;
- top: 8px;
-}
-
-.ks-List .ks-SinkItem a,
-.ks-List .ks-SinkItem-rtl a {
- text-decoration: none;
- color: white;
-}
-
-.ks-List .ks-SinkItem,
-.ks-List .ks-SinkItem-rtl {
- background: #c6cab7;
- padding: 4px;
- padding-left: 16px;
- padding-right: 16px;
- margin-right: 3px;
- border-bottom: 3px solid white;
- cursor: pointer;
- cursor: hand;
-}
-
-.ks-List .ks-SinkItem-selected,
-.ks-List .ks-SinkItem-rtl-selected {
- padding-bottom: 7px;
- border-bottom: none;
- cursor: auto;
-}
-
-.ks-List .ks-SinkItem-first {
- background: #c6cab7 url(images/corner.gif) no-repeat top left;
-}
-
-.ks-List .ks-SinkItem-rtl-first {
- background: #c6cab7 url( images/corner_rtl.gif ) no-repeat top right;
-}
-
-.ks-images-Image {
- margin: 8px;
-}
-
-.ks-images-Button {
- margin: 8px;
- cursor: pointer;
- cursor: hand;
-}
-
-.ks-layouts {
- margin: 8px;
-}
-
-.ks-layouts-Label {
- background-color: #C3D9FF;
- font-weight: bold;
- margin-top: 1em;
- padding: 2px 0px 2px 0px;
- width: 100%;
-}
-
-.ks-layouts-Scroller {
- height: 128px;
- border: 2px solid #C3D9FF;
- padding: 8px;
- margin: 8px;
-}
-
-.ks-popups-Popup {
- background-color: white;
- border: 1px solid #87B3FF;
- padding: 4px;
-}
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.html b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.html
deleted file mode 100644
index 6844b7a..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-
-<!-- -->
-<!-- Copyright 2008 Google Inc. -->
-<!-- Licensed under the Apache License, Version 2.0 (the "License"); you -->
-<!-- may not use this file except in compliance with the License. You may -->
-<!-- may obtain a copy of the License at -->
-<!-- -->
-<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
-<!-- -->
-<!-- Unless required by applicable law or agreed to in writing, software -->
-<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
-<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -->
-<!-- implied. License for the specific language governing permissions and -->
-<!-- limitations under the License. -->
-
-<html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <title>Kitchen Sink</title>
- </head>
- <body>
- <script type="text/javascript" language='javascript' src='com.google.gwt.sample.kitchensink.KitchenSink.nocache.js'></script>
- <iframe src="javascript:''" id='__gwt_historyFrame' tabIndex='-1' style='width:0;height:0;border:0'></iframe>
- </body>
-</html>
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner.gif
deleted file mode 100644
index 97acb41..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner_rtl.gif b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner_rtl.gif
deleted file mode 100644
index 3d09da7..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/corner_rtl.gif
+++ /dev/null
Binary files differ
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/jimmy.jpg b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/jimmy.jpg
deleted file mode 100755
index 1453a1e..0000000
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/images/jimmy.jpg
+++ /dev/null
Binary files differ