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

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

Introduction

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

Prototype

public void setValue(String value) 

Source Link

Document

The value 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// w w  w  .jav a2 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);
    }
}