public CFBorderPane getTabViewChildrenRefListPane() {
   if (tabViewChildrenRefListPane == null) {
     Collection<ICFDbTestTableColObj> dataCollection;
     ICFDbTestEnumTypeObj focus = (ICFDbTestEnumTypeObj) getJavaFXFocusAsEnumType();
     if (focus != null) {
       dataCollection = focus.getOptionalChildrenRef(javafxIsInitializing);
     } else {
       dataCollection = null;
     }
     ICFDbTestTableObj javafxContainer;
     if ((focus != null) && (focus instanceof ICFDbTestTableObj)) {
       javafxContainer = (ICFDbTestTableObj) focus;
     } else {
       javafxContainer = null;
     }
     tabViewChildrenRefListPane =
         javafxSchema
             .getTableColFactory()
             .newListPane(
                 cfFormManager,
                 javafxContainer,
                 null,
                 dataCollection,
                 new RefreshChildrenRefList(),
                 false);
   }
   return (tabViewChildrenRefListPane);
 }
 public void refreshMe() {
   Collection<ICFDbTestTableColObj> dataCollection;
   ICFDbTestEnumTypeObj focus = (ICFDbTestEnumTypeObj) getJavaFXFocusAsEnumType();
   if (focus != null) {
     dataCollection = focus.getOptionalChildrenRef(javafxIsInitializing);
   } else {
     dataCollection = null;
   }
   CFBorderPane pane = getTabViewChildrenRefListPane();
   ICFDbTestJavaFXTableColPaneList jpList = (ICFDbTestJavaFXTableColPaneList) pane;
   jpList.setJavaFXDataCollection(dataCollection);
 }
 public void setJavaFXFocus(ICFLibAnyObj value) {
   final String S_ProcName = "setJavaFXFocus";
   if ((value == null) || (value instanceof ICFDbTestEnumTypeObj)) {
     super.setJavaFXFocus(value);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(
             getClass(), S_ProcName, "value", value, "ICFDbTestEnumTypeObj");
   }
   ((ICFDbTestJavaFXEnumTypePaneCommon) javafxAddPane).setJavaFXFocus(value);
   ICFDbTestEnumTypeObj argFocus = (ICFDbTestEnumTypeObj) value;
   if ((argFocus != null) && (!argFocus.getIsNew())) {
     argFocus = (ICFDbTestEnumTypeObj) argFocus.read(true);
     super.setJavaFXFocus(argFocus);
   }
 }
  public CFDbTestJavaFXEnumTypeAddForm(
      ICFFormManager formManager,
      ICFDbTestJavaFXSchema argSchema,
      ICFDbTestEnumTypeObj argFocus,
      ICFFormClosedCallback closeCallback,
      boolean argAllowSave) {
    super();
    final String S_ProcName = "construct-schema-focus";
    allowSave = argAllowSave;
    if (formManager == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), S_ProcName, 1, "formManager");
    }
    cfFormManager = formManager;
    formClosedCallback = closeCallback;
    if (argSchema == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), S_ProcName, 2, "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    javafxSchema = argSchema;
    javaFXFocus = argFocus;
    if ((argFocus != null) && (!argFocus.getIsNew())) {
      argFocus = (ICFDbTestEnumTypeObj) argFocus.read(true);
      javaFXFocus = argFocus;
    }
    javafxAddPane = argSchema.getEnumTypeFactory().newAddPane(cfFormManager, argFocus);

    scrollMenu = new ScrollPane();
    scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER);
    scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED);
    scrollMenu.setFitToHeight(true);
    scrollMenu.setContent(getHBoxMenu());

    setTop(scrollMenu);
    setCenter(javafxAddPane);
  }
 public void forceCancelAndClose() {
   ICFDbTestEnumTypeObj focus = getJavaFXFocusAsEnumType();
   if (focus != null) {
     ICFDbTestEnumTypeEditObj editObj = (ICFDbTestEnumTypeEditObj) focus.getEdit();
     if (editObj != null) {
       if (editObj.getIsNew()) {
         editObj.endEdit();
         setJavaFXFocus(null);
         setPaneMode(CFPane.PaneMode.Unknown);
       } else {
         editObj.endEdit();
         setPaneMode(CFPane.PaneMode.View);
       }
     }
   }
   if (cfFormManager != null) {
     if (cfFormManager.getCurrentForm() == this) {
       cfFormManager.closeCurrentForm();
     }
   }
   if (formClosedCallback != null) {
     formClosedCallback.formClosed(null);
   }
 }