diff options
author | Petri Heinonen <petri@vaadin.com> | 2012-08-23 10:05:42 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-30 15:32:22 +0300 |
commit | 4cd5619c1932df21e99b14b9f7bc8a98c495ab38 (patch) | |
tree | f4458f784fd2a9ea3bd3f15764bd15b73fa1014b /server/src/com/vaadin | |
parent | f7a91d3f35c634cf1621445fa75d3b7f67016495 (diff) | |
download | vaadin-framework-4cd5619c1932df21e99b14b9f7bc8a98c495ab38.tar.gz vaadin-framework-4cd5619c1932df21e99b14b9f7bc8a98c495ab38.zip |
refak listeners com.vaadin.event
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r-- | server/src/com/vaadin/event/FieldEvents.java | 42 | ||||
-rw-r--r-- | server/src/com/vaadin/event/ItemClickEvent.java | 14 | ||||
-rw-r--r-- | server/src/com/vaadin/event/LayoutEvents.java | 14 |
3 files changed, 70 insertions, 0 deletions
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); } |