diff options
author | Henri Sara <henri.sara@itmill.com> | 2011-03-02 07:22:17 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2011-03-02 07:22:17 +0000 |
commit | 59d0a558ee01c72244b2d95af1678c9d17a972a0 (patch) | |
tree | 16fd9060e23a4dfa0e3f77e0230a6309a1479700 /src/com/vaadin/data/util/AbstractInMemoryContainer.java | |
parent | e581a1814abbd4d6fbbf00530ab0acc42f3259c8 (diff) | |
download | vaadin-framework-59d0a558ee01c72244b2d95af1678c9d17a972a0.tar.gz vaadin-framework-59d0a558ee01c72244b2d95af1678c9d17a972a0.zip |
#6527 Container refactoring: move internalIndexOf() to AbstractInMemoryContainer
svn changeset:17537/svn branch:6.6
Diffstat (limited to 'src/com/vaadin/data/util/AbstractInMemoryContainer.java')
-rw-r--r-- | src/com/vaadin/data/util/AbstractInMemoryContainer.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/vaadin/data/util/AbstractInMemoryContainer.java b/src/com/vaadin/data/util/AbstractInMemoryContainer.java index 63f90399d9..47d64aa8c7 100644 --- a/src/com/vaadin/data/util/AbstractInMemoryContainer.java +++ b/src/com/vaadin/data/util/AbstractInMemoryContainer.java @@ -221,6 +221,19 @@ public abstract class AbstractInMemoryContainer<ITEMIDTYPE, PROPERTYIDCLASS, ITE } /** + * Returns the index of an item within the unfiltered collection of items. + * + * For internal use by subclasses only. This API is experimental and subject + * to change. + * + * @param itemId + * @return + */ + protected int internalIndexOf(ITEMIDTYPE itemId) { + return allItemIds.indexOf(itemId); + } + + /** * Returns the internal list of visible item identifiers after filtering. * * For internal use only. |