diff options
author | Petri Heinonen <petri@vaadin.com> | 2012-08-23 09:57:20 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-30 15:32:21 +0300 |
commit | f7a91d3f35c634cf1621445fa75d3b7f67016495 (patch) | |
tree | 2890fd7bfcede62b1d62eaad52321ae745a36a15 /server/src/com/vaadin/data/util/sqlcontainer | |
parent | 45e16c7e2bc1afe3d773c84e070c476966dc8413 (diff) | |
download | vaadin-framework-f7a91d3f35c634cf1621445fa75d3b7f67016495.tar.gz vaadin-framework-f7a91d3f35c634cf1621445fa75d3b7f67016495.zip |
refak listeners com.vaadin.data.util.sqlcontainer.query
Diffstat (limited to 'server/src/com/vaadin/data/util/sqlcontainer')
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/query/QueryDelegate.java | 16 | ||||
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java | 22 |
2 files changed, 36 insertions, 2 deletions
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/query/QueryDelegate.java b/server/src/com/vaadin/data/util/sqlcontainer/query/QueryDelegate.java index 3e1866932b..10a710e823 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/query/QueryDelegate.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/query/QueryDelegate.java @@ -210,6 +210,14 @@ public interface QueryDelegate extends Serializable { * @param listener * listener to be added */ + public void addRowIdChangeListener( + QueryDelegate.RowIdChangeListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addRowIdChangeListener(RowIdChangeListener)} + **/ + @Deprecated public void addListener(QueryDelegate.RowIdChangeListener listener); /** @@ -218,6 +226,14 @@ public interface QueryDelegate extends Serializable { * @param listener * listener to be removed */ + public void removeRowIdChangeListener( + QueryDelegate.RowIdChangeListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeRowIdChangeListener(RowIdChangeListener)} + **/ + @Deprecated public void removeListener(QueryDelegate.RowIdChangeListener listener); } } diff --git a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java index e4544a491a..a6a1a5a8fb 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/query/TableQuery.java @@ -704,7 +704,7 @@ public class TableQuery implements QueryDelegate, * Adds RowIdChangeListener to this query */ @Override - public void addListener(RowIdChangeListener listener) { + public void addRowIdChangeListener(RowIdChangeListener listener) { if (rowIdChangeListeners == null) { rowIdChangeListeners = new LinkedList<QueryDelegate.RowIdChangeListener>(); } @@ -712,15 +712,33 @@ public class TableQuery implements QueryDelegate, } /** + * @deprecated Since 7.0, replaced by + * {@link #addRowIdChangeListener(com.vaadin.data.util.sqlcontainer.query.QueryDelegate.RowIdChangeListener)} + **/ + @Deprecated + public void addListener(RowIdChangeListener listener) { + addRowIdChangeListener(listener); + } + + /** * Removes the given RowIdChangeListener from this query */ @Override - public void removeListener(RowIdChangeListener listener) { + public void removeRowIdChangeListener(RowIdChangeListener listener) { if (rowIdChangeListeners != null) { rowIdChangeListeners.remove(listener); } } + /** + * @deprecated Since 7.0, replaced by + * {@link #removeRowIdChangeListener(com.vaadin.data.util.sqlcontainer.query.QueryDelegate.RowIdChangeListener)} + **/ + @Deprecated + public void removeListener(RowIdChangeListener listener) { + removeRowIdChangeListener(listener); + } + private static final Logger getLogger() { return Logger.getLogger(TableQuery.class.getName()); } |