]> source.dussan.org Git - vaadin-framework.git/commitdiff
removed deprecated method and setNullSelectionAllowed to false to avoid problems...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 9 Nov 2007 07:52:33 +0000 (07:52 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 9 Nov 2007 07:52:33 +0000 (07:52 +0000)
svn changeset:2767/svn branch:trunk

src/com/itmill/toolkit/demo/CustomLayoutDemo.java

index d004745e8bdee9466f94fa6f4421854256c09df9..6035fdc0cc075a25706c883c2f4aa2becd119fbe 100644 (file)
@@ -56,7 +56,6 @@ public class CustomLayoutDemo extends com.itmill.toolkit.Application implements
                mainLayout.addComponent(loginButton, "loginButton");
 
                // Menu component, when clicked bodyPanel is updated
-               menu.setStyle("menu");
                menu.addItem("Welcome");
                menu.addItem("Products");
                menu.addItem("Support");
@@ -67,6 +66,7 @@ public class CustomLayoutDemo extends com.itmill.toolkit.Application implements
                menu.addListener((Listener) this);
                // Value changes are immediate
                menu.setImmediate(true);
+               menu.setNullSelectionAllowed(false);
                mainLayout.addComponent(menu, "menu");
 
                // Body component