]> source.dussan.org Git - vaadin-framework.git/commitdiff
Tree now throws if setNullSelectionItemId() is called (unsupported).
authorMarc Englund <marc.englund@itmill.com>
Tue, 6 Nov 2007 09:24:35 +0000 (09:24 +0000)
committerMarc Englund <marc.englund@itmill.com>
Tue, 6 Nov 2007 09:24:35 +0000 (09:24 +0000)
svn changeset:2719/svn branch:trunk

src/com/itmill/toolkit/ui/Tree.java

index c8a8b76a517c4bc1fdb476b48857ae16759363e1..fb5bce08ca3f6fd18ee188c74cd113b78ab613f6 100644 (file)
@@ -944,6 +944,19 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
                return visible;
        }
 
+       /**
+        * Tree does not support <code>setNullSelectionItemId</code>.
+        * 
+        * @see com.itmill.toolkit.ui.AbstractSelect#setNullSelectionItemId(java.lang.Object)
+        */
+       public void setNullSelectionItemId(Object nullSelectionItemId)
+                       throws UnsupportedOperationException {
+               if (nullSelectionItemId != null) {
+                       throw new UnsupportedOperationException();
+               }
+
+       }
+
        /**
         * Adding new items is not supported.
         *