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