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:
parent
98c48b199e
commit
23eaf4805a
|
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -32,7 +34,9 @@ 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue