diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-24 13:17:35 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-24 10:49:12 +0000 |
commit | 31cc212c35b4817d1f067093f9305877fd14cf37 (patch) | |
tree | cfc51ff9ea530f0744ef324e4671e62cc4b2eda8 /server/src/com/vaadin/data/util/sqlcontainer | |
parent | 4a6ed040c7c09ae61f1e3f751c0f1372610bfbc9 (diff) | |
download | vaadin-framework-31cc212c35b4817d1f067093f9305877fd14cf37.tar.gz vaadin-framework-31cc212c35b4817d1f067093f9305877fd14cf37.zip |
Replaced Filterable.hasContainerFilters with getContainerFilters (#11234)
Change-Id: Ie0b05e55c1d8fc8d10d073c508b112da740c3333
Diffstat (limited to 'server/src/com/vaadin/data/util/sqlcontainer')
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java index f8efdf0d4f..987466cdb7 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java @@ -597,11 +597,23 @@ public class SQLContainer implements Container, Container.Filterable, } /** - * {@inheritDoc} + * Returns true if any filters have been applied to the container. + * + * @return true if the container has filters applied, false otherwise + * @since 7.1 */ - @Override public boolean hasContainerFilters() { - return !filters.isEmpty(); + return !getContainerFilters().isEmpty(); + } + + /* + * (non-Javadoc) + * + * @see com.vaadin.data.Container.Filterable#getContainerFilters() + */ + @Override + public Collection<Filter> getContainerFilters() { + return Collections.unmodifiableCollection(filters); } /**********************************************/ @@ -1825,4 +1837,5 @@ public class SQLContainer implements Container, Container.Filterable, private static final Logger getLogger() { return Logger.getLogger(SQLContainer.class.getName()); } + } |