Revision: 9740
Author: [email protected]
Date: Wed Feb 16 04:54:04 2011
Log: Replacing deprecated HorizontalSplitPanel and VerticalSplitPanel samples in Showcase with a new SplitLayoutPanel sample. The translations are copied from
other samples (DockPanel and HorizontalSplitPanel), so we do not need new
translations.

Issue: 5911

Review at http://gwt-code-reviews.appspot.com/1356804

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9740

Added:
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwSplitLayoutPanel.java
Deleted:
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwHorizontalSplitPanel.java /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalSplitPanel.java
Modified:
/trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java

=======================================
--- /dev/null
+++ /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwSplitLayoutPanel.java Wed Feb 16 04:54:04 2011
@@ -0,0 +1,124 @@
+/*
+ * Copyright 2011 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.showcase.client.content.panels;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.RunAsyncCallback;
+import com.google.gwt.i18n.client.Constants;
+import com.google.gwt.sample.showcase.client.ContentWidget;
+import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseData; +import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseSource; +import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseStyle;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.SplitLayoutPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * Example file.
+ */
+@ShowcaseStyle(".gwt-SplitLayoutPanel")
+public class CwSplitLayoutPanel extends ContentWidget {
+  /**
+   * The constants used in this Content Widget.
+   */
+  @ShowcaseSource
+  public static interface CwConstants extends Constants {
+    String cwSplitLayoutPanelCenter();
+
+    String cwSplitLayoutPanelDescription();
+
+    String cwSplitLayoutPanelEast();
+
+    String cwSplitLayoutPanelName();
+
+    String cwSplitLayoutPanelNorth1();
+
+    String cwSplitLayoutPanelNorth2();
+
+    String cwSplitLayoutPanelSouth1();
+
+    String cwSplitLayoutPanelSouth2();
+
+    String cwSplitLayoutPanelWest();
+  }
+
+  /**
+   * An instance of the constants.
+   */
+  @ShowcaseData
+  private final CwConstants constants;
+
+  /**
+   * Constructor.
+   *
+   * @param constants the constants
+   */
+  public CwSplitLayoutPanel(CwConstants constants) {
+    super(constants.cwSplitLayoutPanelName(), constants
+        .cwSplitLayoutPanelDescription(), true);
+    this.constants = constants;
+  }
+
+  /**
+   * Initialize this example.
+   */
+  @ShowcaseSource
+  @Override
+  public Widget onInitialize() {
+    // Create a Split Panel
+    SplitLayoutPanel splitPanel = new SplitLayoutPanel();
+    splitPanel.ensureDebugId("cwSplitLayoutPanel");
+    splitPanel.setPixelSize(500, 400);
+    splitPanel.getElement().getStyle()
+        .setProperty("border", "3px solid #d0e4f6");
+
+    // Add text all around.
+ splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth1()), 50); + splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth1()), 50);
+    splitPanel.addEast(new Label(constants.cwSplitLayoutPanelEast()), 100);
+    splitPanel.addWest(new Label(constants.cwSplitLayoutPanelWest()), 100);
+ splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth2()), 50); + splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth2()), 50);
+
+    // Add scrollable text to the center.
+    String centerText = constants.cwSplitLayoutPanelCenter();
+    for (int i = 0; i < 3; i++) {
+      centerText += " " + centerText;
+    }
+    Label centerLabel = new Label(centerText);
+    ScrollPanel centerScrollable = new ScrollPanel(centerLabel);
+    splitPanel.add(centerScrollable);
+
+    // Return the content
+    return splitPanel;
+  }
+
+  @Override
+  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
+    GWT.runAsync(CwSplitLayoutPanel.class, new RunAsyncCallback() {
+
+      public void onFailure(Throwable caught) {
+        callback.onFailure(caught);
+      }
+
+      public void onSuccess() {
+        callback.onSuccess(onInitialize());
+      }
+    });
+  }
+}
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwHorizontalSplitPanel.java Mon Sep 13 12:31:36 2010
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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 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.showcase.client.content.panels;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.i18n.client.Constants;
-import com.google.gwt.sample.showcase.client.ContentWidget;
-import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseData; -import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseSource; -import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseStyle;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.ui.DecoratorPanel;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.HorizontalSplitPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * Example file.
- */
-@SuppressWarnings("deprecation")
-@ShowcaseStyle(".gwt-HorizontalSplitPanel")
-public class CwHorizontalSplitPanel extends ContentWidget {
-  /**
-   * The constants used in this Content Widget.
-   */
-  @ShowcaseSource
-  public static interface CwConstants extends Constants {
-    String cwHorizontalSplitPanelDescription();
-
-    String cwHorizontalSplitPanelName();
-
-    String cwHorizontalSplitPanelText();
-  }
-
-  /**
-   * An instance of the constants.
-   */
-  @ShowcaseData
-  private final CwConstants constants;
-
-  /**
-   * Constructor.
-   *
-   * @param constants the constants
-   */
-  public CwHorizontalSplitPanel(CwConstants constants) {
-    super(constants.cwHorizontalSplitPanelName(),
-        constants.cwHorizontalSplitPanelDescription(), true);
-    this.constants = constants;
-  }
-
-  /**
-   * Initialize this example.
-   */
-  @ShowcaseSource
-  @Override
-  public Widget onInitialize() {
-    // Create a Horizontal Split Panel
-    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
-    hSplit.ensureDebugId("cwHorizontalSplitPanel");
-    hSplit.setSize("500px", "350px");
-    hSplit.setSplitPosition("30%");
-
-    // Add some content
-    String randomText = constants.cwHorizontalSplitPanelText();
-    for (int i = 0; i < 2; i++) {
-      randomText += randomText;
-    }
-    hSplit.setRightWidget(new HTML(randomText));
-    hSplit.setLeftWidget(new HTML(randomText));
-
-    // Wrap the split panel in a decorator panel
-    DecoratorPanel decPanel = new DecoratorPanel();
-    decPanel.setWidget(hSplit);
-
-    // Return the content
-    return decPanel;
-  }
-
-  @Override
-  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
-    GWT.runAsync(CwHorizontalSplitPanel.class, new RunAsyncCallback() {
-
-      public void onFailure(Throwable caught) {
-        callback.onFailure(caught);
-      }
-
-      public void onSuccess() {
-        callback.onSuccess(onInitialize());
-      }
-    });
-  }
-}
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalSplitPanel.java Mon Sep 13 12:31:36 2010
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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 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.showcase.client.content.panels;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.i18n.client.Constants;
-import com.google.gwt.sample.showcase.client.ContentWidget;
-import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseData; -import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseSource; -import com.google.gwt.sample.showcase.client.ShowcaseAnnotations.ShowcaseStyle;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.ui.DecoratorPanel;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.VerticalSplitPanel;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * Example file.
- */
-@SuppressWarnings("deprecation")
-@ShowcaseStyle(".gwt-VerticalSplitPanel")
-public class CwVerticalSplitPanel extends ContentWidget {
-  /**
-   * The constants used in this Content Widget.
-   */
-  @ShowcaseSource
-  public static interface CwConstants extends Constants {
-    String cwVerticalSplitPanelDescription();
-
-    String cwVerticalSplitPanelName();
-
-    String cwVerticalSplitPanelText();
-  }
-
-  /**
-   * An instance of the constants.
-   */
-  @ShowcaseData
-  private final CwConstants constants;
-
-  /**
-   * Constructor.
-   *
-   * @param constants the constants
-   */
-  public CwVerticalSplitPanel(CwConstants constants) {
-    super(constants.cwVerticalSplitPanelName(),
-        constants.cwVerticalSplitPanelDescription(), true);
-    this.constants = constants;
-  }
-
-  /**
-   * Initialize this example.
-   */
-  @ShowcaseSource
-  @Override
-  public Widget onInitialize() {
-    // Create a Vertical Split Panel
-    VerticalSplitPanel vSplit = new VerticalSplitPanel();
-    vSplit.ensureDebugId("cwVerticalSplitPanel");
-    vSplit.setSize("500px", "350px");
-    vSplit.setSplitPosition("30%");
-
-    // Add some content
-    String randomText = constants.cwVerticalSplitPanelText() + " ";
-    for (int i = 0; i < 2; i++) {
-      randomText += randomText;
-    }
-    vSplit.setTopWidget(new HTML(randomText));
-    vSplit.setBottomWidget(new HTML(randomText));
-
-    // Wrap the split panel in a decorator panel
-    DecoratorPanel decPanel = new DecoratorPanel();
-    decPanel.setWidget(vSplit);
-
-    // Return the content
-    return decPanel;
-  }
-
-  @Override
-  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
-    GWT.runAsync(CwVerticalSplitPanel.class, new RunAsyncCallback() {
-
-      public void onFailure(Throwable caught) {
-        callback.onFailure(caught);
-      }
-
-      public void onSuccess() {
-        callback.onSuccess(onInitialize());
-      }
-    });
-  }
-}
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties Wed Feb 16 04:54:04 2011
@@ -155,9 +155,6 @@
 cwHorizontalPanelName = Horizontal Panel
cwHorizontalPanelDescription = A Horizontal Panel aligns its content horizontally without allowing it to wrap. Resize the page to see how the content maintains its horizontal alignment.
 cwHorizontalPanelButton = Button
-cwHorizontalSplitPanelName = Horizontal Split Panel
-cwHorizontalSplitPanelDescription = Give users the freedom to decide how to allocate space using this split panel. -cwHorizontalSplitPanelText = This is some text to show how the contents on either side of the splitter flow.
 cwHyperlinkName = Hyperlink
cwHyperlinkDescription = Embed your page with Hyperlinks to navigate to different sections. Hyperlinks create history tokens, allowing users to return to a previous state using the browser back button.
 cwHyperlinkChoose = <b>Choose a section:</b>
@@ -209,6 +206,15 @@
cwRadioButtonSports = Baseball, Basketball, Football, Hockey, Soccer, Water Polo
 cwRichTextName = Rich Text
cwRichTextDescription = The Rich Text Area is supported on all major browsers, and will fall back gracefully to the level of functionality supported on each.
+cwSplitLayoutPanelName = Split Layout Panel
+cwSplitLayoutPanelDescription = Give users the freedom to decide how to allocate space using this split panel. +cwSplitLayoutPanelCenter = This is some text to show how the contents on either side of the splitter flow.
+cwSplitLayoutPanelEast = This is the east component.
+cwSplitLayoutPanelNorth1 = This is the first north component.
+cwSplitLayoutPanelNorth2 = This is the second north component.
+cwSplitLayoutPanelSouth1 = This is the first south component.
+cwSplitLayoutPanelSouth2 = This is the second south component.
+cwSplitLayoutPanelWest = This is the west component.
 cwStackPanelName = Stack Panel
cwStackPanelDescription = The StackPanel stacks its children vertically, displaying only one at a time, with a header for each child which the user can click to display. This is useful for vertical menu systems.
 cwStackPanelContactsHeader = Contacts
@@ -249,9 +255,6 @@
 cwVerticalPanelName = Vertical Panel
cwVerticalPanelDescription = A Vertical Panel aligns its content vertically without allowing it to wrap. Resize the page to see how the content maintains its vertical alignment.
 cwVerticalPanelButton = Button
-cwVerticalSplitPanelName = Vertical Split Panel
-cwVerticalSplitPanelDescription = Give users the freedom to decide how to allocate space using this split panel. -cwVerticalSplitPanelText = This is some text to show how the contents on either side of the splitter flow.

 # The following constants need to be translated in all languages.
 categoryCells = Cell Widgets
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties Wed Feb 16 04:54:04 2011
@@ -142,9 +142,6 @@
 cwHorizontalPanelName = لوح افقي
cwHorizontalPanelDescription = اللوح الافقي يحاذي محتوياته افقيا ولا يسمح لها بالالتفاف. قم بتغير حجم الصفحة لتلاحظ يف ان المحتويات تحافظ على محاذاتها الافقية.
 cwHorizontalPanelButton = زر
-cwHorizontalSplitPanelName = لوح الانقسام الافقي
-cwHorizontalSplitPanelDescription = اعطاء المستخدمين حرية تحديد توزيع الفضاء باستخدام لوح الانقسام. -cwHorizontalSplitPanelText = هذا النص عبارة عن مثال لتوضيح انسياب النص على كل جانب من الفاصل
 cwHyperlinkName = وصلة
cwHyperlinkDescription = قم بتضمين الوصلات داخل الصفحة للملاحة بين الاقسام المختلفة. ان الوصلات تولد علامات توثق تسلسل (تأريخ) الملاحة بحيث يمكن العودة الى الحالة السابقة باستخدام زر "السابق" في المتصفح
 cwHyperlinkChoose = <b>اختيار احد الاقسام:</b>
@@ -196,6 +193,15 @@
cwRadioButtonSports = البيسبول , كرة السلة , كرة القدم الامريكية , الهوكي , كرة القدم , كرة الماء
 cwRichTextName = النص الغني
cwRichTextDescription = ان مكون حيز النص الغني مدعوم من قبل جميع المتصفحات الشائعة, ويتم التقليل من الامكانات المعروضة بشكل مناسب حسب امكانيات المتصفح.
+cwSplitLayoutPanelName = موجة شعبة
+cwSplitLayoutPanelDescription = اعطاء المستخدمين حرية تحديد توزيع الفضاء باستخدام لوح الانقسام. +cwSplitLayoutPanelCenter = هذا النص عبارة عن مثال لتوضيح انسياب النص على كل جانب من الفاصل
+cwSplitLayoutPanelEast = هذا هو العنصر الشرق
+cwSplitLayoutPanelNorth1 = هذا هو العنصر الشمالي الاول
+cwSplitLayoutPanelNorth2 = هذا هو العنصر الشمالي الثاني
+cwSplitLayoutPanelSouth1 = هذا هو العنصر الجنوبي الاول
+cwSplitLayoutPanelSouth2 = هذا هو العنصر الجنوبي الثاني
+cwSplitLayoutPanelWest = هذا هو العنصر الغربي
 cwStackPanelName = لوح التكديس
cwStackPanelDescription =ان لوح التكديس يكدس محتوياته عموديا ويعرض واحدة منها فقط في الوقت الواحد مع ترويسة لكل من المحتويات والتي ممكن النقر عليها لعرضها كاملة. ان هذا مفيد للقوائم العمودية.
 cwStackPanelContactsHeader = جهات الاتصال
@@ -236,9 +242,6 @@
 cwVerticalPanelName = اللوح العمودي
cwVerticalPanelDescription = ان اللوح العمودي يحاذي محتوياته عموديا بدون السماح لهم بالالتفاف. قم بتغيير حجم الصفحة لملاحظة كيفية حفاظ المحتويات على محاذاتها العمودية.
 cwVerticalPanelButton = زر
-cwVerticalSplitPanelName = لوح الانقسام العمودي
-cwVerticalSplitPanelDescription = اعطاء المستخدم حرية توزيع الفضاء باستخدام لوحة الانقسام -cwVerticalSplitPanelText = هذا النص عبارة عن مثال لتوضيح انسياب النص على كل جانب من الفاصل.

 # The following constants need to be translated.
 categoryCells = خلية القطع
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties Wed Feb 16 04:54:04 2011
@@ -142,9 +142,6 @@
 cwHorizontalPanelName = Panneau horizontal
cwHorizontalPanelDescription = Dans un panneau horizontal, le contenu est aligné horizontalement sans être renvoyé à la ligne. Redimensionnez la page pour voir comment le contenu conserve son alignement horizontal.
 cwHorizontalPanelButton = Bouton
-cwHorizontalSplitPanelName = Panneau à fractionnement horizontal
-cwHorizontalSplitPanelDescription = Donne aux utilisateurs la possibilité de décider de la manière dont l'espace doit être alloué. -cwHorizontalSplitPanelText = Voici un texte permettant de voir comment le contenu situé de chaque côté de la barre de fractionnement se défile.
 cwHyperlinkName = Hyperlien
cwHyperlinkDescription = Intégrer votre page avec les hyperliens pour naviguer à différentes sections. Les hyperliens créent des jetons d'histoire, permettant aux usagers de retourner à un état précédent en utilisant le bouton de retour du navigateur.
 cwHyperlinkChoose = <b>Choisir une section:</b>
@@ -196,6 +193,15 @@
cwRadioButtonSports = Base-ball, Basket-ball, Football, Hockey, Soccer, Water-polo
 cwRichTextName = Texte enrichi
cwRichTextDescription = La zone de texte enrichie est supportée sur tous les navigateurs les plus courants. Normalement, cette zone adopte harmonieusement le niveau de fonctionnalité offert par les navigateurs qui supportent cette zone.
+cwSplitLayoutPanelName = Fractionnement disposition du panneau
+cwSplitLayoutPanelDescription = Donne aux utilisateurs la possibilité de décider de la manière dont l'espace doit être alloué. +cwSplitLayoutPanelCenter = Voici un texte permettant de voir comment le contenu situé de chaque côté de la barre de fractionnement se défile.
+cwSplitLayoutPanelEast = Ceci est le composant est
+cwSplitLayoutPanelNorth1 = Ceci est le premier composant nord
+cwSplitLayoutPanelNorth2 = Ceci est le second composant nord
+cwSplitLayoutPanelSouth1 = Ceci est le premier composant sud
+cwSplitLayoutPanelSouth2 = Ceci est le second composant sud
+cwSplitLayoutPanelWest = Ceci est le composant ouest
 cwStackPanelName = Stack Panel
cwStackPanelDescription = Le StackPanel piles verticalement ses enfants, affichant seulement un à la fois, avec une tête pour chaque enfant dont l'utilisateur peut cliquer pour défiler le panneau correspondant à l'en-tête. Cette option est utile pour les systèmes de menu verticale.
 cwStackPanelContactsHeader = Contacts
@@ -236,9 +242,6 @@
 cwVerticalPanelName = Panneau vertical
cwVerticalPanelDescription = Dans un panneau vertical, le contenu est aligné verticalement sans être renvoyé à la ligne. Redimensionnez la page pour voir comment le contenu conserve son alignement vertical.
 cwVerticalPanelButton = Bouton
-cwVerticalSplitPanelName = Panneau à fractionnement vertical
-cwVerticalSplitPanelDescription = Donne aux utilisateurs la possibilité de décider de la manière dont l'espace doit être alloué. -cwVerticalSplitPanelText = Voici un texte permettant de voir comment le contenu situé de chaque côté de la barre de fractionnement se défile.

 # The following constants need to be translated.
 categoryCells = Widgets Cell
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties Wed Feb 16 04:54:04 2011
@@ -142,9 +142,6 @@
 cwHorizontalPanelName = 水平面板
cwHorizontalPanelDescription = 水平面板(HorizontalPanel)不用换行而横向对齐 内容。改变页面大小,看看内容如何保持水平对齐。
 cwHorizontalPanelButton = 按钮
-cwHorizontalSplitPanelName = 水平拆分面板
-cwHorizontalSplitPanelDescription = 水平拆分面板(HorizontalSplitPanel)允许 用户可自由决定如何分配空间。
-cwHorizontalSplitPanelText = 以下文字显示了分隔条两侧的内容是如何布局的。
 cwHyperlinkName =超链
cwHyperlinkDescription =在网页中嵌入超连结(Hyperlink),就可以链接到到网页的 不同栏目。超连结会同时会自动生成历史令牌,这样用户就可以用浏览器后退按钮恢复 到过去的相应状态。
 cwHyperlinkChoose = <b>选择一个栏目:</b>
@@ -196,6 +193,15 @@
 cwRadioButtonSports = 棒球, 篮球, 足球, 冰球, 足球, 水球
 cwRichTextName = 格式文本
cwRichTextDescription = 主流浏览器基本都支持格式文本区域,但支持的程度并不 同。GWT的格式文本部件可以自动调节到浏览器所能支持的程度。
+cwSplitLayoutPanelName = 拆分布局面板
+cwSplitLayoutPanelDescription = 拆分布局面板(SplitLayoutPanel)允许用户可自 由决定如何分配空间。
+cwSplitLayoutPanelCenter = 以下文字显示了分隔条两侧的内容是如何布局的。
+cwSplitLayoutPanelEast = 此为东侧组件
+cwSplitLayoutPanelNorth1 = 此为北侧第一个组件
+cwSplitLayoutPanelNorth2 = 此为北侧第二个组件
+cwSplitLayoutPanelSouth1 = 此为南侧第一个组件
+cwSplitLayoutPanelSouth2 = 此为南侧第二个组件
+cwSplitLayoutPanelWest = 此为西侧组件
 cwStackPanelName =栈面板
cwStackPanelDescription = 栈面板(StackPanel)会纵向排列子部件,任意时刻只 显示某一部件的内容,其他子部件则只显示其标题,用户可以通过点击标题切换。这是 一种十分有用的垂直菜单系统。
 cwStackPanelContactsHeader = 通讯录
@@ -236,9 +242,6 @@
 cwVerticalPanelName = 垂直面板
cwVerticalPanelDescription = 垂直面板(VerticalPanel)可以纵向对齐相关内容。 改变页面大小,看看内容如何保持垂直对齐的。
 cwVerticalPanelButton = 按钮
-cwVerticalSplitPanelName = 垂直拆分面板
-cwVerticalSplitPanelDescription = 垂直拆分面板(VerticalSplitPanel)允许用户 自由决定如何分配空间。
-cwVerticalSplitPanelText = 以下文字显示了分隔条两侧的内容是如何流动的。

 # The following constants need to be translated
 categoryCells =细胞小工具
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java Wed Feb 16 04:54:04 2011
@@ -1,12 +1,12 @@
 /*
  * Copyright 2010 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
@@ -47,10 +47,9 @@
 import com.google.gwt.sample.showcase.client.content.panels.CwDockPanel;
 import com.google.gwt.sample.showcase.client.content.panels.CwFlowPanel;
import com.google.gwt.sample.showcase.client.content.panels.CwHorizontalPanel; -import com.google.gwt.sample.showcase.client.content.panels.CwHorizontalSplitPanel; +import com.google.gwt.sample.showcase.client.content.panels.CwSplitLayoutPanel; import com.google.gwt.sample.showcase.client.content.panels.CwTabLayoutPanel; import com.google.gwt.sample.showcase.client.content.panels.CwVerticalPanel; -import com.google.gwt.sample.showcase.client.content.panels.CwVerticalSplitPanel;
 import com.google.gwt.sample.showcase.client.content.popups.CwBasicPopup;
 import com.google.gwt.sample.showcase.client.content.popups.CwDialogBox;
 import com.google.gwt.sample.showcase.client.content.tables.CwFlexTable;
@@ -121,8 +120,7 @@
    */
private static class ContentWidgetCell extends AbstractCell<ContentWidget> {
     @Override
-    public void render(Context context, ContentWidget value,
-        SafeHtmlBuilder sb) {
+ public void render(Context context, ContentWidget value, SafeHtmlBuilder sb) {
       if (value != null) {
         sb.appendEscaped(value.getName());
       }
@@ -138,8 +136,8 @@
         new ListDataProvider<ContentWidget>();
     private final String name;
     private NodeInfo<ContentWidget> nodeInfo;
-    private final List<RunAsyncCode> splitPoints = new ArrayList<
-        RunAsyncCode>();
+    private final List<RunAsyncCode> splitPoints =
+        new ArrayList<RunAsyncCode>();

     public Category(String name) {
       this.name = name;
@@ -160,20 +158,20 @@

     /**
      * Get the node info for the examples under this category.
-     *
+     *
      * @return the node info
      */
     public NodeInfo<ContentWidget> getNodeInfo() {
       if (nodeInfo == null) {
-        nodeInfo = new DefaultNodeInfo<ContentWidget>(
-            examples, contentWidgetCell, selectionModel, null);
+        nodeInfo = new DefaultNodeInfo<ContentWidget>(examples,
+            contentWidgetCell, selectionModel, null);
       }
       return nodeInfo;
     }

     /**
      * Get the list of split points to prefetch for this category.
-     *
+     *
      * @return the list of classes in this category
      */
     public Iterable<RunAsyncCode> getSplitPoints() {
@@ -184,14 +182,12 @@
   /**
    * The top level categories.
    */
- private final ListDataProvider<Category> categories = new ListDataProvider<
-      Category>();
+ private final ListDataProvider<Category> categories = new ListDataProvider<Category>();

   /**
    * A mapping of {@link ContentWidget}s to their associated categories.
    */
-  private final Map<ContentWidget, Category> contentCategory = new HashMap<
-      ContentWidget, Category>();
+ private final Map<ContentWidget, Category> contentCategory = new HashMap<ContentWidget, Category>();

   /**
    * The cell used to render examples.
@@ -201,8 +197,7 @@
   /**
    * A mapping of history tokens to their associated {@link ContentWidget}.
    */
-  private final Map<String, ContentWidget> contentToken = new HashMap<
-      String, ContentWidget>();
+ private final Map<String, ContentWidget> contentToken = new HashMap<String, ContentWidget>();

   /**
    * The selection model used to select examples.
@@ -217,7 +212,7 @@

   /**
    * Get the {@link Category} associated with a widget.
-   *
+   *
    * @param widget the {@link ContentWidget}
    * @return the associated {@link Category}
    */
@@ -227,7 +222,7 @@

   /**
    * Get the content widget associated with the specified history token.
-   *
+   *
    * @param token the history token
    * @return the associated {@link ContentWidget}
    */
@@ -296,14 +291,14 @@
     {
       Category category = new Category(constants.categoryLists());
       catList.add(category);
-      category.addExample(
- new CwListBox(constants), RunAsyncCode.runAsyncCode(CwListBox.class));
+      category.addExample(new CwListBox(constants),
+          RunAsyncCode.runAsyncCode(CwListBox.class));
       category.addExample(new CwSuggestBox(constants),
           RunAsyncCode.runAsyncCode(CwSuggestBox.class));
-      category.addExample(
-          new CwTree(constants), RunAsyncCode.runAsyncCode(CwTree.class));
-      category.addExample(
- new CwMenuBar(constants), RunAsyncCode.runAsyncCode(CwMenuBar.class));
+      category.addExample(new CwTree(constants),
+          RunAsyncCode.runAsyncCode(CwTree.class));
+      category.addExample(new CwMenuBar(constants),
+          RunAsyncCode.runAsyncCode(CwMenuBar.class));
       category.addExample(new CwStackPanel(constants),
           RunAsyncCode.runAsyncCode(CwStackPanel.class));
     }
@@ -348,18 +343,16 @@
           RunAsyncCode.runAsyncCode(CwDisclosurePanel.class));
       category.addExample(new CwTabLayoutPanel(constants),
           RunAsyncCode.runAsyncCode(CwTabLayoutPanel.class));
-      category.addExample(new CwHorizontalSplitPanel(constants),
-          RunAsyncCode.runAsyncCode(CwHorizontalSplitPanel.class));
-      category.addExample(new CwVerticalSplitPanel(constants),
-          RunAsyncCode.runAsyncCode(CwVerticalSplitPanel.class));
+      category.addExample(new CwSplitLayoutPanel(constants),
+          RunAsyncCode.runAsyncCode(CwSplitLayoutPanel.class));
     }

     // Tables.
     {
       Category category = new Category(constants.categoryTables());
       catList.add(category);
-      category.addExample(
-          new CwGrid(constants), RunAsyncCode.runAsyncCode(CwGrid.class));
+      category.addExample(new CwGrid(constants),
+          RunAsyncCode.runAsyncCode(CwGrid.class));
       category.addExample(new CwFlexTable(constants),
           RunAsyncCode.runAsyncCode(CwFlexTable.class));
     }
@@ -412,8 +405,8 @@
       catList.add(category);
       category.addExample(new CwAnimation(constants),
           RunAsyncCode.runAsyncCode(CwAnimation.class));
-      category.addExample(
- new CwCookies(constants), RunAsyncCode.runAsyncCode(CwCookies.class));
+      category.addExample(new CwCookies(constants),
+          RunAsyncCode.runAsyncCode(CwCookies.class));
     }
   }
 }
=======================================
--- /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java Tue Feb 8 07:19:49 2011 +++ /trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java Wed Feb 16 04:54:04 2011
@@ -1,12 +1,12 @@
 /*
  * 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 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
@@ -45,10 +45,9 @@
 import com.google.gwt.sample.showcase.client.content.panels.CwDockPanel;
 import com.google.gwt.sample.showcase.client.content.panels.CwFlowPanel;
import com.google.gwt.sample.showcase.client.content.panels.CwHorizontalPanel; -import com.google.gwt.sample.showcase.client.content.panels.CwHorizontalSplitPanel; +import com.google.gwt.sample.showcase.client.content.panels.CwSplitLayoutPanel; import com.google.gwt.sample.showcase.client.content.panels.CwTabLayoutPanel; import com.google.gwt.sample.showcase.client.content.panels.CwVerticalPanel; -import com.google.gwt.sample.showcase.client.content.panels.CwVerticalSplitPanel;
 import com.google.gwt.sample.showcase.client.content.popups.CwBasicPopup;
 import com.google.gwt.sample.showcase.client.content.popups.CwDialogBox;
 import com.google.gwt.sample.showcase.client.content.tables.CwFlexTable;
@@ -73,8 +72,7 @@
     CwMenuBar.CwConstants, CwFlowPanel.CwConstants,
     CwDisclosurePanel.CwConstants, CwTabLayoutPanel.CwConstants,
     CwDockPanel.CwConstants, CwHorizontalPanel.CwConstants,
-    CwHorizontalSplitPanel.CwConstants, CwVerticalPanel.CwConstants,
-    CwVerticalSplitPanel.CwConstants, CwBasicPopup.CwConstants,
+    CwVerticalPanel.CwConstants, CwBasicPopup.CwConstants,
     CwDialogBox.CwConstants, CwGrid.CwConstants, CwFlexTable.CwConstants,
CwBasicText.CwConstants, CwRichText.CwConstants, CwFileUpload.CwConstants, CwAbsolutePanel.CwConstants, CwHyperlink.CwConstants, CwFrame.CwConstants,
@@ -87,7 +85,7 @@
     CwDatePicker.CwConstants, CwPluralFormsExample.CwConstants,
CwCellList.CwConstants, CwCellTable.CwConstants, CwCellTree.CwConstants,
     CwCellBrowser.CwConstants, CwCellValidation.CwConstants,
-    CwCellSampler.CwConstants {
+    CwCellSampler.CwConstants, CwSplitLayoutPanel.CwConstants {

   /**
* The path to source code for examples, raw files, and style definitions.

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to