diff options
author | Petri Heinonen <petri@vaadin.com> | 2012-08-23 10:09:34 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-30 15:32:23 +0300 |
commit | d8cb830c77765aeb0b2a226501dd43b42040806d (patch) | |
tree | cd3ac7ad7e08241f459bb02ba17fc51d08ca0001 /server/src/com/vaadin/navigator | |
parent | 4cd5619c1932df21e99b14b9f7bc8a98c495ab38 (diff) | |
download | vaadin-framework-d8cb830c77765aeb0b2a226501dd43b42040806d.tar.gz vaadin-framework-d8cb830c77765aeb0b2a226501dd43b42040806d.zip |
refak listeners com.vaadin.navigator
Diffstat (limited to 'server/src/com/vaadin/navigator')
-rw-r--r-- | server/src/com/vaadin/navigator/Navigator.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/server/src/com/vaadin/navigator/Navigator.java b/server/src/com/vaadin/navigator/Navigator.java index 1fa11184b9..2e2cd5ec83 100644 --- a/server/src/com/vaadin/navigator/Navigator.java +++ b/server/src/com/vaadin/navigator/Navigator.java @@ -651,18 +651,36 @@ public class Navigator implements Serializable { * @param listener * Listener to invoke after view changes. */ - public void addListener(ViewChangeListener listener) { + public void addViewChangeListener(ViewChangeListener listener) { listeners.add(listener); } /** + * @deprecated Since 7.0, replaced by + * {@link #addViewChangeListener(ViewChangeListener)} + **/ + @Deprecated + public void addListener(ViewChangeListener listener) { + addViewChangeListener(listener); + } + + /** * Remove a view change listener. * * @param listener * Listener to remove. */ - public void removeListener(ViewChangeListener listener) { + public void removeViewChangeListener(ViewChangeListener listener) { listeners.remove(listener); } + /** + * @deprecated Since 7.0, replaced by + * {@link #removeViewChangeListener(ViewChangeListener)} + **/ + @Deprecated + public void removeListener(ViewChangeListener listener) { + removeViewChangeListener(listener); + } + } |