summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Label.java
diff options
context:
space:
mode:
authorPetri Heinonen <petri@vaadin.com>2012-08-23 13:00:17 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-30 15:32:24 +0300
commitf32d6ab1db5c4732fa3fd13ff8714db6197cc3d4 (patch)
treef2a6d30671a3bbadf2beafc9f90d2c8fd54bf871 /server/src/com/vaadin/ui/Label.java
parent181904db6aa50a10383f098f022da7d4ed801738 (diff)
downloadvaadin-framework-f32d6ab1db5c4732fa3fd13ff8714db6197cc3d4.tar.gz
vaadin-framework-f32d6ab1db5c4732fa3fd13ff8714db6197cc3d4.zip
refak listeners com.vaadin.ui
Diffstat (limited to 'server/src/com/vaadin/ui/Label.java')
-rw-r--r--server/src/com/vaadin/ui/Label.java22
1 files changed, 20 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Label.java b/server/src/com/vaadin/ui/Label.java
index 81a343e937..ff4a5dcb07 100644
--- a/server/src/com/vaadin/ui/Label.java
+++ b/server/src/com/vaadin/ui/Label.java
@@ -349,11 +349,20 @@ public class Label extends AbstractComponent implements Property<String>,
* @see com.vaadin.data.Property.ValueChangeNotifier#addListener(com.vaadin.data.Property.ValueChangeListener)
*/
@Override
- public void addListener(Property.ValueChangeListener listener) {
+ public void addValueChangeListener(Property.ValueChangeListener listener) {
addListener(Label.ValueChangeEvent.class, listener, VALUE_CHANGE_METHOD);
}
/**
+ * @deprecated Since 7.0, replaced by
+ * {@link #addValueChangeListener(com.vaadin.data.Property.ValueChangeListener)}
+ **/
+ @Deprecated
+ public void addListener(Property.ValueChangeListener listener) {
+ addValueChangeListener(listener);
+ }
+
+ /**
* Removes the value change listener.
*
* @param listener
@@ -361,12 +370,21 @@ public class Label extends AbstractComponent implements Property<String>,
* @see com.vaadin.data.Property.ValueChangeNotifier#removeListener(com.vaadin.data.Property.ValueChangeListener)
*/
@Override
- public void removeListener(Property.ValueChangeListener listener) {
+ public void removeValueChangeListener(Property.ValueChangeListener listener) {
removeListener(Label.ValueChangeEvent.class, listener,
VALUE_CHANGE_METHOD);
}
/**
+ * @deprecated Since 7.0, replaced by
+ * {@link #removeValueChangeListener(com.vaadin.data.Property.ValueChangeListener)}
+ **/
+ @Deprecated
+ public void removeListener(Property.ValueChangeListener listener) {
+ removeValueChangeListener(listener);
+ }
+
+ /**
* Emits the options change event.
*/
protected void fireValueChange() {