import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.HTML;
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
import com.vaadin.terminal.gwt.client.Util;
import com.vaadin.terminal.gwt.client.VTooltip;
private int verticalPaddingBorder = 0;
private int horizontalPaddingBorder = 0;
+ private ApplicationConnection connection;
public VLabel() {
super();
event.stopPropagation();
return;
}
+ if (connection != null) {
+ connection.handleWidgetTooltipEvent(event, this);
+ }
}
@Override
super.setText(text);
}
}
+
+ void setConnection(ApplicationConnection client) {
+ connection = client;
+ }
}
@Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
super.updateFromUIDL(uidl, client);
+ getWidgetForPaintable().setConnection(client);
if (!isRealUpdate(uidl)) {
return;
}