Пример #1
0
 public static Facet getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   RefDataClass obj = RefDataClass.getRef(jsObj);
   if (obj != null) {
     obj.setJsObj(jsObj);
     return (Facet) obj;
   } else {
     return new Facet(jsObj);
   }
 }
Пример #2
0
 public static TileRecord getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   RefDataClass obj = RefDataClass.getRef(jsObj);
   if (obj != null && obj instanceof TileRecord) {
     obj.setJsObj(jsObj);
     return (TileRecord) obj;
   } else {
     return new TileRecord(jsObj);
   }
 }
Пример #3
0
 public static TimeItem getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   RefDataClass obj = RefDataClass.getRef(jsObj);
   if (obj != null) {
     obj.setJsObj(jsObj);
     return (TimeItem) obj;
   } else {
     return new TimeItem(jsObj);
   }
 }
Пример #4
0
 public static CellRecord getOrCreateRef(JavaScriptObject jsObj) {
   if (jsObj == null) return null;
   RefDataClass obj = RefDataClass.getRef(jsObj);
   if (obj != null) {
     obj.setJsObj(jsObj);
     return (CellRecord) obj;
   } else {
     return new CellRecord(jsObj);
   }
 }
Пример #5
0
  public static FiscalCalendar getOrCreateRef(JavaScriptObject jsObj) {

    if (jsObj == null) return null;

    RefDataClass obj = RefDataClass.getRef(jsObj);

    if (obj != null) {
      obj.setJsObj(jsObj);
      return (FiscalCalendar) obj;
    } else {
      return new FiscalCalendar(jsObj);
    }
  }