From d4f15a897f067ff38582e3969249b1516a08f734 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 15 Apr 2011 10:05:16 +0000 Subject: [PATCH] fixes #6842, descriptions now shown from the whole component svn changeset:18319/svn branch:6.6 --- src/com/vaadin/terminal/gwt/client/ui/VUpload.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java b/src/com/vaadin/terminal/gwt/client/ui/VUpload.java index 799812396e..c654ddd88b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VUpload.java @@ -25,6 +25,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.VTooltip; /** * @@ -126,6 +127,16 @@ public class VUpload extends SimplePanel implements Paintable { panel.add(submitButton); setStyleName(CLASSNAME); + + sinkEvents(VTooltip.TOOLTIP_EVENTS); + } + + @Override + public void onBrowserEvent(Event event) { + if ((event.getTypeInt() & VTooltip.TOOLTIP_EVENTS) > 0) { + client.handleTooltipEvent(event, this); + } + super.onBrowserEvent(event); } private static native void setEncoding(Element form, String encoding) -- 2.39.5