aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/AbstractFocusable.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-14 12:07:18 +0300
committerVaadin Code Review <review@vaadin.com>2016-08-15 09:46:08 +0000
commit45034ab571c5d185f5faa58b958ad9f258a0bff4 (patch)
tree62ee06403b69c30a5307795bcda2e0c976bafc49 /server/src/main/java/com/vaadin/ui/AbstractFocusable.java
parent82b39d54397caeca053b995c358e956effbb82fa (diff)
downloadvaadin-framework-45034ab571c5d185f5faa58b958ad9f258a0bff4.tar.gz
vaadin-framework-45034ab571c5d185f5faa58b958ad9f258a0bff4.zip
Remove deprecated addListener/removeListener methods
Change-Id: I74c8bda4bf53340a6deb1fcd5bd8db87b502c856
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/AbstractFocusable.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractFocusable.java52
1 files changed, 6 insertions, 46 deletions
diff --git a/server/src/main/java/com/vaadin/ui/AbstractFocusable.java b/server/src/main/java/com/vaadin/ui/AbstractFocusable.java
index ad3b96f29b..c41b117b01 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractFocusable.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractFocusable.java
@@ -1,12 +1,12 @@
/*
* Copyright 2000-2014 Vaadin Ltd.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -28,12 +28,12 @@ import com.vaadin.ui.Component.Focusable;
/**
* An abstract base class for focusable components. Includes API for setting the
* tab index, programmatic focusing, and adding focus and blur listeners.
- *
+ *
* @since 7.6
* @author Vaadin Ltd
*/
-public abstract class AbstractFocusable extends AbstractComponent implements
- Focusable, FocusNotifier, BlurNotifier {
+public abstract class AbstractFocusable extends AbstractComponent
+ implements Focusable, FocusNotifier, BlurNotifier {
protected AbstractFocusable() {
registerRpc(new FocusAndBlurServerRpcImpl(this) {
@@ -50,31 +50,11 @@ public abstract class AbstractFocusable extends AbstractComponent implements
BlurListener.blurMethod);
}
- /**
- * @deprecated As of 7.0, replaced by {@link #addBlurListener(BlurListener)}
- */
- @Override
- @Deprecated
- public void addListener(BlurListener listener) {
- addBlurListener(listener);
- }
-
@Override
public void removeBlurListener(BlurListener listener) {
removeListener(BlurEvent.EVENT_ID, BlurEvent.class, listener);
}
- /**
- * @deprecated As of 7.0, replaced by
- * {@link #removeBlurListener(BlurListener)}
- */
- @Override
- @Deprecated
- public void removeListener(BlurListener listener) {
- removeBlurListener(listener);
-
- }
-
@Override
public void addFocusListener(FocusListener listener) {
addListener(FocusEvent.EVENT_ID, FocusEvent.class, listener,
@@ -82,31 +62,11 @@ public abstract class AbstractFocusable extends AbstractComponent implements
}
- /**
- * @deprecated As of 7.0, replaced by
- * {@link #addFocusListener(FocusListener)}
- */
- @Override
- @Deprecated
- public void addListener(FocusListener listener) {
- addFocusListener(listener);
- }
-
@Override
public void removeFocusListener(FocusListener listener) {
removeListener(FocusEvent.EVENT_ID, FocusEvent.class, listener);
}
- /**
- * @deprecated As of 7.0, replaced by
- * {@link #removeFocusListener(FocusListener)}
- */
- @Override
- @Deprecated
- public void removeListener(FocusListener listener) {
- removeFocusListener(listener);
- }
-
@Override
public void focus() {
super.focus();