From 2c1f8e67a71ad1163dd5b87f070987a05dfe35c5 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 3 Feb 2014 11:31:06 +0200 Subject: [PATCH] Add SuggestionPopup to ComboBox SubParts. (#13286) Change-Id: Ibee44bb9b568fc188ac9e05fb67ce94a9846b5bc --- client/src/com/vaadin/client/ui/VFilterSelect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/com/vaadin/client/ui/VFilterSelect.java b/client/src/com/vaadin/client/ui/VFilterSelect.java index 9b14fbbb37..63c8d3dbf9 100644 --- a/client/src/com/vaadin/client/ui/VFilterSelect.java +++ b/client/src/com/vaadin/client/ui/VFilterSelect.java @@ -1983,6 +1983,8 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler, return tb.getElement(); } else if ("button".equals(subPart)) { return popupOpener.getElement(); + } else if ("popup".equals(subPart) && suggestionPopup.isAttached()) { + return suggestionPopup.getElement(); } return null; } @@ -1993,6 +1995,8 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler, return "textbox"; } else if (popupOpener.getElement().isOrHasChild(subElement)) { return "button"; + } else if (suggestionPopup.getElement().isOrHasChild(subElement)) { + return "popup"; } return null; } -- 2.39.5