public CFBamJavaFXServerMethodViewEditPane(
     ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamServerMethodObj argFocus) {
   super();
   final String S_ProcName = "construct-schema-focus";
   if (formManager == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 1, "formManager");
   }
   cfFormManager = formManager;
   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;
   setJavaFXFocus(argFocus);
   attrPane = argSchema.getServerMethodFactory().newAttrPane(cfFormManager, argFocus);
   attrScrollPane = new ScrollPane();
   attrScrollPane.setFitToWidth(true);
   attrScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);
   attrScrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED);
   attrScrollPane.setContent(attrPane);
   eltTabPane = argSchema.getServerMethodFactory().newEltTabPane(cfFormManager, argFocus);
   setOrientation(Orientation.VERTICAL);
   getItems().add(attrScrollPane);
   getItems().add(eltTabPane);
 }
 public CFBamJavaFXRelationPickerForm(
     ICFFormManager formManager,
     ICFBamJavaFXSchema argSchema,
     ICFBamRelationObj argFocus,
     ICFBamTableObj argContainer,
     Collection<ICFBamRelationObj> argDataCollection,
     ICFBamJavaFXRelationChosen whenChosen) {
   super();
   final String S_ProcName = "construct-schema-focus";
   if (formManager == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 1, "formManager");
   }
   cfFormManager = formManager;
   if (argSchema == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 2, "argSchema");
   }
   if (whenChosen == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 6, "whenChosen");
   }
   // argFocus is optional; focus may be set later during execution as
   // conditions of the runtime change.
   javafxSchema = argSchema;
   javafxPickerPane =
       argSchema
           .getRelationFactory()
           .newPickerPane(cfFormManager, argFocus, argContainer, argDataCollection, whenChosen);
   setJavaFXFocusAsRelation(argFocus);
   setJavaFXDataCollection(argDataCollection);
   setJavaFXContainer(argContainer);
   setCenter(javafxPickerPane);
   setPaneMode(CFPane.PaneMode.View);
 }
 public CFBorderPane getTabViewComponentsColumnsListPane() {
   if (tabViewComponentsColumnsListPane == null) {
     Collection<ICFBamIndexColObj> dataCollection;
     ICFBamIndexObj focus = (ICFBamIndexObj) getJavaFXFocusAsIndex();
     if (focus != null) {
       dataCollection = focus.getOptionalComponentsColumns(javafxIsInitializing);
     } else {
       dataCollection = null;
     }
     ICFBamIndexObj javafxContainer;
     if ((focus != null) && (focus instanceof ICFBamIndexObj)) {
       javafxContainer = (ICFBamIndexObj) focus;
     } else {
       javafxContainer = null;
     }
     tabViewComponentsColumnsListPane =
         javafxSchema
             .getIndexColFactory()
             .newListPane(
                 cfFormManager,
                 javafxContainer,
                 null,
                 dataCollection,
                 new RefreshComponentsColumnsList(),
                 true);
   }
   return (tabViewComponentsColumnsListPane);
 }
  public CFBamJavaFXTokenColViewEditForm(
      ICFFormManager formManager,
      ICFBamJavaFXSchema argSchema,
      ICFBamTokenColObj argFocus,
      ICFFormClosedCallback closeCallback,
      boolean cameFromAdd) {
    super();
    final String S_ProcName = "construct-schema-focus";
    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 = (ICFBamTokenColObj) argFocus.read(true);
      javaFXFocus = argFocus;
    }
    javafxViewEditPane = argSchema.getTokenColFactory().newViewEditPane(cfFormManager, argFocus);

    if (cameFromAdd) {
      dataChanged = true;
    }

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

    setTop(scrollMenu);
    setCenter(javafxViewEditPane);
  }
 public CFBamJavaFXUInt64ColAskDeleteForm(
     ICFFormManager formManager,
     ICFBamJavaFXSchema argSchema,
     ICFBamUInt64ColObj argFocus,
     ICFDeleteCallback callback) {
   super();
   final String S_ProcName = "construct-schema-focus";
   if (formManager == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 1, "formManager");
   }
   cfFormManager = formManager;
   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;
   deleteCallback = callback;
   // Construct the various objects
   textAreaMessage = new CFTextArea();
   textAreaMessage.setText("Are you sure you want to delete this UInt64Col?");
   hboxButtons = new CFHBox(10);
   buttonOk = new CFButton();
   buttonOk.setMinWidth(200);
   buttonOk.setText("Ok");
   buttonOk.setOnAction(
       new EventHandler<ActionEvent>() {
         @Override
         public void handle(ActionEvent e) {
           final String S_ProcName = "actionOkPerformed";
           try {
             ICFBamUInt64ColObj obj = getJavaFXFocusAsUInt64Col();
             ICFBamUInt64ColEditObj editObj = (ICFBamUInt64ColEditObj) obj.beginEdit();
             editObj.delete();
             editObj.endEdit();
             cfFormManager.closeCurrentForm();
             if (deleteCallback != null) {
               deleteCallback.formClosed(null);
               deleteCallback.deleted(obj);
             }
           } catch (Throwable t) {
             CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t);
           }
         }
       });
   buttonCancel = new CFButton();
   buttonCancel.setMinWidth(200);
   buttonCancel.setText("Cancel");
   buttonCancel.setOnAction(
       new EventHandler<ActionEvent>() {
         @Override
         public void handle(ActionEvent e) {
           final String S_ProcName = "actionCancelPerformed";
           try {
             cfFormManager.closeCurrentForm();
             if (deleteCallback != null) {
               deleteCallback.formClosed(null);
             }
           } catch (Throwable t) {
             CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t);
           }
         }
       });
   hboxButtons.getChildren().addAll(buttonOk, buttonCancel);
   attrPane = argSchema.getUInt64ColFactory().newAttrPane(cfFormManager, argFocus);
   scrollPane = new ScrollPane();
   scrollPane.setFitToWidth(true);
   scrollPane.setHbarPolicy(ScrollBarPolicy.NEVER);
   scrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED);
   scrollPane.setContent(attrPane);
   setTop(textAreaMessage);
   setCenter(scrollPane);
   setBottom(hboxButtons);
 }