summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-11-25 17:59:01 +0200
committerVaadin Code Review <review@vaadin.com>2016-11-28 07:58:06 +0000
commit051bac514c04c76c4291c106cd77dc9ea1255ac8 (patch)
tree7ed9bafe7ea61f96c3b03627b8e1414de6ce9412 /client
parent0090a4823226a6ded49ea373a3cd4a317090f3d5 (diff)
downloadvaadin-framework-051bac514c04c76c4291c106cd77dc9ea1255ac8.tar.gz
vaadin-framework-051bac514c04c76c4291c106cd77dc9ea1255ac8.zip
Add state classes for Abstract(Single)ComponentContainer
Change-Id: I6939fbc6f7aed0897f50b19f85fb62d0b8368cc7
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
index c2bf273e7d..858b21d308 100644
--- a/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
@@ -60,6 +60,7 @@ import com.vaadin.shared.EventId;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.TabIndexState;
+import com.vaadin.shared.ui.ui.UIState;
public abstract class AbstractComponentConnector extends AbstractConnector
implements ComponentConnector, HasErrorIndicator {
@@ -437,6 +438,11 @@ public abstract class AbstractComponentConnector extends AbstractConnector
// + Util.getSimpleName(getWidget())
// + " which does not implement Focusable");
}
+ } else if (getState() instanceof UIState
+ && getWidget() instanceof Focusable) {
+ // UI behaves like a component with TabIndexState
+ ((Focusable) getWidget())
+ .setTabIndex(((UIState) getState()).tabIndex);
}
Profiler.leave(
"AbstractComponentConnector.onStateChanged update tab index");