diff options
author | Artur Signell <artur@vaadin.com> | 2012-03-14 15:04:55 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-14 16:01:21 +0200 |
commit | 21a8ed6f269cced8dbed199f24efd50a212444a3 (patch) | |
tree | b78d7189b097caecb8a05060242156f6d8e35146 /src | |
parent | 3256e0421d03e548f124a22cfabfe50406a11ac1 (diff) | |
download | vaadin-framework-21a8ed6f269cced8dbed199f24efd50a212444a3.tar.gz vaadin-framework-21a8ed6f269cced8dbed199f24efd50a212444a3.zip |
Made TabSheet compatible with older TestBench scripts
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ComponentLocator.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java index ae9f077912..f6aaf3edd3 100644 --- a/src/com/vaadin/terminal/gwt/client/ComponentLocator.java +++ b/src/com/vaadin/terminal/gwt/client/ComponentLocator.java @@ -14,6 +14,7 @@ import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ui.SubPartAware; import com.vaadin.terminal.gwt.client.ui.VGridLayout; import com.vaadin.terminal.gwt.client.ui.VMeasuringOrderedLayout; +import com.vaadin.terminal.gwt.client.ui.VTabsheetPanel; import com.vaadin.terminal.gwt.client.ui.VView; import com.vaadin.terminal.gwt.client.ui.VWindow; @@ -465,6 +466,12 @@ public class ComponentLocator { continue; } + if (w instanceof VTabsheetPanel && !"0".equals(indexString)) { + // TabSheetPanel now only contains 1 connector => the index + // is always 0 which indicates the widget in the active tab + indexString = "0"; + } + /* * The new grid and ordered layotus do not contain * ChildComponentContainer widgets. This is instead simulated by |