summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPetri Heinonen <petri@vaadin.com>2012-08-22 15:55:57 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-30 15:32:19 +0300
commit45a8dae9395b6c2882a202b453609ef59a120189 (patch)
tree8d79ea305aaa9715b4fb44cc6839884766379829 /server
parent040f6d99950e3cba9eace07a4ca9de2e8d61efd4 (diff)
downloadvaadin-framework-45a8dae9395b6c2882a202b453609ef59a120189.tar.gz
vaadin-framework-45a8dae9395b6c2882a202b453609ef59a120189.zip
Refak listeners com.vaadin package
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/Application.java23
1 files changed, 21 insertions, 2 deletions
diff --git a/server/src/com/vaadin/Application.java b/server/src/com/vaadin/Application.java
index 7c80ce654a..164f04bb79 100644
--- a/server/src/com/vaadin/Application.java
+++ b/server/src/com/vaadin/Application.java
@@ -813,7 +813,7 @@ public class Application implements Terminal.ErrorListener, Serializable {
* @param listener
* the user change listener to add.
*/
- public void addListener(UserChangeListener listener) {
+ public void addUserChangeListener(UserChangeListener listener) {
if (userChangeListeners == null) {
userChangeListeners = new LinkedList<UserChangeListener>();
}
@@ -821,12 +821,22 @@ public class Application implements Terminal.ErrorListener, Serializable {
}
/**
+ * @deprecated Since 7.0, replaced by
+ * {@link #addUserChangeListener(UserChangeListener)}
+ **/
+ @Deprecated
+ public void addListener(UserChangeListener listener) {
+ addUserChangeListener(listener);
+ }
+
+ /**
* Removes the user change listener.
*
* @param listener
* the user change listener to remove.
*/
- public void removeListener(UserChangeListener listener) {
+
+ public void removeUserChangeListener(UserChangeListener listener) {
if (userChangeListeners == null) {
return;
}
@@ -837,6 +847,15 @@ public class Application implements Terminal.ErrorListener, Serializable {
}
/**
+ * @deprecated Since 7.0, replaced by
+ * {@link #removeUserChangeListener(UserChangeListener)}
+ **/
+ @Deprecated
+ public void removeListener(UserChangeListener listener) {
+ removeUserChangeListener(listener);
+ }
+
+ /**
* Window detach event.
*
* This event is sent each time a window is removed from the application