summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-03-06 14:55:15 +0200
committerVaadin Code Review <review@vaadin.com>2013-03-12 12:16:33 +0000
commit36a201f22f66989bf7a78ce8afce1ee64aaa0a22 (patch)
tree2e0957f0d65734e5bfe2e9242a196b387a44d21c /server/src/com/vaadin
parent6922bc5b49c5551b289a5025ccd5901e2ac3aafc (diff)
downloadvaadin-framework-36a201f22f66989bf7a78ce8afce1ee64aaa0a22.tar.gz
vaadin-framework-36a201f22f66989bf7a78ce8afce1ee64aaa0a22.zip
Fixed focus and tab index handling for UI (#11129)
Change-Id: I80377792ade11946337e2900a7ea84209ae1d060
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/ui/UI.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java
index d12c8d89c9..796d1f08ea 100644
--- a/server/src/com/vaadin/ui/UI.java
+++ b/server/src/com/vaadin/ui/UI.java
@@ -78,7 +78,7 @@ import com.vaadin.util.CurrentInstance;
* @since 7.0
*/
public abstract class UI extends AbstractSingleComponentContainer implements
- Action.Container, Action.Notifier, LegacyComponent {
+ Action.Container, Action.Notifier, LegacyComponent, Focusable {
/**
* The application to which this UI belongs
@@ -184,6 +184,11 @@ public abstract class UI extends AbstractSingleComponentContainer implements
}
@Override
+ protected UIState getState(boolean markAsDirty) {
+ return (UIState) super.getState(markAsDirty);
+ }
+
+ @Override
public Class<? extends UIState> getStateType() {
// This is a workaround for a problem with creating the correct state
// object during build
@@ -1039,4 +1044,14 @@ public abstract class UI extends AbstractSingleComponentContainer implements
}
super.setContent(content);
}
+
+ @Override
+ public void setTabIndex(int tabIndex) {
+ getState().tabIndex = tabIndex;
+ }
+
+ @Override
+ public int getTabIndex() {
+ return getState(false).tabIndex;
+ }
}