diff options
Diffstat (limited to 'src/com/vaadin/demo/tutorial/addressbook/ui/NavigationTree.java')
-rw-r--r-- | src/com/vaadin/demo/tutorial/addressbook/ui/NavigationTree.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/com/vaadin/demo/tutorial/addressbook/ui/NavigationTree.java b/src/com/vaadin/demo/tutorial/addressbook/ui/NavigationTree.java deleted file mode 100644 index f289f636b9..0000000000 --- a/src/com/vaadin/demo/tutorial/addressbook/ui/NavigationTree.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.vaadin.demo.tutorial.addressbook.ui; - -import com.vaadin.demo.tutorial.addressbook.AddressBookApplication; -import com.vaadin.event.ItemClickEvent.ItemClickListener; -import com.vaadin.ui.Tree; - -@SuppressWarnings("serial") -public class NavigationTree extends Tree { - public static final Object SHOW_ALL = "Show all"; - public static final Object SEARCH = "Search"; - - public NavigationTree(AddressBookApplication app) { - addItem(SHOW_ALL); - addItem(SEARCH); - - setChildrenAllowed(SHOW_ALL, false); - - /* - * We want items to be selectable but do not want the user to be able to - * de-select an item. - */ - setSelectable(true); - setNullSelectionAllowed(false); - - // Make application handle item click events - addListener((ItemClickListener) app); - - } -} |