Examples of callAsyncSetter()


Examples of com.habitsoft.kiyaa.rebind.typeinfo.ExpressionInfo.callAsyncSetter()

                          sw.indentln("public void setValue(Object value, AsyncCallback callback) { try {\n\t\t\t\t" +
                              accessors.callSetter(ExpressionInfo.converter("value", RuntimeClassWrapper.OBJECT, accessors.getType())) +
                                  "\n\t\t\t\tcallback.onSuccess(null); } catch(Throwable caught) { callback.onFailure(caught); } }");
                      } else if(accessors.hasAsynchronousSetter()) {
                          sw.indentln("public void setValue(Object value, AsyncCallback callback) { " +
                              accessors.callAsyncSetter(ExpressionInfo.converter("value", RuntimeClassWrapper.OBJECT, accessors.getType()), "callback")
                              +"}");
                         
                      } else {
                          sw.indentln("public void setValue(Object value, AsyncCallback callback) { callback.onFailure(null); }");
                      }
View Full Code Here

Examples of com.habitsoft.kiyaa.rebind.typeinfo.ExpressionInfo.callAsyncSetter()

                            } else if(subexpr.hasAsynchronousSetter()) {
                                asyncProxies.add("    public void "+setterName+"(final "+subexpr.getType().getParameterizedQualifiedSourceName()+" value, AsyncCallback<Void> callback) {\n"+
                                    "        "+ExpressionInfo.callAsyncGetter(getter, "new AsyncCallbackDirectProxy<Void>(callback, \""+path+"\") {\n"+
                                  "            public void onSuccess(Void result) {\n"+
                                  "                "+type.getParameterizedQualifiedSourceName()+" base = ("+type.getParameterizedQualifiedSourceName()+") result;\n"+
                                  "                "+subexpr.callAsyncSetter("value", "callback")+"\n"+
                                  "            }\n"+
                                 "        }")+";\n"+
                                  "    }");
                            }
                        } else setterName = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.