import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
+import com.google.gwt.query.client.Binder;
import com.google.gwt.query.client.Properties;
import com.google.gwt.query.client.js.JsObjectArray;
import com.google.gwt.query.client.js.JsUtils;
@SuppressWarnings("unchecked")
public <T> T set(Object key, Object val) {
- p.set(key, val);
+ if (val instanceof Binder) {
+ p.set(key, ((Binder)val).getBound());
+ } else {
+ p.set(key, val);
+ }
return (T)this;
}
} else if (type.isEnum() != null){
sw.println("p.set(\"" + name + "\", a.name());");
}else {
- sw.println("p.set(\"" + name + "\", a);");
+ sw.println("set(\"" + name + "\", a);");
}
if (!"void".equals(retType)) {
if (isTypeAssignableTo(method.getReturnType(),