diff options
author | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2012-05-30 12:47:06 +0000 |
---|---|---|
committer | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2012-05-30 12:47:06 +0000 |
commit | f900ad7732663d06960caa10df4a53c51965be87 (patch) | |
tree | ccab434d58f55a233b6196ed9bae263be8724514 | |
parent | e3c2e2efbed6452a365483aadfc147c4ae6ffdad (diff) | |
download | vaadin-framework-f900ad7732663d06960caa10df4a53c51965be87.tar.gz vaadin-framework-f900ad7732663d06960caa10df4a53c51965be87.zip |
VFilterSelect implements SubPartAware #8878
svn changeset:23851/svn branch:6.8
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java index 4ecb42d920..8bb2cd5b5f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java @@ -62,7 +62,7 @@ import com.vaadin.terminal.gwt.client.VTooltip; @SuppressWarnings("deprecation") public class VFilterSelect extends Composite implements Paintable, Field, KeyDownHandler, KeyUpHandler, ClickHandler, FocusHandler, BlurHandler, - Focusable { + Focusable, SubPartAware { /** * Represents a suggestion in the suggestion popup box @@ -2008,4 +2008,24 @@ public class VFilterSelect extends Composite implements Paintable, Field, super.onDetach(); suggestionPopup.hide(); } + + @Override + public Element getSubPartElement(String subPart) { + if ("textbox".equals(subPart)) { + return this.tb.getElement(); + } else if ("button".equals(subPart)) { + return this.popupOpener.getElement(); + } + return null; + } + + @Override + public String getSubPartName(Element subElement) { + if (tb.getElement().isOrHasChild(subElement)) { + return "textbox"; + } else if (popupOpener.getElement().isOrHasChild(subElement)) { + return "button"; + } + return null; + } } |