List of usage examples for com.google.gwt.user.client.ui AbstractImagePrototype getSafeHtml
public SafeHtml getSafeHtml()
From source file:com.gwtcx.client.resources.ImageCell.java
License:Open Source License
public static SafeHtml makeImage(ImageResource resource) { AbstractImagePrototype proto = AbstractImagePrototype.create(resource); return proto.getSafeHtml(); }
From source file:org.dataconservancy.dcs.access.client.model.DcpTree.java
License:Apache License
private static SafeHtml makeImage(ImageResource resource) { AbstractImagePrototype proto = AbstractImagePrototype.create(resource); return proto.getSafeHtml(); }
From source file:org.komodo.web.client.panels.vdb.property.panel.AbstractPropertiesPanel.java
License:Open Source License
/** * Make icons available as SafeHtml/*from ww w. j ava 2 s .com*/ * @param resource * @return */ protected static SafeHtml makeImage(ImageResource resource) { AbstractImagePrototype proto = AbstractImagePrototype.create(resource); // String html = proto.getHTML().replace("style='", // "style='left:0px;top:0px;"); // position:absolute; // // return SafeHtmlUtils.fromTrustedString(html); return proto.getSafeHtml(); }