List of usage examples for com.google.gwt.user.client DOM setIntAttribute
@Deprecated public static void setIntAttribute(Element elem, String attr, int value)
From source file:com.dimdim.conference.ui.envcheck.client.layout.IFramePopup.java
License:Open Source License
public IFramePopup(String url, int contenWidth, int contentHeight) { this.setContentWidth(contenWidth + "px"); this.setContentHeight(contentHeight + "px"); this.frame = new Frame(url); this.frame.setStyleName("env-checks-helptext-frame"); Element elem = this.frame.getElement(); DOM.setIntAttribute(elem, "frameBorder", 0); DOM.setAttribute(elem, "scrolling", "no"); this.add(this.frame); this.frame.setSize("100%", "100%"); }
From source file:org.gwtwidgets.client.ui.impl.PNGImageImpl.java
License:Apache License
public Element createElement(String url, int width, int height) { Element result = DOM.createImg(); DOM.setAttribute(result, "src", url); DOM.setIntAttribute(result, "width", width); DOM.setIntAttribute(result, "height", height); return result; }