import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.Util;
+import com.vaadin.terminal.gwt.client.VTooltip;
public class VEmbedded extends HTML implements Paintable {
private static String CLASSNAME = "v-embedded";
getElement().appendChild(el);
}
+ /*
+ * Sink tooltip events so tooltip is displayed when hovering the
+ * image.
+ */
+ sinkEvents(VTooltip.TOOLTIP_EVENTS);
+
} else if (type.equals("browser")) {
if (browserElement == null) {
setHTML("<iframe width=\"100%\" height=\"100%\" frameborder=\"0\" src=\""
if (DOM.eventGetType(event) == Event.ONLOAD) {
Util.notifyParentOfSizeChange(this, true);
}
+
+ client.handleTooltipEvent(event, this);
}
}
@Override\r
protected void setup() {\r
Embedded e = new Embedded("Embedded caption", new ThemeResource(\r
- "icons/64/ok.png"));\r
+ "../runo/icons/64/ok.png"));\r
e\r
.setDescription("Embedded tooltip, only shown on caption, not on the image");\r
addComponent(e);\r