From: Jani Laakso Date: Mon, 26 Nov 2007 12:14:08 +0000 (+0000) Subject: Fixed demos. Pumped version up. X-Git-Tag: 6.7.0.beta1~5456 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=89f144b3a28d782efb202afae8db639d6852608c;p=vaadin-framework.git Fixed demos. Pumped version up. svn changeset:2962/svn branch:trunk --- diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index c50e11e776..d2efa61f31 100644 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -10,7 +10,16 @@ IT Mill Toolkit examples - + + + DemoTestBench + com.itmill.toolkit.terminal.gwt.server.ApplicationServlet + + application + com.itmill.toolkit.demo.testbench.TestBench + + + TestForNativeWindowing com.itmill.toolkit.terminal.gwt.server.ApplicationServlet @@ -333,6 +342,10 @@ + + DemoTestBench + /DemoTestBench/* + TestForNativeWindowing diff --git a/build/VERSION.properties b/build/VERSION.properties index 396b7550d4..a547f6cb33 100644 --- a/build/VERSION.properties +++ b/build/VERSION.properties @@ -1 +1 @@ -version=5.0.0-alpha-3 +version=5.0.0-alpha-15 diff --git a/build/package/web.xml b/build/package/web.xml index 2e880364c1..8508ade1ee 100644 --- a/build/package/web.xml +++ b/build/package/web.xml @@ -20,6 +20,15 @@ + + BrowserDemo + com.itmill.toolkit.terminal.gwt.server.ApplicationServlet + + application + com.itmill.toolkit.demo.BrowserDemo + + + TestBench com.itmill.toolkit.terminal.gwt.server.ApplicationServlet @@ -206,9 +215,33 @@ + + CalendarDemo + com.itmill.toolkit.terminal.gwt.server.ApplicationServlet + + application + com.itmill.toolkit.demo.reservation.CalendarDemo + + + widgetset + com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet + + + + + BrowserDemo + /BrowserDemo/* + + + + CalendarDemo + /CalendarDemo/* + + + WindowedDemos - /WindowedDemos + /WindowedDemos/* diff --git a/build/package/webcontent-index.html b/build/package/webcontent-index.html index 410f4c31f9..f91bf0ef17 100644 --- a/build/package/webcontent-index.html +++ b/build/package/webcontent-index.html @@ -23,7 +23,7 @@
-

Testbench

+

Testbench

Testbench contains multiple Toolkit components. All demos are custom components controlled by Testbench application. @@ -33,6 +33,17 @@ browse source

+
+

NativeWindowing

+
+

+ Demonstrates how to handle native windows. +

+
+ Source code: + browse source +
+

Colorpicker widget

@@ -48,7 +59,7 @@

Reservr

Reservr - Larger example application + Larger example application, contains complex client-side widgets. Note:You have to run it under localhost domain to enable Google Maps.

Source code: browse source @@ -66,7 +77,7 @@
-

Client-side caching demo

+

Client-side caching demo

CachingDemo diff --git a/src/com/itmill/toolkit/demo/testbench/TestBench.java b/src/com/itmill/toolkit/demo/testbench/TestBench.java index 8880525e55..c455dc72ae 100644 --- a/src/com/itmill/toolkit/demo/testbench/TestBench.java +++ b/src/com/itmill/toolkit/demo/testbench/TestBench.java @@ -88,11 +88,13 @@ public class TestBench extends com.itmill.toolkit.Application implements for (Iterator i = itemCaptions.keySet().iterator(); i.hasNext();) { Class testable = (Class) i.next(); // simplify captions - String name = testable.getName().replaceAll("com.itmill.toolkit.", - ""); + String name = testable.getName().substring( + testable.getName().lastIndexOf('.') + 1); menu.setItemCaption(testable, name); - // TODO fix #1191 - menu.collapseItem(testable); + } + // expand all root items + for (Iterator i = menu.rootItemIds().iterator(); i.hasNext();) { + menu.expandItemsRecursively(i.next()); } menu.addListener(this); diff --git a/src/com/itmill/toolkit/tests/TestBench.java b/src/com/itmill/toolkit/tests/TestBench.java index 76f1c119c5..48fd3cffe5 100644 --- a/src/com/itmill/toolkit/tests/TestBench.java +++ b/src/com/itmill/toolkit/tests/TestBench.java @@ -92,12 +92,13 @@ public class TestBench extends com.itmill.toolkit.Application implements for (Iterator i = itemCaptions.keySet().iterator(); i.hasNext();) { Class testable = (Class) i.next(); // simplify captions - String name = testable.getName().replaceAll("com.itmill.toolkit.", - ""); + String name = testable.getName().substring( + testable.getName().lastIndexOf('.') + 1); menu.setItemCaption(testable, name); - // TODO fix #1191 - System.err.println(name); - menu.collapseItem(testable); + } + // expand all root items + for (Iterator i = menu.rootItemIds().iterator(); i.hasNext();) { + menu.expandItemsRecursively(i.next()); } menu.addListener(this);