Filterable Containers must have a method to return all items including visi

All filterable containers do not have any method as such to return all items which includes visible and hidden items.

Following is a method by which we can achieve the above purpose. But this has protected modifier and also the javadoc says may disappear in future versions.

[color=#008000]
getAllItemIds protected java.util.List getAllItemIds()Internal helper method to get the internal list of all item identifiers. Avoid using this method outside this class, may disappear in future versions.

Returns:
List


List com.vaadin.data.util.AbstractInMemoryContainer.getAllItemIds()
Internal helper method to get the internal list of all item identifiers. Avoid using this method outside this class, may disappear in future versions.

[/color]

For my application purpose I need unfiltered items.

I can subclass the Implemented Filterable Containers. But that is just a temporary hack.

Why cant there be public method exposed to get filtered+unfiltered items?

Notice that “filtering” is not just about hiding some items, but rather selecting the (visible) items from a larger set, such as in database queries. The unfiltered set could even be infinite.

You are right. But that holds good only for sql containers. In Vaadin there are other containers like IndexedContainer and AbstractBeanContainer which contains all the items in memory. They both extend AbstractInMemoryContainer. Therefore it makes sense to expose a public method in AbstractInMemoryContainer to get all items irrespective of whether it is hidden or visible.

There is method now but that it in protected mode and javadoc says it might be removed in future.