Example usage for com.google.gwt.dom.client IFrameElement setName

List of usage examples for com.google.gwt.dom.client IFrameElement setName

Introduction

In this page you can find the example usage for com.google.gwt.dom.client IFrameElement setName.

Prototype

public void setName(String name) 

Source Link

Document

The frame name (object of the target attribute).

Usage

From source file:com.alkacon.geranium.client.util.impl.DOMImpl.java

License:Open Source License

/**
 * Creates an iFrame element with the given name attribute.<p>
 * /* w  ww.  jav  a2s.  c o  m*/
 * @param doc the document
 * @param name the name attribute value
 * 
 * @return the iFrame element
 */
public com.google.gwt.dom.client.Element createIFrameElement(Document doc, String name) {

    IFrameElement element = doc.createIFrameElement();
    element.setName(name);
    return element;
}