/**
* Generates JavaScript representations of this class
*/
public String toScriptConstructor() {
JavaScriptStringFactory jsf = JavaScriptStringFactory.getInstance();
StringBuffer ctor = new StringBuffer("new Widget.EffectDesc(");
ctor.append(jsf.createJavaScriptString(name)).append(", ")
.append(jsf.createJavaScriptString(direction)).append(", ")
.append(duration).append(", ")
.append(fps).append(", ")
.append((null != params) ? params.toScript() : "null")
.append(")");
return ctor.toString();