aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/testbench/TestBench.java
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-11-26 12:14:08 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-11-26 12:14:08 +0000
commit89f144b3a28d782efb202afae8db639d6852608c (patch)
tree017e6e4aadb81a84646ddf0fdde5e272a6c75e5d /src/com/itmill/toolkit/demo/testbench/TestBench.java
parent479bac4920ec71ecf950d9afcfa064d18bbf7cd0 (diff)
downloadvaadin-framework-89f144b3a28d782efb202afae8db639d6852608c.tar.gz
vaadin-framework-89f144b3a28d782efb202afae8db639d6852608c.zip
Fixed demos. Pumped version up.
svn changeset:2962/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/testbench/TestBench.java')
-rw-r--r--src/com/itmill/toolkit/demo/testbench/TestBench.java10
1 files changed, 6 insertions, 4 deletions
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);