aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/NativeSelect.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/NativeSelect.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/NativeSelect.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/NativeSelect.java55
1 files changed, 9 insertions, 46 deletions
diff --git a/server/src/main/java/com/vaadin/ui/NativeSelect.java b/server/src/main/java/com/vaadin/ui/NativeSelect.java
index c7af478428..6fe619d58a 100644
--- a/server/src/main/java/com/vaadin/ui/NativeSelect.java
+++ b/server/src/main/java/com/vaadin/ui/NativeSelect.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
@@ -33,10 +33,11 @@ import com.vaadin.event.FieldEvents.FocusListener;
* better choice.
*/
@SuppressWarnings("serial")
-public class NativeSelect extends AbstractSelect implements
- FieldEvents.BlurNotifier, FieldEvents.FocusNotifier {
+public class NativeSelect extends AbstractSelect
+ implements FieldEvents.BlurNotifier, FieldEvents.FocusNotifier {
- FocusAndBlurServerRpcImpl focusBlurRpc = new FocusAndBlurServerRpcImpl(this) {
+ FocusAndBlurServerRpcImpl focusBlurRpc = new FocusAndBlurServerRpcImpl(
+ this) {
@Override
protected void fireEvent(Event event) {
@@ -68,7 +69,8 @@ public class NativeSelect extends AbstractSelect implements
public void setMultiSelect(boolean multiSelect)
throws UnsupportedOperationException {
if (multiSelect == true) {
- throw new UnsupportedOperationException("Multiselect not supported");
+ throw new UnsupportedOperationException(
+ "Multiselect not supported");
}
}
@@ -87,59 +89,20 @@ public class NativeSelect extends AbstractSelect implements
FocusListener.focusMethod);
}
- /**
- * @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 addBlurListener(BlurListener listener) {
addListener(BlurEvent.EVENT_ID, BlurEvent.class, listener,
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);
- }
-
}