aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data/util/ContainerOrderedWrapper.java
diff options
context:
space:
mode:
authorPetri Heinonen <petri@vaadin.com>2012-08-23 09:47:23 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-30 15:32:20 +0300
commite5923ad8435ad8598060be56458a5442a336c176 (patch)
tree50e4b0d0fa390d637bcc9bd18f9370e68b37f138 /server/src/com/vaadin/data/util/ContainerOrderedWrapper.java
parent8ec556b856df7f392734fd5d8551fd5be38c71fd (diff)
downloadvaadin-framework-e5923ad8435ad8598060be56458a5442a336c176.tar.gz
vaadin-framework-e5923ad8435ad8598060be56458a5442a336c176.zip
Refak addListener package com.vaadin.data.util
Diffstat (limited to 'server/src/com/vaadin/data/util/ContainerOrderedWrapper.java')
-rw-r--r--server/src/com/vaadin/data/util/ContainerOrderedWrapper.java58
1 files changed, 50 insertions, 8 deletions
diff --git a/server/src/com/vaadin/data/util/ContainerOrderedWrapper.java b/server/src/com/vaadin/data/util/ContainerOrderedWrapper.java
index d332931008..bb904f4cda 100644
--- a/server/src/com/vaadin/data/util/ContainerOrderedWrapper.java
+++ b/server/src/com/vaadin/data/util/ContainerOrderedWrapper.java
@@ -510,52 +510,94 @@ public class ContainerOrderedWrapper implements Container.Ordered,
* interface.
*/
@Override
- public void addListener(Container.ItemSetChangeListener listener) {
+ public void addItemSetChangeListener(
+ Container.ItemSetChangeListener listener) {
if (container instanceof Container.ItemSetChangeNotifier) {
((Container.ItemSetChangeNotifier) container)
- .addListener(new PiggybackListener(listener));
+ .addItemSetChangeListener(new PiggybackListener(listener));
}
}
+ /**
+ * @deprecated Since 7.0, replaced by
+ * {@link #addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener)}
+ **/
+ @Deprecated
+ public void addListener(Container.ItemSetChangeListener listener) {
+ addItemSetChangeListener(listener);
+ }
+
/*
* Removes a Item set change listener from the object. Don't add a JavaDoc
* comment here, we use the default documentation from implemented
* interface.
*/
@Override
- public void removeListener(Container.ItemSetChangeListener listener) {
+ public void removeItemSetChangeListener(
+ Container.ItemSetChangeListener listener) {
if (container instanceof Container.ItemSetChangeNotifier) {
((Container.ItemSetChangeNotifier) container)
- .removeListener(new PiggybackListener(listener));
+ .removeItemSetChangeListener(new PiggybackListener(listener));
}
}
+ /**
+ * @deprecated Since 7.0, replaced by
+ * {@link #removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener)}
+ **/
+ @Deprecated
+ public void removeListener(Container.ItemSetChangeListener listener) {
+ removeItemSetChangeListener(listener);
+ }
+
/*
* Registers a new Property set change listener for this Container. Don't
* add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
@Override
- public void addListener(Container.PropertySetChangeListener listener) {
+ public void addPropertySetChangeListener(
+ Container.PropertySetChangeListener listener) {
if (container instanceof Container.PropertySetChangeNotifier) {
((Container.PropertySetChangeNotifier) container)
- .addListener(new PiggybackListener(listener));
+ .addPropertySetChangeListener(new PiggybackListener(
+ listener));
}
}
+ /**
+ * @deprecated Since 7.0, replaced by
+ * {@link #addPropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener)}
+ **/
+ @Deprecated
+ public void addListener(Container.PropertySetChangeListener listener) {
+ addPropertySetChangeListener(listener);
+ }
+
/*
* Removes a Property set change listener from the object. Don't add a
* JavaDoc comment here, we use the default documentation from implemented
* interface.
*/
@Override
- public void removeListener(Container.PropertySetChangeListener listener) {
+ public void removePropertySetChangeListener(
+ Container.PropertySetChangeListener listener) {
if (container instanceof Container.PropertySetChangeNotifier) {
((Container.PropertySetChangeNotifier) container)
- .removeListener(new PiggybackListener(listener));
+ .removePropertySetChangeListener(new PiggybackListener(
+ listener));
}
}
+ /**
+ * @deprecated Since 7.0, replaced by
+ * {@link #removePropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener)}
+ **/
+ @Deprecated
+ public void removeListener(Container.PropertySetChangeListener listener) {
+ removePropertySetChangeListener(listener);
+ }
+
/*
* (non-Javadoc)
*