List of usage examples for com.google.gwt.dom.client ParamElement setName
public void setName(String name)
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); } }