diff options
author | John Ahlroos <john@vaadin.com> | 2013-03-21 16:43:31 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-22 14:32:37 +0000 |
commit | b247017a184dd8603ec06d1c9798f123b447a585 (patch) | |
tree | 6307e93ad13f91b5d661a6900290056e2d3ad84a /server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java | |
parent | de0761b03d7f1acf2aad8ac824d5cb49b75f9391 (diff) | |
download | vaadin-framework-b247017a184dd8603ec06d1c9798f123b447a585.tar.gz vaadin-framework-b247017a184dd8603ec06d1c9798f123b447a585.zip |
Added Container.hasContainerFilters() API #11234
Change-Id: I223dbc7a8419a5c4b58321b708e8bd7c8bb8134b
Diffstat (limited to 'server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java')
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java index 64c16b2798..f8efdf0d4f 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java @@ -590,13 +590,20 @@ public class SQLContainer implements Container, Container.Filterable, /** * {@inheritDoc} */ - @Override public void removeAllContainerFilters() { filters.clear(); refresh(); } + /** + * {@inheritDoc} + */ + @Override + public boolean hasContainerFilters() { + return !filters.isEmpty(); + } + /**********************************************/ /** Methods from interface Container.Indexed **/ /**********************************************/ |