public CFBamJavaFXUInt32TypeAddPane( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamUInt32TypeObj 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.getUInt32TypeFactory().newAttrPane(cfFormManager, argFocus); attrScrollPane = new ScrollPane(attrPane); attrScrollPane.setFitToWidth(true); attrScrollPane.setHbarPolicy(ScrollBarPolicy.NEVER); attrScrollPane.setVbarPolicy(ScrollBarPolicy.AS_NEEDED); attrScrollPane.setContent(attrPane); setOrientation(Orientation.VERTICAL); getItems().add(attrScrollPane); }
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 void chose(ICFLibAnyObj value) { final String S_ProcName = "chose"; Node cont; ICFAsteriskSchemaObj schemaObj = (ICFAsteriskSchemaObj) javafxSchema.getSchema(); ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); ICFAsteriskExtensionsConfEditObj editObj = (ICFAsteriskExtensionsConfEditObj) focus.getEdit(); if (editObj != null) { focus = editObj; } ICFSecurityHostNodeObj referencedObj = (ICFSecurityHostNodeObj) javafxReferenceParentHostNode.getReferencedObject(); java.util.List<ICFSecurityHostNodeObj> listOfHostNode = null; CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); listOfHostNode = schemaObj.getHostNodeTableObj().readHostNodeByClusterIdx(containingClusterId); if (listOfHostNode == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "listOfHostNode"); } Collection<ICFSecurityHostNodeObj> cltn = listOfHostNode; CFBorderPane form = javafxSchema .getHostNodeFactory() .newPickerForm( cfFormManager, referencedObj, null, cltn, new CallbackHostNodeChosen()); ((ICFSecurityJavaFXHostNodePaneCommon) form).setPaneMode(CFPane.PaneMode.View); cfFormManager.pushForm(form); }
public void view(ICFLibAnyObj value) { final String S_ProcName = "actionPerformed"; ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); if (focus != null) { ICFSecurityHostNodeObj referencedObj = (ICFSecurityHostNodeObj) javafxReferenceParentHostNode.getReferencedObject(); CFBorderPane form = null; if (referencedObj != null) { String classCode = referencedObj.getClassCode(); if ("HSND".equals(classCode)) { form = javafxSchema .getHostNodeFactory() .newAddForm(cfFormManager, referencedObj, null, true); ICFSecurityJavaFXHostNodePaneCommon spec = (ICFSecurityJavaFXHostNodePaneCommon) form; spec.setJavaFXFocus(referencedObj); spec.setPaneMode(CFPane.PaneMode.View); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "javaFXFocus", focus, "ICFAsteriskHostNodeObj"); } cfFormManager.pushForm(form); } } }
public void setCFFormManager(ICFFormManager value) { final String S_ProcName = "setCFFormManager"; if (value == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "value"); } cfFormManager = value; }
public CFDbTestJavaFXDoubleDefFactory(ICFDbTestJavaFXSchema argSchema) { final String S_ProcName = "construct-schema"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(this.getClass(), S_ProcName, 1, "argSchema"); } javafxSchema = argSchema; }
public void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFAccInvoiceObj)) { super.setJavaFXFocus(value); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), S_ProcName, "value", value, "ICFAccInvoiceObj"); } }
public void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFBamBlobDefObj)) { super.setJavaFXFocus(value); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), S_ProcName, "value", value, "ICFBamBlobDefObj"); } ((ICFBamJavaFXBlobDefPaneCommon) javafxPickerPane).setJavaFXFocus((ICFBamBlobDefObj) value); }
public void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFSecuritySysClusterObj)) { super.setJavaFXFocus(value); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "value", value, "ICFSecuritySysClusterObj"); } adjustFinderButtons(); }
public CFBamJavaFXFloatDefEltTabPane( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamFloatDefObj 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; setJavaFXFocusAsFloatDef(argFocus); // Wire the newly constructed Panes/Tabs to this TabPane javafxIsInitializing = false; }
public CFDbTestJavaFXNmTokenTypeViewEditForm( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestNmTokenTypeObj 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 = (ICFDbTestNmTokenTypeObj) argFocus.read(true); javaFXFocus = argFocus; } javafxViewEditPane = argSchema.getNmTokenTypeFactory().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 void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFBamBoolColObj)) { super.setJavaFXFocus(value); if ((attrPane != null) && (attrPane.getJavaFXFocus() != value)) { attrPane.setJavaFXFocus(value); } } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), S_ProcName, "value", value, "ICFBamBoolColObj"); } }
public void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFAsteriskExtensionsConfObj)) { super.setJavaFXFocus(value); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "value", value, "ICFAsteriskExtensionsConfObj"); } populateFields(); adjustComponentEnableStates(); }
public CFBamJavaFXServerMethodAddForm( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamServerMethodObj 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 = (ICFBamServerMethodObj) argFocus.read(true); javaFXFocus = argFocus; } javafxAddPane = argSchema.getServerMethodFactory().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 CFDbTestJavaFXEnumTypeEltTabPane( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestEnumTypeObj 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; setJavaFXFocusAsEnumType(argFocus); // Wire the newly constructed Panes/Tabs to this TabPane tabChildrenRef = new CFTab(); tabChildrenRef.setText(LABEL_TabChildrenRefList); tabChildrenRef.setContent(getTabViewChildrenRefListPane()); getTabs().add(tabChildrenRef); javafxIsInitializing = false; }
public void setPaneMode(CFPane.PaneMode value) { final String S_ProcName = "setPaneMode"; CFPane.PaneMode oldValue = getPaneMode(); if (oldValue == value) { return; } if (value != CFPane.PaneMode.View) { throw CFLib.getDefaultExceptionFactory() .newUsageException(getClass(), S_ProcName, "PickerForms only support PaneMode View"); } super.setPaneMode(value); if (javafxPickerPane != null) { ICFBamJavaFXBlobDefPaneCommon jpanelCommon = (ICFBamJavaFXBlobDefPaneCommon) javafxPickerPane; jpanelCommon.setPaneMode(value); } }
public void setJavaFXFocus(ICFLibAnyObj value) { final String S_ProcName = "setJavaFXFocus"; if ((value == null) || (value instanceof ICFDbTestNmTokenTypeObj)) { super.setJavaFXFocus(value); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "value", value, "ICFDbTestNmTokenTypeObj"); } ((ICFDbTestJavaFXNmTokenTypePaneCommon) javafxViewEditPane).setJavaFXFocus(value); ICFDbTestNmTokenTypeObj argFocus = (ICFDbTestNmTokenTypeObj) value; if ((argFocus != null) && (!argFocus.getIsNew())) { argFocus = (ICFDbTestNmTokenTypeObj) argFocus.read(true); super.setJavaFXFocus(argFocus); } }
public void setPaneMode(CFPane.PaneMode value) { final String S_ProcName = "setPaneMode"; CFPane.PaneMode oldMode = getPaneMode(); if (oldMode == value) { return; } if ((value != CFPane.PaneMode.Unknown) && (value != CFPane.PaneMode.View) && (value != CFPane.PaneMode.Delete)) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "AskDeleteForms only support PaneMode Unknown, View or Delete"); } super.setPaneMode(value); if (attrPane != null) { ((ICFDbTestJavaFXOptFullRangePaneCommon) attrPane).setPaneMode(value); } }
public void postFields() { final String S_ProcName = "postFields"; ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); ICFAsteriskExtensionsConfEditObj editObj; if (focus != null) { editObj = (ICFAsteriskExtensionsConfEditObj) (focus.getEdit()); } else { editObj = null; } if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Pane is unfocused or is not editing the focus object"); } javafxParentHostNodeObj = (ICFSecurityHostNodeObj) (javafxReferenceParentHostNode.getReferencedObject()); editObj.setRequiredParentHostNode(javafxParentHostNodeObj); editObj.setRequiredFileFullName(getJavaFXEditorFileFullName().getStringValue()); editObj.setRequiredFileContents(getJavaFXEditorFileContents().getTextValue()); }
public CFBamJavaFXFloatTypeListPane( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamSchemaDefObj argContainer, ICFBamFloatTypeObj argFocus, Collection<ICFBamFloatTypeObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { 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; javafxContainer = argContainer; javafxRefreshCallback = refreshCallback; javafxSortByChain = sortByChain; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFBamFloatTypeObj>(); tableColumnId = new TableColumn<ICFBamFloatTypeObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamFloatTypeObj, Long> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnId.setCellFactory( new Callback<TableColumn<ICFBamFloatTypeObj, Long>, TableCell<ICFBamFloatTypeObj, Long>>() { @Override public TableCell<ICFBamFloatTypeObj, Long> call( TableColumn<ICFBamFloatTypeObj, Long> arg) { return new CFInt64TableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamFloatTypeObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnName.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnShortName = new TableColumn<ICFBamFloatTypeObj, String>("ShortName"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalShortName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnShortName.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamFloatTypeObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalLabel(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnLabel.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamFloatTypeObj, String>("ShortDescription"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalShortDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnShortDescription.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamFloatTypeObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDescription.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnIsNullable = new TableColumn<ICFBamFloatTypeObj, Boolean>("IsNullable"); tableColumnIsNullable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatTypeObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredIsNullable(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnIsNullable.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Boolean>, TableCell<ICFBamFloatTypeObj, Boolean>>() { @Override public TableCell<ICFBamFloatTypeObj, Boolean> call( TableColumn<ICFBamFloatTypeObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnIsNullable); tableColumnGenerateId = new TableColumn<ICFBamFloatTypeObj, Boolean>("GenerateId"); tableColumnGenerateId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatTypeObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { Boolean value = obj.getOptionalGenerateId(); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(value); return (observable); } } }); tableColumnGenerateId.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Boolean>, TableCell<ICFBamFloatTypeObj, Boolean>>() { @Override public TableCell<ICFBamFloatTypeObj, Boolean> call( TableColumn<ICFBamFloatTypeObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnGenerateId); tableColumnDataScope = new TableColumn<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum>("DataScope"); tableColumnDataScope.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum>, ObservableValue<ICFBamSchema.DataScopeEnum>>() { public ObservableValue<ICFBamSchema.DataScopeEnum> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.DataScopeEnum value = obj.getOptionalDataScope(); ReadOnlyObjectWrapper<ICFBamSchema.DataScopeEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.DataScopeEnum>(); observable.setValue(value); return (observable); } } }); tableColumnDataScope.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum>, TableCell<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum> arg) { return new CFEnumTableCell<ICFBamFloatTypeObj, ICFBamSchema.DataScopeEnum>(); } }); dataTable.getColumns().add(tableColumnDataScope); tableColumnViewAccessSecurity = new TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>("ViewAccessSecurity"); tableColumnViewAccessSecurity.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>, ObservableValue<ICFBamSchema.AccessSecurityEnum>>() { public ObservableValue<ICFBamSchema.AccessSecurityEnum> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessSecurityEnum value = obj.getOptionalViewAccessSecurity(); ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum>(); observable.setValue(value); return (observable); } } }); tableColumnViewAccessSecurity.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>, TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> arg) { return new CFEnumTableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>(); } }); dataTable.getColumns().add(tableColumnViewAccessSecurity); tableColumnEditAccessSecurity = new TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>("EditAccessSecurity"); tableColumnEditAccessSecurity.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>, ObservableValue<ICFBamSchema.AccessSecurityEnum>>() { public ObservableValue<ICFBamSchema.AccessSecurityEnum> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessSecurityEnum value = obj.getOptionalEditAccessSecurity(); ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum>(); observable.setValue(value); return (observable); } } }); tableColumnEditAccessSecurity.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>, TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum> arg) { return new CFEnumTableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessSecurityEnum>(); } }); dataTable.getColumns().add(tableColumnEditAccessSecurity); tableColumnViewAccessFrequency = new TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>( "ViewAccessFrequency"); tableColumnViewAccessFrequency.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>, ObservableValue<ICFBamSchema.AccessFrequencyEnum>>() { public ObservableValue<ICFBamSchema.AccessFrequencyEnum> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessFrequencyEnum value = obj.getOptionalViewAccessFrequency(); ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum>(); observable.setValue(value); return (observable); } } }); tableColumnViewAccessFrequency.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>, TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> arg) { return new CFEnumTableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>(); } }); dataTable.getColumns().add(tableColumnViewAccessFrequency); tableColumnEditAccessFrequency = new TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>( "EditAccessFrequency"); tableColumnEditAccessFrequency.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>, ObservableValue<ICFBamSchema.AccessFrequencyEnum>>() { public ObservableValue<ICFBamSchema.AccessFrequencyEnum> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessFrequencyEnum value = obj.getOptionalEditAccessFrequency(); ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum>(); observable.setValue(value); return (observable); } } }); tableColumnEditAccessFrequency.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>, TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum> arg) { return new CFEnumTableCell<ICFBamFloatTypeObj, ICFBamSchema.AccessFrequencyEnum>(); } }); dataTable.getColumns().add(tableColumnEditAccessFrequency); tableColumnDefaultVisibility = new TableColumn<ICFBamFloatTypeObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatTypeObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredDefaultVisibility(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnDefaultVisibility.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Boolean>, TableCell<ICFBamFloatTypeObj, Boolean>>() { @Override public TableCell<ICFBamFloatTypeObj, Boolean> call( TableColumn<ICFBamFloatTypeObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnDbName = new TableColumn<ICFBamFloatTypeObj, String>("DbName"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatTypeObj, String> p) { ICFBamAtomObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalDbName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDbName.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, String>, TableCell<ICFBamFloatTypeObj, String>>() { @Override public TableCell<ICFBamFloatTypeObj, String> call( TableColumn<ICFBamFloatTypeObj, String> arg) { return new CFStringTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnInitValue = new TableColumn<ICFBamFloatTypeObj, Float>("InitValue"); tableColumnInitValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalInitValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnInitValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnInitValue); tableColumnDefaultValue = new TableColumn<ICFBamFloatTypeObj, Float>("DefaultValue"); tableColumnDefaultValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalDefaultValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnDefaultValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnDefaultValue); tableColumnMinValue = new TableColumn<ICFBamFloatTypeObj, Float>("MinValue"); tableColumnMinValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalMinValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnMinValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnMinValue); tableColumnMaxValue = new TableColumn<ICFBamFloatTypeObj, Float>("MaxValue"); tableColumnMaxValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalMaxValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnMaxValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnMaxValue); tableColumnNullValue = new TableColumn<ICFBamFloatTypeObj, Float>("NullValue"); tableColumnNullValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalNullValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnNullValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnNullValue); tableColumnUnknownValue = new TableColumn<ICFBamFloatTypeObj, Float>("UnknownValue"); tableColumnUnknownValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatTypeObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatTypeObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalUnknownValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnUnknownValue.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, Float>, TableCell<ICFBamFloatTypeObj, Float>>() { @Override public TableCell<ICFBamFloatTypeObj, Float> call( TableColumn<ICFBamFloatTypeObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatTypeObj>(); } }); dataTable.getColumns().add(tableColumnUnknownValue); tableColumnLookupDefSchema = new TableColumn<ICFBamFloatTypeObj, ICFBamSchemaDefObj>("Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamFloatTypeObj, ICFBamSchemaDefObj> p) { ICFBamFloatTypeObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchemaDefObj ref = obj.getOptionalLookupDefSchema(); ReadOnlyObjectWrapper<ICFBamSchemaDefObj> observable = new ReadOnlyObjectWrapper<ICFBamSchemaDefObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupDefSchema.setCellFactory( new Callback< TableColumn<ICFBamFloatTypeObj, ICFBamSchemaDefObj>, TableCell<ICFBamFloatTypeObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamFloatTypeObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamFloatTypeObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamFloatTypeObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFBamFloatTypeObj>() { @Override public void changed( ObservableValue<? extends ICFBamFloatTypeObj> observable, ICFBamFloatTypeObj oldValue, ICFBamFloatTypeObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getPanelHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); javafxIsInitializing = false; if (observableListOfFloatType != null) { dataTable.setItems(observableListOfFloatType); } adjustListButtons(); }
public CFSecurityJavaFXISOTimezoneListPane( ICFFormManager formManager, ICFSecurityJavaFXSchema argSchema, ICFLibAnyObj argContainer, ICFSecurityISOTimezoneObj argFocus, Collection<ICFSecurityISOTimezoneObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { 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; javafxContainer = argContainer; javafxRefreshCallback = refreshCallback; javafxSortByChain = sortByChain; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFSecurityISOTimezoneObj>(); tableColumnISOTimezoneId = new TableColumn<ICFSecurityISOTimezoneObj, Short>("ISO Timezone Id"); tableColumnISOTimezoneId.setCellValueFactory( new Callback<CellDataFeatures<ICFSecurityISOTimezoneObj, Short>, ObservableValue<Short>>() { public ObservableValue<Short> call(CellDataFeatures<ICFSecurityISOTimezoneObj, Short> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { short value = obj.getRequiredISOTimezoneId(); Short wrapped = new Short(value); ReadOnlyObjectWrapper<Short> observable = new ReadOnlyObjectWrapper<Short>(); observable.setValue(wrapped); return (observable); } } }); tableColumnISOTimezoneId.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, Short>, TableCell<ICFSecurityISOTimezoneObj, Short>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, Short> call( TableColumn<ICFSecurityISOTimezoneObj, Short> arg) { return new CFInt16TableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnISOTimezoneId); tableColumnIso8601 = new TableColumn<ICFSecurityISOTimezoneObj, String>("ISO8601"); tableColumnIso8601.setCellValueFactory( new Callback< CellDataFeatures<ICFSecurityISOTimezoneObj, String>, ObservableValue<String>>() { public ObservableValue<String> call( CellDataFeatures<ICFSecurityISOTimezoneObj, String> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredIso8601(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnIso8601.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, String>, TableCell<ICFSecurityISOTimezoneObj, String>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, String> call( TableColumn<ICFSecurityISOTimezoneObj, String> arg) { return new CFStringTableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnIso8601); tableColumnTZName = new TableColumn<ICFSecurityISOTimezoneObj, String>("Timezone Name"); tableColumnTZName.setCellValueFactory( new Callback< CellDataFeatures<ICFSecurityISOTimezoneObj, String>, ObservableValue<String>>() { public ObservableValue<String> call( CellDataFeatures<ICFSecurityISOTimezoneObj, String> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredTZName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnTZName.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, String>, TableCell<ICFSecurityISOTimezoneObj, String>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, String> call( TableColumn<ICFSecurityISOTimezoneObj, String> arg) { return new CFStringTableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnTZName); tableColumnTZHourOffset = new TableColumn<ICFSecurityISOTimezoneObj, Short>("Timezone Hour Offset"); tableColumnTZHourOffset.setCellValueFactory( new Callback<CellDataFeatures<ICFSecurityISOTimezoneObj, Short>, ObservableValue<Short>>() { public ObservableValue<Short> call(CellDataFeatures<ICFSecurityISOTimezoneObj, Short> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { short value = obj.getRequiredTZHourOffset(); Short wrapped = new Short(value); ReadOnlyObjectWrapper<Short> observable = new ReadOnlyObjectWrapper<Short>(); observable.setValue(wrapped); return (observable); } } }); tableColumnTZHourOffset.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, Short>, TableCell<ICFSecurityISOTimezoneObj, Short>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, Short> call( TableColumn<ICFSecurityISOTimezoneObj, Short> arg) { return new CFInt16TableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnTZHourOffset); tableColumnTZMinOffset = new TableColumn<ICFSecurityISOTimezoneObj, Short>("Timezone Minute Offset"); tableColumnTZMinOffset.setCellValueFactory( new Callback<CellDataFeatures<ICFSecurityISOTimezoneObj, Short>, ObservableValue<Short>>() { public ObservableValue<Short> call(CellDataFeatures<ICFSecurityISOTimezoneObj, Short> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { short value = obj.getRequiredTZMinOffset(); Short wrapped = new Short(value); ReadOnlyObjectWrapper<Short> observable = new ReadOnlyObjectWrapper<Short>(); observable.setValue(wrapped); return (observable); } } }); tableColumnTZMinOffset.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, Short>, TableCell<ICFSecurityISOTimezoneObj, Short>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, Short> call( TableColumn<ICFSecurityISOTimezoneObj, Short> arg) { return new CFInt16TableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnTZMinOffset); tableColumnDescription = new TableColumn<ICFSecurityISOTimezoneObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback< CellDataFeatures<ICFSecurityISOTimezoneObj, String>, ObservableValue<String>>() { public ObservableValue<String> call( CellDataFeatures<ICFSecurityISOTimezoneObj, String> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDescription.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, String>, TableCell<ICFSecurityISOTimezoneObj, String>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, String> call( TableColumn<ICFSecurityISOTimezoneObj, String> arg) { return new CFStringTableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnVisible = new TableColumn<ICFSecurityISOTimezoneObj, Boolean>("Visible"); tableColumnVisible.setCellValueFactory( new Callback< CellDataFeatures<ICFSecurityISOTimezoneObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call( CellDataFeatures<ICFSecurityISOTimezoneObj, Boolean> p) { ICFSecurityISOTimezoneObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredVisible(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnVisible.setCellFactory( new Callback< TableColumn<ICFSecurityISOTimezoneObj, Boolean>, TableCell<ICFSecurityISOTimezoneObj, Boolean>>() { @Override public TableCell<ICFSecurityISOTimezoneObj, Boolean> call( TableColumn<ICFSecurityISOTimezoneObj, Boolean> arg) { return new CFBoolTableCell<ICFSecurityISOTimezoneObj>(); } }); dataTable.getColumns().add(tableColumnVisible); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFSecurityISOTimezoneObj>() { @Override public void changed( ObservableValue<? extends ICFSecurityISOTimezoneObj> observable, ICFSecurityISOTimezoneObj oldValue, ICFSecurityISOTimezoneObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getPanelHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); javafxIsInitializing = false; if (observableListOfISOTimezone != null) { dataTable.setItems(observableListOfISOTimezone); } adjustListButtons(); }
public CFAsteriskJavaFXExtensionsConfFinderForm( ICFFormManager formManager, ICFAsteriskJavaFXSchema argSchema) { 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"); } javafxSchema = argSchema; dataTable = new TableView<ICFAsteriskExtensionsConfObj>(); tableColumnId = new TableColumn<ICFAsteriskExtensionsConfObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback< CellDataFeatures<ICFAsteriskExtensionsConfObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call( CellDataFeatures<ICFAsteriskExtensionsConfObj, Long> p) { ICFAsteriskConfigurationFileObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnId.setCellFactory( new Callback< TableColumn<ICFAsteriskExtensionsConfObj, Long>, TableCell<ICFAsteriskExtensionsConfObj, Long>>() { @Override public TableCell<ICFAsteriskExtensionsConfObj, Long> call( TableColumn<ICFAsteriskExtensionsConfObj, Long> arg) { return new CFInt64TableCell<ICFAsteriskExtensionsConfObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnFileFullName = new TableColumn<ICFAsteriskExtensionsConfObj, String>("FileFullName"); tableColumnFileFullName.setCellValueFactory( new Callback< CellDataFeatures<ICFAsteriskExtensionsConfObj, String>, ObservableValue<String>>() { public ObservableValue<String> call( CellDataFeatures<ICFAsteriskExtensionsConfObj, String> p) { ICFAsteriskConfigurationFileObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredFileFullName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnFileFullName.setCellFactory( new Callback< TableColumn<ICFAsteriskExtensionsConfObj, String>, TableCell<ICFAsteriskExtensionsConfObj, String>>() { @Override public TableCell<ICFAsteriskExtensionsConfObj, String> call( TableColumn<ICFAsteriskExtensionsConfObj, String> arg) { return new CFStringTableCell<ICFAsteriskExtensionsConfObj>(); } }); dataTable.getColumns().add(tableColumnFileFullName); tableColumnFileContents = new TableColumn<ICFAsteriskExtensionsConfObj, String>("FileContents"); tableColumnFileContents.setCellValueFactory( new Callback< CellDataFeatures<ICFAsteriskExtensionsConfObj, String>, ObservableValue<String>>() { public ObservableValue<String> call( CellDataFeatures<ICFAsteriskExtensionsConfObj, String> p) { ICFAsteriskExtensionsConfObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredFileContents(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnFileContents.setCellFactory( new Callback< TableColumn<ICFAsteriskExtensionsConfObj, String>, TableCell<ICFAsteriskExtensionsConfObj, String>>() { @Override public TableCell<ICFAsteriskExtensionsConfObj, String> call( TableColumn<ICFAsteriskExtensionsConfObj, String> arg) { return new CFTextTableCell<ICFAsteriskExtensionsConfObj>(); } }); dataTable.getColumns().add(tableColumnFileContents); tableColumnParentHostNode = new TableColumn<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj>("Host Node"); tableColumnParentHostNode.setCellValueFactory( new Callback< CellDataFeatures<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj>, ObservableValue<ICFSecurityHostNodeObj>>() { public ObservableValue<ICFSecurityHostNodeObj> call( CellDataFeatures<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj> p) { ICFAsteriskExtensionsConfObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFSecurityHostNodeObj ref = obj.getRequiredParentHostNode(); ReadOnlyObjectWrapper<ICFSecurityHostNodeObj> observable = new ReadOnlyObjectWrapper<ICFSecurityHostNodeObj>(); observable.setValue(ref); return (observable); } } }); tableColumnParentHostNode.setCellFactory( new Callback< TableColumn<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj>, TableCell<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj>>() { @Override public TableCell<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj> call( TableColumn<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj> arg) { return new CFReferenceTableCell<ICFAsteriskExtensionsConfObj, ICFSecurityHostNodeObj>(); } }); dataTable.getColumns().add(tableColumnParentHostNode); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFAsteriskExtensionsConfObj>() { @Override public void changed( ObservableValue<? extends ICFAsteriskExtensionsConfObj> observable, ICFAsteriskExtensionsConfObj oldValue, ICFAsteriskExtensionsConfObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); refreshMe(); javafxIsInitializing = false; adjustFinderButtons(); }
public CFAccJavaFXFeeListPane( ICFFormManager formManager, ICFAccJavaFXSchema argSchema, ICFAccAccountObj argContainer, ICFAccFeeObj argFocus, Collection<ICFAccFeeObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { 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; javafxContainer = argContainer; javafxRefreshCallback = refreshCallback; javafxSortByChain = sortByChain; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFAccFeeObj>(); tableColumnFeeId = new TableColumn<ICFAccFeeObj, Long>("FeeId"); tableColumnFeeId.setCellValueFactory( new Callback<CellDataFeatures<ICFAccFeeObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFAccFeeObj, Long> p) { ICFAccFeeObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredFeeId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnFeeId.setCellFactory( new Callback<TableColumn<ICFAccFeeObj, Long>, TableCell<ICFAccFeeObj, Long>>() { @Override public TableCell<ICFAccFeeObj, Long> call(TableColumn<ICFAccFeeObj, Long> arg) { return new CFInt64TableCell<ICFAccFeeObj>(); } }); dataTable.getColumns().add(tableColumnFeeId); tableColumnFeeDate = new TableColumn<ICFAccFeeObj, Calendar>("FeeDate"); tableColumnFeeDate.setCellValueFactory( new Callback<CellDataFeatures<ICFAccFeeObj, Calendar>, ObservableValue<Calendar>>() { public ObservableValue<Calendar> call(CellDataFeatures<ICFAccFeeObj, Calendar> p) { ICFAccFeeObj obj = p.getValue(); if (obj == null) { return (null); } else { Calendar value = obj.getRequiredFeeDate(); ReadOnlyObjectWrapper<Calendar> observable = new ReadOnlyObjectWrapper<Calendar>(); observable.setValue(value); return (observable); } } }); tableColumnFeeDate.setCellFactory( new Callback<TableColumn<ICFAccFeeObj, Calendar>, TableCell<ICFAccFeeObj, Calendar>>() { @Override public TableCell<ICFAccFeeObj, Calendar> call(TableColumn<ICFAccFeeObj, Calendar> arg) { return new CFDateTableCell<ICFAccFeeObj>(); } }); dataTable.getColumns().add(tableColumnFeeDate); tableColumnDescription = new TableColumn<ICFAccFeeObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFAccFeeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFAccFeeObj, String> p) { ICFAccFeeObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDescription.setCellFactory( new Callback<TableColumn<ICFAccFeeObj, String>, TableCell<ICFAccFeeObj, String>>() { @Override public TableCell<ICFAccFeeObj, String> call(TableColumn<ICFAccFeeObj, String> arg) { return new CFStringTableCell<ICFAccFeeObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnAmount = new TableColumn<ICFAccFeeObj, BigDecimal>("Amount"); tableColumnAmount.setCellValueFactory( new Callback<CellDataFeatures<ICFAccFeeObj, BigDecimal>, ObservableValue<BigDecimal>>() { public ObservableValue<BigDecimal> call(CellDataFeatures<ICFAccFeeObj, BigDecimal> p) { ICFAccFeeObj obj = p.getValue(); if (obj == null) { return (null); } else { BigDecimal value = obj.getOptionalAmount(); ReadOnlyObjectWrapper<BigDecimal> observable = new ReadOnlyObjectWrapper<BigDecimal>(); observable.setValue(value); return (observable); } } }); tableColumnAmount.setCellFactory( new Callback<TableColumn<ICFAccFeeObj, BigDecimal>, TableCell<ICFAccFeeObj, BigDecimal>>() { @Override public TableCell<ICFAccFeeObj, BigDecimal> call( TableColumn<ICFAccFeeObj, BigDecimal> arg) { return new CFNumberTableCell<ICFAccFeeObj>(50, 5); } }); dataTable.getColumns().add(tableColumnAmount); tableColumnLookupLedger = new TableColumn<ICFAccFeeObj, ICFAccLedgerObj>("Fee Ledger Entry"); tableColumnLookupLedger.setCellValueFactory( new Callback< CellDataFeatures<ICFAccFeeObj, ICFAccLedgerObj>, ObservableValue<ICFAccLedgerObj>>() { public ObservableValue<ICFAccLedgerObj> call( CellDataFeatures<ICFAccFeeObj, ICFAccLedgerObj> p) { ICFAccFeeObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFAccLedgerObj ref = obj.getOptionalLookupLedger(); ReadOnlyObjectWrapper<ICFAccLedgerObj> observable = new ReadOnlyObjectWrapper<ICFAccLedgerObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupLedger.setCellFactory( new Callback< TableColumn<ICFAccFeeObj, ICFAccLedgerObj>, TableCell<ICFAccFeeObj, ICFAccLedgerObj>>() { @Override public TableCell<ICFAccFeeObj, ICFAccLedgerObj> call( TableColumn<ICFAccFeeObj, ICFAccLedgerObj> arg) { return new CFReferenceTableCell<ICFAccFeeObj, ICFAccLedgerObj>(); } }); dataTable.getColumns().add(tableColumnLookupLedger); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFAccFeeObj>() { @Override public void changed( ObservableValue<? extends ICFAccFeeObj> observable, ICFAccFeeObj oldValue, ICFAccFeeObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getPanelHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); javafxIsInitializing = false; if (observableListOfFee != null) { dataTable.setItems(observableListOfFee); } adjustListButtons(); }
public CFBamJavaFXFloatDefPickerPane( ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamFloatDefObj argFocus, ICFBamScopeObj argContainer, Collection<ICFBamFloatDefObj> argDataCollection, ICFBamJavaFXFloatDefChosen 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"); } invokeWhenChosen = whenChosen; // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. javafxSchema = argSchema; javaFXFocus = argFocus; javafxContainer = argContainer; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFBamFloatDefObj>(); tableColumnObjKind = new TableColumn<ICFBamFloatDefObj, String>("Class Code"); tableColumnObjKind.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { @Override public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String classCode = obj.getClassCode(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(classCode); return (observable); } } }); tableColumnObjKind.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnObjKind); tableColumnId = new TableColumn<ICFBamFloatDefObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamFloatDefObj, Long> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnId.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Long>, TableCell<ICFBamFloatDefObj, Long>>() { @Override public TableCell<ICFBamFloatDefObj, Long> call(TableColumn<ICFBamFloatDefObj, Long> arg) { return new CFInt64TableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamFloatDefObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnName.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnShortName = new TableColumn<ICFBamFloatDefObj, String>("ShortName"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalShortName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnShortName.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamFloatDefObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalLabel(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnLabel.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamFloatDefObj, String>("ShortDescription"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalShortDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnShortDescription.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamFloatDefObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalDescription(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDescription.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnIsNullable = new TableColumn<ICFBamFloatDefObj, Boolean>("IsNullable"); tableColumnIsNullable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatDefObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredIsNullable(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnIsNullable.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, Boolean>, TableCell<ICFBamFloatDefObj, Boolean>>() { @Override public TableCell<ICFBamFloatDefObj, Boolean> call( TableColumn<ICFBamFloatDefObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnIsNullable); tableColumnGenerateId = new TableColumn<ICFBamFloatDefObj, Boolean>("GenerateId"); tableColumnGenerateId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatDefObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { Boolean value = obj.getOptionalGenerateId(); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(value); return (observable); } } }); tableColumnGenerateId.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, Boolean>, TableCell<ICFBamFloatDefObj, Boolean>>() { @Override public TableCell<ICFBamFloatDefObj, Boolean> call( TableColumn<ICFBamFloatDefObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnGenerateId); tableColumnDataScope = new TableColumn<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum>("DataScope"); tableColumnDataScope.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum>, ObservableValue<ICFBamSchema.DataScopeEnum>>() { public ObservableValue<ICFBamSchema.DataScopeEnum> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.DataScopeEnum value = obj.getOptionalDataScope(); ReadOnlyObjectWrapper<ICFBamSchema.DataScopeEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.DataScopeEnum>(); observable.setValue(value); return (observable); } } }); tableColumnDataScope.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum>, TableCell<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum> call( TableColumn<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum> arg) { return new CFEnumTableCell<ICFBamFloatDefObj, ICFBamSchema.DataScopeEnum>(); } }); dataTable.getColumns().add(tableColumnDataScope); tableColumnViewAccessSecurity = new TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>("ViewAccessSecurity"); tableColumnViewAccessSecurity.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>, ObservableValue<ICFBamSchema.AccessSecurityEnum>>() { public ObservableValue<ICFBamSchema.AccessSecurityEnum> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessSecurityEnum value = obj.getOptionalViewAccessSecurity(); ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum>(); observable.setValue(value); return (observable); } } }); tableColumnViewAccessSecurity.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>, TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> call( TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> arg) { return new CFEnumTableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>(); } }); dataTable.getColumns().add(tableColumnViewAccessSecurity); tableColumnEditAccessSecurity = new TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>("EditAccessSecurity"); tableColumnEditAccessSecurity.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>, ObservableValue<ICFBamSchema.AccessSecurityEnum>>() { public ObservableValue<ICFBamSchema.AccessSecurityEnum> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessSecurityEnum value = obj.getOptionalEditAccessSecurity(); ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessSecurityEnum>(); observable.setValue(value); return (observable); } } }); tableColumnEditAccessSecurity.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>, TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> call( TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum> arg) { return new CFEnumTableCell<ICFBamFloatDefObj, ICFBamSchema.AccessSecurityEnum>(); } }); dataTable.getColumns().add(tableColumnEditAccessSecurity); tableColumnViewAccessFrequency = new TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>("ViewAccessFrequency"); tableColumnViewAccessFrequency.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>, ObservableValue<ICFBamSchema.AccessFrequencyEnum>>() { public ObservableValue<ICFBamSchema.AccessFrequencyEnum> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessFrequencyEnum value = obj.getOptionalViewAccessFrequency(); ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum>(); observable.setValue(value); return (observable); } } }); tableColumnViewAccessFrequency.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>, TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> call( TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> arg) { return new CFEnumTableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>(); } }); dataTable.getColumns().add(tableColumnViewAccessFrequency); tableColumnEditAccessFrequency = new TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>("EditAccessFrequency"); tableColumnEditAccessFrequency.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>, ObservableValue<ICFBamSchema.AccessFrequencyEnum>>() { public ObservableValue<ICFBamSchema.AccessFrequencyEnum> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.AccessFrequencyEnum value = obj.getOptionalEditAccessFrequency(); ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.AccessFrequencyEnum>(); observable.setValue(value); return (observable); } } }); tableColumnEditAccessFrequency.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>, TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> call( TableColumn<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum> arg) { return new CFEnumTableCell<ICFBamFloatDefObj, ICFBamSchema.AccessFrequencyEnum>(); } }); dataTable.getColumns().add(tableColumnEditAccessFrequency); tableColumnDefaultVisibility = new TableColumn<ICFBamFloatDefObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamFloatDefObj, Boolean> p) { ICFBamValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredDefaultVisibility(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnDefaultVisibility.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, Boolean>, TableCell<ICFBamFloatDefObj, Boolean>>() { @Override public TableCell<ICFBamFloatDefObj, Boolean> call( TableColumn<ICFBamFloatDefObj, Boolean> arg) { return new CFBoolTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnDbName = new TableColumn<ICFBamFloatDefObj, String>("DbName"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamFloatDefObj, String> p) { ICFBamAtomObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalDbName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnDbName.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, String>, TableCell<ICFBamFloatDefObj, String>>() { @Override public TableCell<ICFBamFloatDefObj, String> call( TableColumn<ICFBamFloatDefObj, String> arg) { return new CFStringTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnInitValue = new TableColumn<ICFBamFloatDefObj, Float>("InitValue"); tableColumnInitValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalInitValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnInitValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnInitValue); tableColumnDefaultValue = new TableColumn<ICFBamFloatDefObj, Float>("DefaultValue"); tableColumnDefaultValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalDefaultValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnDefaultValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnDefaultValue); tableColumnMinValue = new TableColumn<ICFBamFloatDefObj, Float>("MinValue"); tableColumnMinValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalMinValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnMinValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnMinValue); tableColumnMaxValue = new TableColumn<ICFBamFloatDefObj, Float>("MaxValue"); tableColumnMaxValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalMaxValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnMaxValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnMaxValue); tableColumnNullValue = new TableColumn<ICFBamFloatDefObj, Float>("NullValue"); tableColumnNullValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalNullValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnNullValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnNullValue); tableColumnUnknownValue = new TableColumn<ICFBamFloatDefObj, Float>("UnknownValue"); tableColumnUnknownValue.setCellValueFactory( new Callback<CellDataFeatures<ICFBamFloatDefObj, Float>, ObservableValue<Float>>() { public ObservableValue<Float> call(CellDataFeatures<ICFBamFloatDefObj, Float> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { Float value = obj.getOptionalUnknownValue(); ReadOnlyObjectWrapper<Float> observable = new ReadOnlyObjectWrapper<Float>(); observable.setValue(value); return (observable); } } }); tableColumnUnknownValue.setCellFactory( new Callback<TableColumn<ICFBamFloatDefObj, Float>, TableCell<ICFBamFloatDefObj, Float>>() { @Override public TableCell<ICFBamFloatDefObj, Float> call( TableColumn<ICFBamFloatDefObj, Float> arg) { return new CFFloatTableCell<ICFBamFloatDefObj>(); } }); dataTable.getColumns().add(tableColumnUnknownValue); tableColumnLookupDefSchema = new TableColumn<ICFBamFloatDefObj, ICFBamSchemaDefObj>("Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback< CellDataFeatures<ICFBamFloatDefObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamFloatDefObj, ICFBamSchemaDefObj> p) { ICFBamFloatDefObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchemaDefObj ref = obj.getOptionalLookupDefSchema(); ReadOnlyObjectWrapper<ICFBamSchemaDefObj> observable = new ReadOnlyObjectWrapper<ICFBamSchemaDefObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupDefSchema.setCellFactory( new Callback< TableColumn<ICFBamFloatDefObj, ICFBamSchemaDefObj>, TableCell<ICFBamFloatDefObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamFloatDefObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamFloatDefObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamFloatDefObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFBamFloatDefObj>() { @Override public void changed( ObservableValue<? extends ICFBamFloatDefObj> observable, ICFBamFloatDefObj oldValue, ICFBamFloatDefObj newValue) { setJavaFXFocus(newValue); if (buttonChooseSelected != null) { if (newValue != null) { buttonChooseSelected.setDisable(false); } else { buttonChooseSelected.setDisable(true); } } } }); hboxMenu = new CFHBox(10); buttonCancel = new CFButton(); buttonCancel.setMinWidth(200); buttonCancel.setText("Cancel"); buttonCancel.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonCancel); buttonChooseNone = new CFButton(); buttonChooseNone.setMinWidth(200); buttonChooseNone.setText("ChooseNone"); buttonChooseNone.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { ICFBamSchemaObj schemaObj = (ICFBamSchemaObj) javafxSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } invokeWhenChosen.choseFloatDef(null); cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonChooseNone); buttonChooseSelected = new CFButton(); buttonChooseSelected.setMinWidth(200); buttonChooseSelected.setText("ChooseSelected"); buttonChooseSelected.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { ICFBamSchemaObj schemaObj = (ICFBamSchemaObj) javafxSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } ICFBamFloatDefObj selectedInstance = getJavaFXFocusAsFloatDef(); invokeWhenChosen.choseFloatDef(selectedInstance); cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonChooseSelected); if (argFocus != null) { dataTable.getSelectionModel().select(argFocus); } setTop(hboxMenu); setCenter(dataTable); }
public CFAsteriskJavaFXExtensionsConfAttrPane( ICFFormManager formManager, ICFAsteriskJavaFXSchema argSchema, ICFAsteriskExtensionsConfObj argFocus) { super(); Control ctrl; CFLabel label; CFReferenceEditor reference; 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; setJavaFXFocusAsExtensionsConf(argFocus); setPadding(new Insets(5)); setHgap(5); setVgap(5); setAlignment(Pos.CENTER); ColumnConstraints column1 = new ColumnConstraints(125); ColumnConstraints column2 = new ColumnConstraints(125, 300, 500); column2.setHgrow(Priority.ALWAYS); getColumnConstraints().addAll(column1, column2); int gridRow = 0; label = getJavaFXLabelParentHostNode(); setHalignment(label, HPos.LEFT); add(label, 0, gridRow); reference = getJavaFXReferenceParentHostNode(); setHalignment(reference, HPos.LEFT); add(reference, 1, gridRow); gridRow++; label = getJavaFXLabelId(); setHalignment(label, HPos.LEFT); add(label, 0, gridRow); ctrl = getJavaFXEditorId(); setHalignment(ctrl, HPos.LEFT); add(ctrl, 1, gridRow); gridRow++; label = getJavaFXLabelFileFullName(); setHalignment(label, HPos.LEFT); add(label, 0, gridRow); ctrl = getJavaFXEditorFileFullName(); setHalignment(ctrl, HPos.LEFT); add(ctrl, 1, gridRow); gridRow++; label = getJavaFXLabelFileContents(); setHalignment(label, HPos.LEFT); add(label, 0, gridRow); ctrl = getJavaFXEditorFileContents(); setHalignment(ctrl, HPos.LEFT); add(ctrl, 1, gridRow); gridRow++; populateFields(); adjustComponentEnableStates(); javafxIsInitializing = false; }
public CFSecurityJavaFXSysClusterFinderForm( ICFFormManager formManager, ICFSecurityJavaFXSchema argSchema) { 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"); } javafxSchema = argSchema; dataTable = new TableView<ICFSecuritySysClusterObj>(); tableColumnSingletonId = new TableColumn<ICFSecuritySysClusterObj, Integer>("Singleton"); tableColumnSingletonId.setCellValueFactory( new Callback< CellDataFeatures<ICFSecuritySysClusterObj, Integer>, ObservableValue<Integer>>() { public ObservableValue<Integer> call( CellDataFeatures<ICFSecuritySysClusterObj, Integer> p) { ICFSecuritySysClusterObj obj = p.getValue(); if (obj == null) { return (null); } else { int value = obj.getRequiredSingletonId(); Integer wrapped = new Integer(value); ReadOnlyObjectWrapper<Integer> observable = new ReadOnlyObjectWrapper<Integer>(); observable.setValue(wrapped); return (observable); } } }); tableColumnSingletonId.setCellFactory( new Callback< TableColumn<ICFSecuritySysClusterObj, Integer>, TableCell<ICFSecuritySysClusterObj, Integer>>() { @Override public TableCell<ICFSecuritySysClusterObj, Integer> call( TableColumn<ICFSecuritySysClusterObj, Integer> arg) { return new CFInt32TableCell<ICFSecuritySysClusterObj>(); } }); dataTable.getColumns().add(tableColumnSingletonId); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFSecuritySysClusterObj>() { @Override public void changed( ObservableValue<? extends ICFSecuritySysClusterObj> observable, ICFSecuritySysClusterObj oldValue, ICFSecuritySysClusterObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); refreshMe(); javafxIsInitializing = false; adjustFinderButtons(); }
public CFDbTestJavaFXNumberTypePickerPane( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestNumberTypeObj argFocus, ICFDbTestSchemaDefObj argContainer, Collection<ICFDbTestNumberTypeObj> argDataCollection, ICFDbTestJavaFXNumberTypeChosen 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"); } invokeWhenChosen = whenChosen; // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. javafxSchema = argSchema; javaFXFocus = argFocus; javafxContainer = argContainer; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFDbTestNumberTypeObj>(); tableColumnId = new TableColumn<ICFDbTestNumberTypeObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestNumberTypeObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFDbTestNumberTypeObj, Long> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnId.setCellFactory( new Callback< TableColumn<ICFDbTestNumberTypeObj, Long>, TableCell<ICFDbTestNumberTypeObj, Long>>() { @Override public TableCell<ICFDbTestNumberTypeObj, Long> call( TableColumn<ICFDbTestNumberTypeObj, Long> arg) { return new CFInt64TableCell<ICFDbTestNumberTypeObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFDbTestNumberTypeObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestNumberTypeObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFDbTestNumberTypeObj, String> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnName.setCellFactory( new Callback< TableColumn<ICFDbTestNumberTypeObj, String>, TableCell<ICFDbTestNumberTypeObj, String>>() { @Override public TableCell<ICFDbTestNumberTypeObj, String> call( TableColumn<ICFDbTestNumberTypeObj, String> arg) { return new CFStringTableCell<ICFDbTestNumberTypeObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnDefaultVisibility = new TableColumn<ICFDbTestNumberTypeObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback< CellDataFeatures<ICFDbTestNumberTypeObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call( CellDataFeatures<ICFDbTestNumberTypeObj, Boolean> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredDefaultVisibility(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnDefaultVisibility.setCellFactory( new Callback< TableColumn<ICFDbTestNumberTypeObj, Boolean>, TableCell<ICFDbTestNumberTypeObj, Boolean>>() { @Override public TableCell<ICFDbTestNumberTypeObj, Boolean> call( TableColumn<ICFDbTestNumberTypeObj, Boolean> arg) { return new CFBoolTableCell<ICFDbTestNumberTypeObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFDbTestNumberTypeObj>() { @Override public void changed( ObservableValue<? extends ICFDbTestNumberTypeObj> observable, ICFDbTestNumberTypeObj oldValue, ICFDbTestNumberTypeObj newValue) { setJavaFXFocus(newValue); if (buttonChooseSelected != null) { if (newValue != null) { buttonChooseSelected.setDisable(false); } else { buttonChooseSelected.setDisable(true); } } } }); hboxMenu = new CFHBox(10); buttonCancel = new CFButton(); buttonCancel.setMinWidth(200); buttonCancel.setText("Cancel"); buttonCancel.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonCancel); buttonChooseNone = new CFButton(); buttonChooseNone.setMinWidth(200); buttonChooseNone.setText("ChooseNone"); buttonChooseNone.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { ICFDbTestSchemaObj schemaObj = (ICFDbTestSchemaObj) javafxSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } invokeWhenChosen.choseNumberType(null); cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonChooseNone); buttonChooseSelected = new CFButton(); buttonChooseSelected.setMinWidth(200); buttonChooseSelected.setText("ChooseSelected"); buttonChooseSelected.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent e) { final String S_ProcName = "handle"; try { ICFDbTestSchemaObj schemaObj = (ICFDbTestSchemaObj) javafxSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } ICFDbTestNumberTypeObj selectedInstance = getJavaFXFocusAsNumberType(); invokeWhenChosen.choseNumberType(selectedInstance); cfFormManager.closeCurrentForm(); } catch (Throwable t) { CFConsole.formException(S_FormName, ((CFButton) e.getSource()).getText(), t); } } }); hboxMenu.getChildren().add(buttonChooseSelected); if (argFocus != null) { dataTable.getSelectionModel().select(argFocus); } setTop(hboxMenu); setCenter(dataTable); }
public void setPaneMode(CFPane.PaneMode value) { final String S_ProcName = "setPaneMode"; CFPane.PaneMode oldValue = getPaneMode(); if (oldValue == value) { return; } ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); if ((value != CFPane.PaneMode.Unknown) && (value != CFPane.PaneMode.View)) { if (focus == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "javaFXFocus"); } } ICFAsteriskExtensionsConfEditObj editObj; if (focus != null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.getEdit(); } else { editObj = null; } switch (value) { case Unknown: switch (oldValue) { case Unknown: break; default: if (editObj != null) { editObj.endEdit(); } break; } break; case Add: switch (oldValue) { case Unknown: case Add: case View: if (editObj == null) { if (focus != null) { if (!focus.getIsNew()) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Transitioning to PaneMode Add requires Focus.getIsNew() to be true"); } editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } else { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "focus"); } } break; case Edit: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode Edit to Add"); case Update: if ((editObj == null) || (!editObj.getIsNew())) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode Update to Add"); } break; case Delete: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode Delete to Add"); default: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode default to Add"); } break; case View: switch (oldValue) { case Unknown: break; case View: break; case Edit: break; case Update: break; case Delete: break; default: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode " + oldValue + " to View"); } if (editObj != null) { editObj.endEdit(); } break; case Edit: switch (oldValue) { case Unknown: if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } break; case View: if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } break; case Edit: if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } break; case Update: if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode " + oldValue + " to Edit"); } break; default: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode " + oldValue + " to Edit"); } break; case Update: if ((oldValue != CFPane.PaneMode.Edit) && (oldValue != CFPane.PaneMode.Add)) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition from mode " + oldValue + " to Update"); } super.setPaneMode(value); if (editObj != null) { postFields(); if (editObj.getIsNew()) { focus = (ICFAsteriskExtensionsConfObj) editObj.create(); setJavaFXFocus(focus); } else { editObj.update(); } editObj.endEdit(); editObj = null; } setPaneMode(CFPane.PaneMode.View); break; case Delete: switch (oldValue) { case View: if (focus != null) { if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } } break; case Edit: if (focus != null) { if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } } break; case Update: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode Update to Delete"); case Delete: if (editObj == null) { editObj = (ICFAsteriskExtensionsConfEditObj) focus.beginEdit(); if (editObj == null) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Expected beginEdit() to return a new edition of the focus object"); } } break; default: throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "Cannot transition PaneMode " + oldValue + " to Delete"); } editObj.delete(); editObj.endEdit(); setJavaFXFocus(null); setPaneMode(CFPane.PaneMode.Unknown); break; default: switch (oldValue) { case Unknown: break; default: if (editObj != null) { editObj.endEdit(); } break; } break; } super.setPaneMode(value); populateFields(); adjustComponentEnableStates(); }
public CFDbTestJavaFXOptFullRangeAskDeleteForm( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestOptFullRangeObj 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 OptFullRange?"); 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 { ICFDbTestOptFullRangeObj obj = getJavaFXFocusAsOptFullRange(); ICFDbTestOptFullRangeEditObj editObj = (ICFDbTestOptFullRangeEditObj) 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.getOptFullRangeFactory().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); }
public CFDbTestJavaFXStringColListPane( ICFFormManager formManager, ICFDbTestJavaFXSchema argSchema, ICFDbTestTableObj argContainer, ICFDbTestStringColObj argFocus, Collection<ICFDbTestStringColObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { 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; javafxContainer = argContainer; javafxRefreshCallback = refreshCallback; javafxSortByChain = sortByChain; setJavaFXDataCollection(argDataCollection); dataTable = new TableView<ICFDbTestStringColObj>(); tableColumnId = new TableColumn<ICFDbTestStringColObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestStringColObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFDbTestStringColObj, Long> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { long value = obj.getRequiredId(); Long wrapped = new Long(value); ReadOnlyObjectWrapper<Long> observable = new ReadOnlyObjectWrapper<Long>(); observable.setValue(wrapped); return (observable); } } }); tableColumnId.setCellFactory( new Callback< TableColumn<ICFDbTestStringColObj, Long>, TableCell<ICFDbTestStringColObj, Long>>() { @Override public TableCell<ICFDbTestStringColObj, Long> call( TableColumn<ICFDbTestStringColObj, Long> arg) { return new CFInt64TableCell<ICFDbTestStringColObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFDbTestStringColObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestStringColObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFDbTestStringColObj, String> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredName(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnName.setCellFactory( new Callback< TableColumn<ICFDbTestStringColObj, String>, TableCell<ICFDbTestStringColObj, String>>() { @Override public TableCell<ICFDbTestStringColObj, String> call( TableColumn<ICFDbTestStringColObj, String> arg) { return new CFStringTableCell<ICFDbTestStringColObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnDefaultVisibility = new TableColumn<ICFDbTestStringColObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestStringColObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFDbTestStringColObj, Boolean> p) { ICFDbTestValueObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredDefaultVisibility(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnDefaultVisibility.setCellFactory( new Callback< TableColumn<ICFDbTestStringColObj, Boolean>, TableCell<ICFDbTestStringColObj, Boolean>>() { @Override public TableCell<ICFDbTestStringColObj, Boolean> call( TableColumn<ICFDbTestStringColObj, Boolean> arg) { return new CFBoolTableCell<ICFDbTestStringColObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnInitVal = new TableColumn<ICFDbTestStringColObj, String>("InitVal"); tableColumnInitVal.setCellValueFactory( new Callback<CellDataFeatures<ICFDbTestStringColObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFDbTestStringColObj, String> p) { ICFDbTestStringDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalInitVal(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnInitVal.setCellFactory( new Callback< TableColumn<ICFDbTestStringColObj, String>, TableCell<ICFDbTestStringColObj, String>>() { @Override public TableCell<ICFDbTestStringColObj, String> call( TableColumn<ICFDbTestStringColObj, String> arg) { return new CFStringTableCell<ICFDbTestStringColObj>(); } }); dataTable.getColumns().add(tableColumnInitVal); dataTable .getSelectionModel() .selectedItemProperty() .addListener( new ChangeListener<ICFDbTestStringColObj>() { @Override public void changed( ObservableValue<? extends ICFDbTestStringColObj> observable, ICFDbTestStringColObj oldValue, ICFDbTestStringColObj newValue) { setJavaFXFocus(newValue); } }); scrollMenu = new ScrollPane(); scrollMenu.setVbarPolicy(ScrollBarPolicy.NEVER); scrollMenu.setHbarPolicy(ScrollBarPolicy.AS_NEEDED); scrollMenu.setFitToHeight(true); scrollMenu.setContent(getPanelHBoxMenu()); setTop(scrollMenu); setCenter(dataTable); javafxIsInitializing = false; if (observableListOfStringCol != null) { dataTable.setItems(observableListOfStringCol); } adjustListButtons(); }