diff options
author | Mikael Grankvist <mgrankvi@vaadin.com> | 2012-11-13 10:11:51 +0200 |
---|---|---|
committer | Mikael Grankvist <mgrankvi@vaadin.com> | 2012-11-13 10:49:00 +0200 |
commit | 46c8f62546cf177a24258787c16cb9a9fc166463 (patch) | |
tree | 498c97a9255dc8a253fe6197d7732ea2540fef5c /uitest | |
parent | 47cb9d4ccbab3df2f36b5441f65fae357e0a7d8f (diff) | |
download | vaadin-framework-46c8f62546cf177a24258787c16cb9a9fc166463.tar.gz vaadin-framework-46c8f62546cf177a24258787c16cb9a9fc166463.zip |
(#9924) Moved hierarchy code and fixed popup view to not be a LegacyComponent anymore.
Change-Id: I2d12b8876bee47030383cf4845efd49eaeee72ee
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java index 5a488e5dc5..131ab7effa 100644 --- a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxInPopupView.java @@ -1,10 +1,10 @@ package com.vaadin.tests.components.combobox; -import java.util.Map; - import com.vaadin.tests.components.TestBase; import com.vaadin.ui.ComboBox; import com.vaadin.ui.PopupView; +import com.vaadin.ui.PopupView.PopupVisibilityEvent; +import com.vaadin.ui.PopupView.PopupVisibilityListener; public class ComboBoxInPopupView extends TestBase { @@ -28,15 +28,14 @@ public class ComboBoxInPopupView extends TestBase { final ComboBox cb2 = new ComboBox(); cb2.setWidth("260px"); - PopupView pv2 = new PopupView("<u>2. focused (click)</u>", cb2) { + PopupView pv2 = new PopupView("<u>2. focused (click)</u>", cb2); + pv2.addListener(new PopupVisibilityListener() { + @Override - public void changeVariables(Object source, - Map<String, Object> variables) { - super.changeVariables(source, variables); + public void popupVisibilityChange(PopupVisibilityEvent event) { cb2.focus(); } - - }; + }); getLayout().addComponent(pv2); } |