From: Henri Sara Date: Wed, 27 Apr 2011 09:15:06 +0000 (+0000) Subject: #6527 Minor protected API improvement in AbstractInMemoryContainer X-Git-Tag: 6.7.0.beta1~258 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eed2522157a6154b73581b0183c105ed5ff6f833;p=vaadin-framework.git #6527 Minor protected API improvement in AbstractInMemoryContainer svn changeset:18487/svn branch:6.6 --- diff --git a/src/com/vaadin/data/util/AbstractBeanContainer.java b/src/com/vaadin/data/util/AbstractBeanContainer.java index fb9cd23d71..b1d0b0672b 100644 --- a/src/com/vaadin/data/util/AbstractBeanContainer.java +++ b/src/com/vaadin/data/util/AbstractBeanContainer.java @@ -493,7 +493,7 @@ public abstract class AbstractBeanContainer extends return null; } return internalAddItemAfter(previousItemId, newItemId, - createBeanItem(bean)); + createBeanItem(bean), true); } /** @@ -515,7 +515,7 @@ public abstract class AbstractBeanContainer extends if (!validateBean(bean)) { return null; } - return internalAddItemAt(index, newItemId, createBeanItem(bean)); + return internalAddItemAt(index, newItemId, createBeanItem(bean), true); } /** diff --git a/src/com/vaadin/data/util/AbstractInMemoryContainer.java b/src/com/vaadin/data/util/AbstractInMemoryContainer.java index f8ad4b530a..3a9a0a8987 100644 --- a/src/com/vaadin/data/util/AbstractInMemoryContainer.java +++ b/src/com/vaadin/data/util/AbstractInMemoryContainer.java @@ -631,8 +631,8 @@ public abstract class AbstractInMemoryContainer size()) { return null; } else if (index == 0) { // add before any item, visible or not - return internalAddItemAfter(null, newItemId, item); + return internalAddItemAfter(null, newItemId, item, filter); } else { // if index==size(), adds immediately after last visible item return internalAddItemAfter(getIdByIndex(index - 1), newItemId, - item); + item, filter); } } diff --git a/src/com/vaadin/data/util/IndexedContainer.java b/src/com/vaadin/data/util/IndexedContainer.java index 6c8e5f0f2e..1ddc830e4e 100644 --- a/src/com/vaadin/data/util/IndexedContainer.java +++ b/src/com/vaadin/data/util/IndexedContainer.java @@ -331,7 +331,7 @@ public class IndexedContainer extends @Override public Item addItemAfter(Object previousItemId, Object newItemId) { return internalAddItemAfter(previousItemId, newItemId, - new IndexedContainerItem(newItemId)); + new IndexedContainerItem(newItemId), true); } /* @@ -360,7 +360,7 @@ public class IndexedContainer extends @Override public Item addItemAt(int index, Object newItemId) { return internalAddItemAt(index, newItemId, new IndexedContainerItem( - newItemId)); + newItemId), true); } /*