summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-09-11 13:45:22 +0000
committerArtur Signell <artur.signell@itmill.com>2009-09-11 13:45:22 +0000
commit5f4bdb4f0f535954848857f0be741caf66fd1ce0 (patch)
treecdc6866ff3a0fcb5d1298d5641ad1caf856b24f1 /src
parentf587260938476fa09c95b9422f132ffe54ba32f5 (diff)
downloadvaadin-framework-5f4bdb4f0f535954848857f0be741caf66fd1ce0.tar.gz
vaadin-framework-5f4bdb4f0f535954848857f0be741caf66fd1ce0.zip
Fix for #3345 - Combobox should show tooltip for dropdown button
svn changeset:8741/svn branch:6.1
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
index cb1b75d42e..c0e51d7ec0 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
@@ -47,7 +47,7 @@ import com.vaadin.terminal.gwt.client.Util;
import com.vaadin.terminal.gwt.client.VTooltip;
/**
- *
+ *
* TODO needs major refactoring (to be extensible etc)
*/
public class VFilterSelect extends Composite implements Paintable, Field,
@@ -286,7 +286,7 @@ public class VFilterSelect extends Composite implements Paintable, Field,
/*
* (non-Javadoc)
- *
+ *
* @see
* com.google.gwt.user.client.ui.PopupPanel$PositionCallback#setPosition
* (int, int)
@@ -541,7 +541,15 @@ public class VFilterSelect extends Composite implements Paintable, Field,
private final SuggestionPopup suggestionPopup = new SuggestionPopup();
- private final HTML popupOpener = new HTML("");
+ private final HTML popupOpener = new HTML("") {
+ @Override
+ public void onBrowserEvent(Event event) {
+ super.onBrowserEvent(event);
+ if (client != null) {
+ client.handleTooltipEvent(event, VFilterSelect.this);
+ }
+ }
+ };
private final Image selectedItemIcon = new Image();
@@ -602,6 +610,7 @@ public class VFilterSelect extends Composite implements Paintable, Field,
});
tb.sinkEvents(VTooltip.TOOLTIP_EVENTS);
+ popupOpener.sinkEvents(VTooltip.TOOLTIP_EVENTS);
panel.add(tb);
panel.add(popupOpener);
initWidget(panel);