Exemple #1
0
 public static Img getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   BaseWidget obj = BaseWidget.getRef(jsObj);
   if (obj != null) {
     return (Img) obj;
   } else {
     return new Img(jsObj);
   }
 }
Exemple #2
0
 public static Snapbar getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   BaseWidget obj = BaseWidget.getRef(jsObj);
   if (obj != null) {
     return (Snapbar) obj;
   } else {
     return new Snapbar(jsObj);
   }
 }