summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorBogdan Udrescu <bogdan@vaadin.com>2014-08-15 07:59:14 +0300
committerArtur Signell <artur@vaadin.com>2014-08-19 10:59:02 +0000
commitb18bf1e1f3c52e41eea044faff427af9ffde5fe8 (patch)
tree352a2f9ac04971ecca84515477494bac6a2bb453 /client
parenta3fdfaee6b9ef45c84bc586c5dd88c7ae7b2e0bb (diff)
downloadvaadin-framework-b18bf1e1f3c52e41eea044faff427af9ffde5fe8.tar.gz
vaadin-framework-b18bf1e1f3c52e41eea044faff427af9ffde5fe8.zip
TabSheet focus/blur patch for 7.3 (#14304)
Remove the listeners from VTabSheet and use them as inner. Change-Id: I65bc84fe6120abcaa01d22fcc373802f4f773bdc
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VTabsheet.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java
index aff1848647..e5afbea4b4 100644
--- a/client/src/com/vaadin/client/ui/VTabsheet.java
+++ b/client/src/com/vaadin/client/ui/VTabsheet.java
@@ -76,10 +76,7 @@ import com.vaadin.shared.ui.tabsheet.TabState;
import com.vaadin.shared.ui.tabsheet.TabsheetServerRpc;
import com.vaadin.shared.ui.tabsheet.TabsheetState;
-public class VTabsheet extends VTabsheetBase implements Focusable,
- SubPartAware,
- // TODO: These listeners are due to be removed in 7.3
- FocusHandler, BlurHandler, KeyDownHandler {
+public class VTabsheet extends VTabsheetBase implements Focusable, SubPartAware {
private static class VCloseEvent {
private Tab tab;
@@ -1532,21 +1529,6 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
}
- @Override
- public void onBlur(BlurEvent event) {
- selectionHandler.onBlur(event);
- }
-
- @Override
- public void onFocus(FocusEvent event) {
- selectionHandler.onFocus(event);
- }
-
- @Override
- public void onKeyDown(KeyDownEvent event) {
- selectionHandler.onKeyDown(event);
- }
-
/*
* The tabs selection handler instance.
*/
@@ -1570,11 +1552,9 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
*/
public void registerTab(Tab tab) {
- // TODO: change VTabsheet.this to this in 7.3
- tab.addBlurHandler(VTabsheet.this);
- tab.addFocusHandler(VTabsheet.this);
- tab.addKeyDownHandler(VTabsheet.this);
-
+ tab.addBlurHandler(this);
+ tab.addFocusHandler(this);
+ tab.addKeyDownHandler(this);
tab.addClickHandler(this);
tab.addMouseDownHandler(this);
}