summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-04-23 06:30:32 +0000
committerArtur Signell <artur.signell@itmill.com>2009-04-23 06:30:32 +0000
commit7d2f57c19d553082aef5975c58ad304c15f321e8 (patch)
tree538f1b83a28bf8e4d68b655a2c8c10fd11dfe206 /src/com/itmill/toolkit
parent2846a4291aefd7d2cabad99b07cb7ba91bb771a8 (diff)
downloadvaadin-framework-7d2f57c19d553082aef5975c58ad304c15f321e8.tar.gz
vaadin-framework-7d2f57c19d553082aef5975c58ad304c15f321e8.zip
Merged:
Added addBean(BT bean) convenience method to BeanItemContainer svn changeset:7497/svn branch:6.0
Diffstat (limited to 'src/com/itmill/toolkit')
-rw-r--r--src/com/itmill/toolkit/data/util/BeanItemContainer.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/data/util/BeanItemContainer.java b/src/com/itmill/toolkit/data/util/BeanItemContainer.java
index aeb1e83c2d..99e42e7e76 100644
--- a/src/com/itmill/toolkit/data/util/BeanItemContainer.java
+++ b/src/com/itmill/toolkit/data/util/BeanItemContainer.java
@@ -270,6 +270,17 @@ public class BeanItemContainer<BT> implements Indexed, Sortable, Filterable,
*
* @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.
+ *
+ * The bean is used both as the item contents and as the item identifier.
+ *
+ * @see com.itmill.toolkit.data.Container#addItem(Object)
+ */
public BeanItem addItem(Object itemId) throws UnsupportedOperationException {
if (list.size() > 0) {
// add immediately after last visible item