Beispiel #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);
   }
 }
Beispiel #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);
   }
 }
Beispiel #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);
   }
 }
Beispiel #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);
   }
 }
Beispiel #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);
    }
  }