From: Matti Tahvonen Date: Fri, 9 Nov 2007 07:52:33 +0000 (+0000) Subject: removed deprecated method and setNullSelectionAllowed to false to avoid problems... X-Git-Tag: 6.7.0.beta1~5617 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43e3b5a6025ca66cd75e18b3791005295a3009b5;p=vaadin-framework.git removed deprecated method and setNullSelectionAllowed to false to avoid problems in event handler svn changeset:2767/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/CustomLayoutDemo.java b/src/com/itmill/toolkit/demo/CustomLayoutDemo.java index d004745e8b..6035fdc0cc 100644 --- a/src/com/itmill/toolkit/demo/CustomLayoutDemo.java +++ b/src/com/itmill/toolkit/demo/CustomLayoutDemo.java @@ -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