Fixed gwt 2.6 Element

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-unionwizard-widget@101871 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-12-03 15:20:16 +00:00 committed by Giancarlo Panichi
parent 98c48b199e
commit 23eaf4805a
1 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package org.gcube.portlets.user.td.unionwizardwidget.client.custom;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
@ -10,6 +11,7 @@ import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.client.Event;
import com.sencha.gxt.core.client.dom.XDOM;
import com.sencha.gxt.core.client.dom.XElement;
import com.sencha.gxt.widget.core.client.Component;
/**
@ -31,8 +33,10 @@ public class IconButton extends Component implements HasClickHandlers {
SafeHtmlBuilder sb = new SafeHtmlBuilder();
this.appearance.render(sb);
setElement(XDOM.create(sb.toSafeHtml()));
XElement element=XDOM.create(sb.toSafeHtml());
setElement((Element)element);
sinkEvents(Event.ONCLICK);
}