]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #6842, descriptions now shown from the whole component
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 15 Apr 2011 10:05:16 +0000 (10:05 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 15 Apr 2011 10:05:16 +0000 (10:05 +0000)
svn changeset:18319/svn branch:6.6

src/com/vaadin/terminal/gwt/client/ui/VUpload.java

index 799812396e896e2218cb40c2c7fb174a2becd1da..c654ddd88b79e456549406bac5553c7eab4cf247 100644 (file)
@@ -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)