示例#1
0
文件: T.java 项目: kato-nm/Rythm
 @SuppressWarnings("unchecked")
 @Override
 public TemplateBase __setRenderArg(java.lang.String __name, java.lang.Object __arg) {
   if ("buttons".equals(__name)) this.buttons = (String) __arg;
   else if ("returnButton".equals(__name)) this.returnButton = (Boolean) __arg;
   else if ("viewButton".equals(__name)) this.viewButton = (Boolean) __arg;
   else if ("id".equals(__name)) this.id = (String) __arg;
   else if ("name".equals(__name)) this.name = (String) __arg;
   else if ("onclick".equals(__name)) this.onclick = (String) __arg;
   else if ("title".equals(__name)) this.title = (String) __arg;
   else if ("icon".equals(__name)) this.icon = (String) __arg;
   else if ("useSearch".equals(__name)) this.useSearch = (Boolean) __arg;
   else if ("imgName".equals(__name)) this.imgName = (String) __arg;
   else if ("titles".equals(__name)) this.titles = (String) __arg;
   super.__setRenderArg(__name, __arg);
   return this;
 }
示例#2
0
文件: T.java 项目: kato-nm/Rythm
 @SuppressWarnings("unchecked")
 public TemplateBase __setRenderArgs(java.util.Map<java.lang.String, java.lang.Object> __args) {
   if (null == __args) throw new NullPointerException();
   if (__args.isEmpty()) return this;
   super.__setRenderArgs(__args);
   if (__args.containsKey("buttons")) this.buttons = (String) __args.get("buttons");
   if (__args.containsKey("returnButton"))
     this.returnButton = (Boolean) __args.get("returnButton");
   if (__args.containsKey("viewButton")) this.viewButton = (Boolean) __args.get("viewButton");
   if (__args.containsKey("id")) this.id = (String) __args.get("id");
   if (__args.containsKey("name")) this.name = (String) __args.get("name");
   if (__args.containsKey("onclick")) this.onclick = (String) __args.get("onclick");
   if (__args.containsKey("title")) this.title = (String) __args.get("title");
   if (__args.containsKey("icon")) this.icon = (String) __args.get("icon");
   if (__args.containsKey("useSearch")) this.useSearch = (Boolean) __args.get("useSearch");
   if (__args.containsKey("imgName")) this.imgName = (String) __args.get("imgName");
   if (__args.containsKey("titles")) this.titles = (String) __args.get("titles");
   return this;
 }