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

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

Introduction

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

Prototype

public void setName(String name) 

Source Link

Document

The name of a run-time parameter.

Usage

From source file:com.bramosystems.oss.player.core.client.spi.PlayerElement.java

License:Apache License

/**
 * Adds the specified parameters to the element.  The parameters are used as HTML params tags in the
 * eventual HTML DOM object//from   w w w.j  a  va2 s .  c  o m
 * 
 * @param name the name of the parameter
 * @param value the value of the parameter
 */
public final void addParam(String name, String value) {
    switch (type) {
    case ObjectElement:
    case ObjectElementIE:
        ParamElement param = _doc.createParamElement();
        param.setName(name);
        param.setValue(value);
        e.appendChild(param);
        break;
    case EmbedElement:
    case VideoElement:
    case IFrameElement:
        e.setAttribute(name, value);
    }
}