]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged:
authorArtur Signell <artur.signell@itmill.com>
Thu, 23 Apr 2009 06:30:32 +0000 (06:30 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 23 Apr 2009 06:30:32 +0000 (06:30 +0000)
Added addBean(BT bean) convenience method to BeanItemContainer

svn changeset:7497/svn branch:6.0

src/com/itmill/toolkit/data/util/BeanItemContainer.java

index aeb1e83c2d67f10b1e0634fd2a64191fd3a5119c..99e42e7e768524dfedb98041382a26c09f48ab6e 100644 (file)
@@ -263,6 +263,17 @@ public class BeanItemContainer<BT> implements Indexed, Sortable, Filterable,
         throw new UnsupportedOperationException();
     }
 
+    /**
+     * Creates a new Item with the bean into the Container.
+     * 
+     * The bean is used both as the item contents and as the item identifier.
+     * 
+     * @see com.itmill.toolkit.data.Container#addItem(Object)
+     */
+    public BeanItem addBean(BT bean) {
+        return addItem(bean);
+    }
+
     /**
      * Creates a new Item with the bean into the Container.
      *