From 4cd5619c1932df21e99b14b9f7bc8a98c495ab38 Mon Sep 17 00:00:00 2001 From: Petri Heinonen Date: Thu, 23 Aug 2012 10:05:42 +0300 Subject: refak listeners com.vaadin.event --- server/src/com/vaadin/event/FieldEvents.java | 42 +++++++++++++++++++++++++ server/src/com/vaadin/event/ItemClickEvent.java | 14 +++++++++ server/src/com/vaadin/event/LayoutEvents.java | 14 +++++++++ 3 files changed, 70 insertions(+) (limited to 'server/src') diff --git a/server/src/com/vaadin/event/FieldEvents.java b/server/src/com/vaadin/event/FieldEvents.java index 8e247a6fef..10df08291e 100644 --- a/server/src/com/vaadin/event/FieldEvents.java +++ b/server/src/com/vaadin/event/FieldEvents.java @@ -59,6 +59,13 @@ public interface FieldEvents { * @see FocusListener * @since 6.2 */ + public void addFocusListener(FocusListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addFocusListener(FocusListener)} + **/ + @Deprecated public void addListener(FocusListener listener); /** @@ -68,6 +75,13 @@ public interface FieldEvents { * @see FocusListener * @since 6.2 */ + public void removeFocusListener(FocusListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeFocusListener(FocusListener)} + **/ + @Deprecated public void removeListener(FocusListener listener); } @@ -97,6 +111,13 @@ public interface FieldEvents { * @see BlurListener * @since 6.2 */ + public void addBlurListener(BlurListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addBlurListener(BlurListener)} + **/ + @Deprecated public void addListener(BlurListener listener); /** @@ -106,6 +127,13 @@ public interface FieldEvents { * @see BlurListener * @since 6.2 */ + public void removeBlurListener(BlurListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeBlurListener(BlurListener)} + **/ + @Deprecated public void removeListener(BlurListener listener); } @@ -257,8 +285,22 @@ public interface FieldEvents { * {@link TextChangeListener}s. */ public interface TextChangeNotifier extends Serializable { + public void addTextChangeListener(TextChangeListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addTextChangeListener(TextChangeListener)} + **/ + @Deprecated public void addListener(TextChangeListener listener); + public void removeTextChangeListener(TextChangeListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeTextChangeListener(TextChangeListener)} + **/ + @Deprecated public void removeListener(TextChangeListener listener); } diff --git a/server/src/com/vaadin/event/ItemClickEvent.java b/server/src/com/vaadin/event/ItemClickEvent.java index c736353614..99c36cf51b 100644 --- a/server/src/com/vaadin/event/ItemClickEvent.java +++ b/server/src/com/vaadin/event/ItemClickEvent.java @@ -119,6 +119,13 @@ public class ItemClickEvent extends ClickEvent implements Serializable { * @param listener * ItemClickListener to be registered */ + public void addItemClickListener(ItemClickListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addItemClickListener(ItemClickListener)} + **/ + @Deprecated public void addListener(ItemClickListener listener); /** @@ -127,6 +134,13 @@ public class ItemClickEvent extends ClickEvent implements Serializable { * @param listener * ItemClickListener to be removed */ + public void removeItemClickListener(ItemClickListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeItemClickListener(ItemClickListener)} + **/ + @Deprecated public void removeListener(ItemClickListener listener); } diff --git a/server/src/com/vaadin/event/LayoutEvents.java b/server/src/com/vaadin/event/LayoutEvents.java index 7fc6e5a42d..7f88ddc640 100644 --- a/server/src/com/vaadin/event/LayoutEvents.java +++ b/server/src/com/vaadin/event/LayoutEvents.java @@ -78,6 +78,13 @@ public interface LayoutEvents { * @param listener * The listener to add */ + public void addLayoutClickListener(LayoutClickListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #addLayoutClickListener(LayoutClickListener)} + **/ + @Deprecated public void addListener(LayoutClickListener listener); /** @@ -86,6 +93,13 @@ public interface LayoutEvents { * @param listener * LayoutClickListener to be removed */ + public void removeLayoutClickListener(LayoutClickListener listener); + + /** + * @deprecated Since 7.0, replaced by + * {@link #removeLayoutClickListener(LayoutClickListener)} + **/ + @Deprecated public void removeListener(LayoutClickListener listener); } -- cgit v1.2.3