List of usage examples for javafx.scene.control TableColumn TableColumn
public TableColumn(String text)
From source file:com.ggvaidya.scinames.complexquery.ComplexQueryViewController.java
private TableColumn<Change, String> createTableColumnFromChange(String colName, Function<Change, String> func) { TableColumn<Change, String> column = new TableColumn<>(colName); column.cellValueFactoryProperty().set(cvf -> new ReadOnlyStringWrapper(func.apply(cvf.getValue()))); column.setPrefWidth(100.0);// ww w . jav a 2s . c om column.setEditable(false); return column; }
From source file:eu.over9000.skadi.ui.MainWindow.java
private void setupTable() { this.table = new TableView<>(); this.liveCol = new TableColumn<>("Live"); this.liveCol.setCellValueFactory(p -> p.getValue().onlineProperty()); this.liveCol.setSortType(SortType.DESCENDING); this.liveCol.setCellFactory(p -> new LiveCell()); this.nameCol = new TableColumn<>("Channel"); this.nameCol.setCellValueFactory(p -> p.getValue().nameProperty()); this.titleCol = new TableColumn<>("Status"); this.titleCol.setCellValueFactory(p -> p.getValue().titleProperty()); this.gameCol = new TableColumn<>("Game"); this.gameCol.setCellValueFactory(p -> p.getValue().gameProperty()); this.viewerCol = new TableColumn<>("Viewer"); this.viewerCol.setCellValueFactory(p -> p.getValue().viewerProperty().asObject()); this.viewerCol.setSortType(SortType.DESCENDING); this.viewerCol.setCellFactory(p -> new RightAlignedCell<>()); this.uptimeCol = new TableColumn<>("Uptime"); this.uptimeCol.setCellValueFactory((p) -> p.getValue().uptimeProperty().asObject()); this.uptimeCol.setCellFactory(p -> new UptimeCell()); this.table.setPlaceholder(new Label("no channels added/matching the filters")); this.table.getColumns().add(this.liveCol); this.table.getColumns().add(this.nameCol); this.table.getColumns().add(this.titleCol); this.table.getColumns().add(this.gameCol); this.table.getColumns().add(this.viewerCol); this.table.getColumns().add(this.uptimeCol); this.table.getSortOrder().add(this.liveCol); this.table.getSortOrder().add(this.viewerCol); this.table.getSortOrder().add(this.nameCol); this.filteredChannelList = new FilteredList<>(this.channelHandler.getChannels()); this.sortedChannelList = new SortedList<>(this.filteredChannelList); this.sortedChannelList.comparatorProperty().bind(this.table.comparatorProperty()); this.table.setItems(this.sortedChannelList); this.table.setRowFactory(tv -> { final TableRow<Channel> row = new TableRow<>(); row.setOnMouseClicked(event -> { if ((event.getButton() == MouseButton.PRIMARY) && (event.getClickCount() == 2) && !row.isEmpty()) { this.detailChannel.set(row.getItem()); if (!this.sp.getItems().contains(this.detailPane)) { this.sp.getItems().add(this.detailPane); this.doDetailSlide(true); }//from w w w .jav a2 s. c o m } }); return row; }); this.table.getSelectionModel().selectedItemProperty().addListener((obs, oldV, newV) -> { this.details.setDisable(newV == null); this.remove.setDisable(newV == null); this.chatAndStreamButton.setDisable(newV == null); this.chatAndStreamButton.resetQualities(); if ((newV == null) && this.sp.getItems().contains(this.detailPane)) { this.doDetailSlide(false); } }); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXSchemaDefListPane.java
public CFBamJavaFXSchemaDefListPane(ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFInternetDomainBaseObj argContainer, ICFBamSchemaDefObj argFocus, Collection<ICFBamSchemaDefObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { super();//from www.j a v a 2 s. c o m 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<ICFBamSchemaDefObj>(); tableColumnId = new TableColumn<ICFBamSchemaDefObj, Long>("Id"); tableColumnId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamSchemaDefObj, Long> p) { ICFBamScopeObj 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<ICFBamSchemaDefObj, Long>, TableCell<ICFBamSchemaDefObj, Long>>() { @Override public TableCell<ICFBamSchemaDefObj, Long> call(TableColumn<ICFBamSchemaDefObj, Long> arg) { return new CFInt64TableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamSchemaDefObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnDbName = new TableColumn<ICFBamSchemaDefObj, String>("Db Name"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnShortName = new TableColumn<ICFBamSchemaDefObj, String>("Short Name"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamSchemaDefObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamSchemaDefObj, String>("Short Description"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamSchemaDefObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj 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<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnExtendCFCore = new TableColumn<ICFBamSchemaDefObj, Boolean>("Extend CF Core"); tableColumnExtendCFCore.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamSchemaDefObj, Boolean> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredExtendCFCore(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnExtendCFCore.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, Boolean>, TableCell<ICFBamSchemaDefObj, Boolean>>() { @Override public TableCell<ICFBamSchemaDefObj, Boolean> call( TableColumn<ICFBamSchemaDefObj, Boolean> arg) { return new CFBoolTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnExtendCFCore); tableColumnCopyrightPeriod = new TableColumn<ICFBamSchemaDefObj, String>("Copyright Period"); tableColumnCopyrightPeriod.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredCopyrightPeriod(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnCopyrightPeriod.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnCopyrightPeriod); tableColumnCopyrightHolder = new TableColumn<ICFBamSchemaDefObj, String>("Copyright Holder"); tableColumnCopyrightHolder.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredCopyrightHolder(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnCopyrightHolder.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnCopyrightHolder); tableColumnPublishURI = new TableColumn<ICFBamSchemaDefObj, String>("Publish URI"); tableColumnPublishURI.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredPublishURI(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnPublishURI.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFStringTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnPublishURI); tableColumnJSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JSchemaObjImport"); tableColumnJSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSchemaObjImport); tableColumnJSchemaObjInterface = new TableColumn<ICFBamSchemaDefObj, String>("JSchemaObjInterface"); tableColumnJSchemaObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSchemaObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSchemaObjInterface.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSchemaObjInterface); tableColumnJSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JSchemaObjMembers"); tableColumnJSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSchemaObjMembers); tableColumnJSchemaObjImplementation = new TableColumn<ICFBamSchemaDefObj, String>( "JSchemaObjImplementation"); tableColumnJSchemaObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSchemaObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSchemaObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSchemaObjImplementation); tableColumnJDb2LUWSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JDb2LUWSchemaObjMembers"); tableColumnJDb2LUWSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWSchemaObjMembers); tableColumnJDb2LUWSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JDb2LUWSchemaObjImpl"); tableColumnJDb2LUWSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWSchemaObjImpl); tableColumnJDb2LUWSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JDb2LUWSchemaObjImport"); tableColumnJDb2LUWSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWSchemaObjImport); tableColumnJMSSqlSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JMSSqlSchemaObjMembers"); tableColumnJMSSqlSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlSchemaObjMembers); tableColumnJMSSqlSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JMSSqlSchemaObjImpl"); tableColumnJMSSqlSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlSchemaObjImpl); tableColumnJMSSqlSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JMSSqlSchemaObjImport"); tableColumnJMSSqlSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlSchemaObjImport); tableColumnJMySqlSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JMySqlSchemaObjMembers"); tableColumnJMySqlSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlSchemaObjMembers); tableColumnJMySqlSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JMySqlSchemaObjImpl"); tableColumnJMySqlSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlSchemaObjImpl); tableColumnJMySqlSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JMySqlSchemaObjImport"); tableColumnJMySqlSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlSchemaObjImport); tableColumnJOracleSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JOracleSchemaObjMembers"); tableColumnJOracleSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJOracleSchemaObjMembers); tableColumnJOracleSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JOracleSchemaObjImpl"); tableColumnJOracleSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJOracleSchemaObjImpl); tableColumnJOracleSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JOracleSchemaObjImport"); tableColumnJOracleSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJOracleSchemaObjImport); tableColumnJPgSqlSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JPgSqlSchemaObjMembers"); tableColumnJPgSqlSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlSchemaObjMembers); tableColumnJPgSqlSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JPgSqlSchemaObjImpl"); tableColumnJPgSqlSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlSchemaObjImpl); tableColumnJPgSqlSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JPgSqlSchemaObjImport"); tableColumnJPgSqlSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlSchemaObjImport); tableColumnJSybaseSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JSybaseSchemaObjMembers"); tableColumnJSybaseSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseSchemaObjMembers); tableColumnJSybaseSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JSybaseSchemaObjImpl"); tableColumnJSybaseSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseSchemaObjImpl); tableColumnJSybaseSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JSybaseSchemaObjImport"); tableColumnJSybaseSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseSchemaObjImport); tableColumnJRamSchemaObjMembers = new TableColumn<ICFBamSchemaDefObj, String>("JRamSchemaObjMembers"); tableColumnJRamSchemaObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamSchemaObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamSchemaObjMembers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJRamSchemaObjMembers); tableColumnJRamSchemaObjImpl = new TableColumn<ICFBamSchemaDefObj, String>("JRamSchemaObjImpl"); tableColumnJRamSchemaObjImpl.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamSchemaObjImpl(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamSchemaObjImpl.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJRamSchemaObjImpl); tableColumnJRamSchemaObjImport = new TableColumn<ICFBamSchemaDefObj, String>("JRamSchemaObjImport"); tableColumnJRamSchemaObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamSchemaObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamSchemaObjImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJRamSchemaObjImport); tableColumnJXMsgSchemaImport = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgSchemaImport"); tableColumnJXMsgSchemaImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgSchemaImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgSchemaImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgSchemaImport); tableColumnJXMsgSchemaFormatters = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgSchemaFormatters"); tableColumnJXMsgSchemaFormatters.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgSchemaFormatters(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgSchemaFormatters.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgSchemaFormatters); tableColumnJXMsgClientSchemaImport = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgClientSchemaImport"); tableColumnJXMsgClientSchemaImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientSchemaImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientSchemaImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientSchemaImport); tableColumnJXMsgClientSchemaBody = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgClientSchemaBody"); tableColumnJXMsgClientSchemaBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientSchemaBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientSchemaBody.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientSchemaBody); tableColumnJXMsgRqstSchemaBody = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRqstSchemaBody"); tableColumnJXMsgRqstSchemaBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstSchemaBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstSchemaBody.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstSchemaBody); tableColumnJXMsgRqstSchemaImport = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRqstSchemaImport"); tableColumnJXMsgRqstSchemaImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstSchemaImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstSchemaImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstSchemaImport); tableColumnJXMsgRqstSchemaWireParsers = new TableColumn<ICFBamSchemaDefObj, String>( "JXMsgRqstSchemaWireParsers"); tableColumnJXMsgRqstSchemaWireParsers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstSchemaWireParsers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstSchemaWireParsers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstSchemaWireParsers); tableColumnJXMsgRqstSchemaXsdSpec = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRqstSchemaXsdSpec"); tableColumnJXMsgRqstSchemaXsdSpec.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstSchemaXsdSpec(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstSchemaXsdSpec.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstSchemaXsdSpec); tableColumnJXMsgRqstSchemaXsdElementList = new TableColumn<ICFBamSchemaDefObj, String>( "JXMsgRqstSchemaXsdElementList"); tableColumnJXMsgRqstSchemaXsdElementList.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstSchemaXsdElementList(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstSchemaXsdElementList.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstSchemaXsdElementList); tableColumnJXMsgRspnSchemaBody = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRspnSchemaBody"); tableColumnJXMsgRspnSchemaBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnSchemaBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnSchemaBody.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnSchemaBody); tableColumnJXMsgRspnSchemaImport = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRspnSchemaImport"); tableColumnJXMsgRspnSchemaImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnSchemaImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnSchemaImport.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnSchemaImport); tableColumnJXMsgRspnSchemaWireParsers = new TableColumn<ICFBamSchemaDefObj, String>( "JXMsgRspnSchemaWireParsers"); tableColumnJXMsgRspnSchemaWireParsers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnSchemaWireParsers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnSchemaWireParsers.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnSchemaWireParsers); tableColumnJXMsgRspnSchemaXsdElementList = new TableColumn<ICFBamSchemaDefObj, String>( "JXMsgRspnSchemaXsdElementList"); tableColumnJXMsgRspnSchemaXsdElementList.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnSchemaXsdElementList(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnSchemaXsdElementList.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnSchemaXsdElementList); tableColumnJXMsgRspnSchemaXsdSpec = new TableColumn<ICFBamSchemaDefObj, String>("JXMsgRspnSchemaXsdSpec"); tableColumnJXMsgRspnSchemaXsdSpec.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamSchemaDefObj, String> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnSchemaXsdSpec(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnSchemaXsdSpec.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, String>, TableCell<ICFBamSchemaDefObj, String>>() { @Override public TableCell<ICFBamSchemaDefObj, String> call(TableColumn<ICFBamSchemaDefObj, String> arg) { return new CFTextTableCell<ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnSchemaXsdSpec); tableColumnLookupDefaultLicense = new TableColumn<ICFBamSchemaDefObj, ICFInternetLicenseObj>( "Default License"); tableColumnLookupDefaultLicense.setCellValueFactory( new Callback<CellDataFeatures<ICFBamSchemaDefObj, ICFInternetLicenseObj>, ObservableValue<ICFInternetLicenseObj>>() { public ObservableValue<ICFInternetLicenseObj> call( CellDataFeatures<ICFBamSchemaDefObj, ICFInternetLicenseObj> p) { ICFBamSchemaDefObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFInternetLicenseObj ref = obj.getOptionalLookupDefaultLicense(); ReadOnlyObjectWrapper<ICFInternetLicenseObj> observable = new ReadOnlyObjectWrapper<ICFInternetLicenseObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupDefaultLicense.setCellFactory( new Callback<TableColumn<ICFBamSchemaDefObj, ICFInternetLicenseObj>, TableCell<ICFBamSchemaDefObj, ICFInternetLicenseObj>>() { @Override public TableCell<ICFBamSchemaDefObj, ICFInternetLicenseObj> call( TableColumn<ICFBamSchemaDefObj, ICFInternetLicenseObj> arg) { return new CFReferenceTableCell<ICFBamSchemaDefObj, ICFInternetLicenseObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefaultLicense); dataTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<ICFBamSchemaDefObj>() { @Override public void changed(ObservableValue<? extends ICFBamSchemaDefObj> observable, ICFBamSchemaDefObj oldValue, ICFBamSchemaDefObj 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 (observableListOfSchemaDef != null) { dataTable.setItems(observableListOfSchemaDef); } adjustListButtons(); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXAtomListPane.java
public CFBamJavaFXAtomListPane(ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamScopeObj argContainer, ICFBamAtomObj argFocus, Collection<ICFBamAtomObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { super();//from w ww. j ava 2 s . com 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<ICFBamAtomObj>(); tableColumnObjKind = new TableColumn<ICFBamAtomObj, String>("Class Code"); tableColumnObjKind.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { @Override public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, String> p) { ICFBamAtomObj 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnObjKind); tableColumnId = new TableColumn<ICFBamAtomObj, Long>("Id"); tableColumnId .setCellValueFactory(new Callback<CellDataFeatures<ICFBamAtomObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, Long>, TableCell<ICFBamAtomObj, Long>>() { @Override public TableCell<ICFBamAtomObj, Long> call(TableColumn<ICFBamAtomObj, Long> arg) { return new CFInt64TableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamAtomObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnShortName = new TableColumn<ICFBamAtomObj, String>("Short Name"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamAtomObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamAtomObj, String>("Short Description"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamAtomObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnIsNullable = new TableColumn<ICFBamAtomObj, Boolean>("Is Nullable"); tableColumnIsNullable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, Boolean>, TableCell<ICFBamAtomObj, Boolean>>() { @Override public TableCell<ICFBamAtomObj, Boolean> call(TableColumn<ICFBamAtomObj, Boolean> arg) { return new CFBoolTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnIsNullable); tableColumnGenerateId = new TableColumn<ICFBamAtomObj, Boolean>("Generate Id"); tableColumnGenerateId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, Boolean>, TableCell<ICFBamAtomObj, Boolean>>() { @Override public TableCell<ICFBamAtomObj, Boolean> call(TableColumn<ICFBamAtomObj, Boolean> arg) { return new CFBoolTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnGenerateId); tableColumnDefaultVisibility = new TableColumn<ICFBamAtomObj, Boolean>("Default Visibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, Boolean>, TableCell<ICFBamAtomObj, Boolean>>() { @Override public TableCell<ICFBamAtomObj, Boolean> call(TableColumn<ICFBamAtomObj, Boolean> arg) { return new CFBoolTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnDbName = new TableColumn<ICFBamAtomObj, String>("Db Name"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamAtomObj, 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<ICFBamAtomObj, String>, TableCell<ICFBamAtomObj, String>>() { @Override public TableCell<ICFBamAtomObj, String> call(TableColumn<ICFBamAtomObj, String> arg) { return new CFStringTableCell<ICFBamAtomObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnLookupDefSchema = new TableColumn<ICFBamAtomObj, ICFBamSchemaDefObj>( "Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback<CellDataFeatures<ICFBamAtomObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamAtomObj, ICFBamSchemaDefObj> p) { ICFBamAtomObj 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<ICFBamAtomObj, ICFBamSchemaDefObj>, TableCell<ICFBamAtomObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamAtomObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamAtomObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamAtomObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); dataTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<ICFBamAtomObj>() { @Override public void changed(ObservableValue<? extends ICFBamAtomObj> observable, ICFBamAtomObj oldValue, ICFBamAtomObj 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 (observableListOfAtom != null) { dataTable.setItems(observableListOfAtom); } adjustListButtons(); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXValueListPane.java
public CFBamJavaFXValueListPane(ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamScopeObj argContainer, ICFBamValueObj argFocus, Collection<ICFBamValueObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { super();// w w w. ja v a2 s. co m 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<ICFBamValueObj>(); tableColumnObjKind = new TableColumn<ICFBamValueObj, String>("Class Code"); tableColumnObjKind.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { @Override public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, String> p) { ICFBamValueObj 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnObjKind); tableColumnId = new TableColumn<ICFBamValueObj, Long>("Id"); tableColumnId .setCellValueFactory(new Callback<CellDataFeatures<ICFBamValueObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, Long>, TableCell<ICFBamValueObj, Long>>() { @Override public TableCell<ICFBamValueObj, Long> call(TableColumn<ICFBamValueObj, Long> arg) { return new CFInt64TableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamValueObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnShortName = new TableColumn<ICFBamValueObj, String>("Short Name"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamValueObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamValueObj, String>("Short Description"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamValueObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, String>, TableCell<ICFBamValueObj, String>>() { @Override public TableCell<ICFBamValueObj, String> call(TableColumn<ICFBamValueObj, String> arg) { return new CFStringTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnIsNullable = new TableColumn<ICFBamValueObj, Boolean>("Is Nullable"); tableColumnIsNullable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, Boolean>, TableCell<ICFBamValueObj, Boolean>>() { @Override public TableCell<ICFBamValueObj, Boolean> call(TableColumn<ICFBamValueObj, Boolean> arg) { return new CFBoolTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnIsNullable); tableColumnGenerateId = new TableColumn<ICFBamValueObj, Boolean>("Generate Id"); tableColumnGenerateId.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, Boolean>, TableCell<ICFBamValueObj, Boolean>>() { @Override public TableCell<ICFBamValueObj, Boolean> call(TableColumn<ICFBamValueObj, Boolean> arg) { return new CFBoolTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnGenerateId); tableColumnDefaultVisibility = new TableColumn<ICFBamValueObj, Boolean>("Default Visibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamValueObj, 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<ICFBamValueObj, Boolean>, TableCell<ICFBamValueObj, Boolean>>() { @Override public TableCell<ICFBamValueObj, Boolean> call(TableColumn<ICFBamValueObj, Boolean> arg) { return new CFBoolTableCell<ICFBamValueObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnLookupDefSchema = new TableColumn<ICFBamValueObj, ICFBamSchemaDefObj>( "Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback<CellDataFeatures<ICFBamValueObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamValueObj, ICFBamSchemaDefObj> p) { ICFBamValueObj 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<ICFBamValueObj, ICFBamSchemaDefObj>, TableCell<ICFBamValueObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamValueObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamValueObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamValueObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); dataTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<ICFBamValueObj>() { @Override public void changed(ObservableValue<? extends ICFBamValueObj> observable, ICFBamValueObj oldValue, ICFBamValueObj 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 (observableListOfValue != null) { dataTable.setItems(observableListOfValue); } adjustListButtons(); }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTablePickerPane.java
public CFBamJavaFXTablePickerPane(ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamTableObj argFocus, ICFBamSchemaDefObj argContainer, Collection<ICFBamTableObj> argDataCollection, ICFBamJavaFXTableChosen whenChosen) { super();//w ww . ja v a2 s . co m 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<ICFBamTableObj>(); tableColumnId = new TableColumn<ICFBamTableObj, Long>("Id"); tableColumnId .setCellValueFactory(new Callback<CellDataFeatures<ICFBamTableObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamTableObj, Long> p) { ICFBamScopeObj 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<ICFBamTableObj, Long>, TableCell<ICFBamTableObj, Long>>() { @Override public TableCell<ICFBamTableObj, Long> call(TableColumn<ICFBamTableObj, Long> arg) { return new CFInt64TableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamTableObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnDbName = new TableColumn<ICFBamTableObj, String>("Db Name"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnShortName = new TableColumn<ICFBamTableObj, String>("Short Name"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamTableObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamTableObj, String>("Short Description"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamTableObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnPageData = new TableColumn<ICFBamTableObj, Boolean>("PageData"); tableColumnPageData.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredPageData(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnPageData.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnPageData); tableColumnTableClassCode = new TableColumn<ICFBamTableObj, String>("Table Class Code"); tableColumnTableClassCode.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredTableClassCode(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnTableClassCode.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnTableClassCode); tableColumnPolyBase = new TableColumn<ICFBamTableObj, Boolean>("Polymorphic Base"); tableColumnPolyBase.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredPolyBase(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnPolyBase.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnPolyBase); tableColumnIsInstantiable = new TableColumn<ICFBamTableObj, Boolean>("Is Instantiable"); tableColumnIsInstantiable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredIsInstantiable(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnIsInstantiable.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnIsInstantiable); tableColumnHasHistory = new TableColumn<ICFBamTableObj, Boolean>("Has History"); tableColumnHasHistory.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredHasHistory(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnHasHistory.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnHasHistory); tableColumnHasAuditColumns = new TableColumn<ICFBamTableObj, Boolean>("Has Audit Columns"); tableColumnHasAuditColumns.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredHasAuditColumns(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnHasAuditColumns.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnHasAuditColumns); tableColumnLoaderBehaviour = new TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>( "Loader Behaviour"); tableColumnLoaderBehaviour.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>, ObservableValue<ICFBamSchema.LoaderBehaviourEnum>>() { public ObservableValue<ICFBamSchema.LoaderBehaviourEnum> call( CellDataFeatures<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.LoaderBehaviourEnum value = obj.getRequiredLoaderBehaviour(); ReadOnlyObjectWrapper<ICFBamSchema.LoaderBehaviourEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.LoaderBehaviourEnum>(); observable.setValue(value); return (observable); } } }); tableColumnLoaderBehaviour.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>, TableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> call( TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> arg) { return new CFEnumTableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>(); } }); dataTable.getColumns().add(tableColumnLoaderBehaviour); tableColumnSecurityScope = new TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>( "Security Scope"); tableColumnSecurityScope.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>, ObservableValue<ICFBamSchema.SecurityScopeEnum>>() { public ObservableValue<ICFBamSchema.SecurityScopeEnum> call( CellDataFeatures<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.SecurityScopeEnum value = obj.getRequiredSecurityScope(); ReadOnlyObjectWrapper<ICFBamSchema.SecurityScopeEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.SecurityScopeEnum>(); observable.setValue(value); return (observable); } } }); tableColumnSecurityScope.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>, TableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> call( TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> arg) { return new CFEnumTableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>(); } }); dataTable.getColumns().add(tableColumnSecurityScope); tableColumnJObjMembers = new TableColumn<ICFBamTableObj, String>("JObjMembers"); tableColumnJObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjMembers); tableColumnJObjInterface = new TableColumn<ICFBamTableObj, String>("JObjInterface"); tableColumnJObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjInterface); tableColumnJObjImport = new TableColumn<ICFBamTableObj, String>("JObjImport"); tableColumnJObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjImport); tableColumnJObjImplementation = new TableColumn<ICFBamTableObj, String>("JObjImplementation"); tableColumnJObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjImplementation); tableColumnJEditObjMembers = new TableColumn<ICFBamTableObj, String>("JEditObjMembers"); tableColumnJEditObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjMembers); tableColumnJEditObjInterface = new TableColumn<ICFBamTableObj, String>("JEditObjInterface"); tableColumnJEditObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjInterface); tableColumnJEditObjImport = new TableColumn<ICFBamTableObj, String>("JEditObjImport"); tableColumnJEditObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjImport); tableColumnJEditObjImplementation = new TableColumn<ICFBamTableObj, String>("JEditObjImplementation"); tableColumnJEditObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjImplementation); tableColumnJTableImport = new TableColumn<ICFBamTableObj, String>("JTableImport"); tableColumnJTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableImport); tableColumnJTableMembers = new TableColumn<ICFBamTableObj, String>("JTableMembers"); tableColumnJTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableMembers); tableColumnJTableInterface = new TableColumn<ICFBamTableObj, String>("JTableInterface"); tableColumnJTableInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableInterface); tableColumnJTableImplementation = new TableColumn<ICFBamTableObj, String>("JTableImplementation"); tableColumnJTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableImplementation); tableColumnJTableObjImport = new TableColumn<ICFBamTableObj, String>("JTableObjImport"); tableColumnJTableObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjImport); tableColumnJTableObjMembers = new TableColumn<ICFBamTableObj, String>("JTableObjMembers"); tableColumnJTableObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjMembers); tableColumnJTableObjInterface = new TableColumn<ICFBamTableObj, String>("JTableObjInterface"); tableColumnJTableObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjInterface); tableColumnJTableObjImplementation = new TableColumn<ICFBamTableObj, String>("JTableObjImplementation"); tableColumnJTableObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjImplementation); tableColumnJDb2LUWTableImport = new TableColumn<ICFBamTableObj, String>("JDb2LUWTableImport"); tableColumnJDb2LUWTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableImport); tableColumnJDb2LUWTableMembers = new TableColumn<ICFBamTableObj, String>("JDb2LUWTableMembers"); tableColumnJDb2LUWTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableMembers); tableColumnJDb2LUWTableImplementation = new TableColumn<ICFBamTableObj, String>( "JDb2LUWTableImplementation"); tableColumnJDb2LUWTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableImplementation); tableColumnJMSSqlTableImport = new TableColumn<ICFBamTableObj, String>("JMSSqlTableImport"); tableColumnJMSSqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableImport); tableColumnJMSSqlTableMembers = new TableColumn<ICFBamTableObj, String>("JMSSqlTableMembers"); tableColumnJMSSqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableMembers); tableColumnJMSSqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JMSSqlTableImplementation"); tableColumnJMSSqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableImplementation); tableColumnJMySqlTableImport = new TableColumn<ICFBamTableObj, String>("JMySqlTableImport"); tableColumnJMySqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableImport); tableColumnJMySqlTableMembers = new TableColumn<ICFBamTableObj, String>("JMySqlTableMembers"); tableColumnJMySqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableMembers); tableColumnJMySqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JMySqlTableImplementation"); tableColumnJMySqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableImplementation); tableColumnJOracleTableImport = new TableColumn<ICFBamTableObj, String>("JOracleTableImport"); tableColumnJOracleTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableImport); tableColumnJOracleTableMembers = new TableColumn<ICFBamTableObj, String>("JOracleTableMembers"); tableColumnJOracleTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableMembers); tableColumnJOracleTableImplementation = new TableColumn<ICFBamTableObj, String>( "JOracleTableImplementation"); tableColumnJOracleTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableImplementation); tableColumnJPgSqlTableImport = new TableColumn<ICFBamTableObj, String>("JPgSqlTableImport"); tableColumnJPgSqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableImport); tableColumnJPgSqlTableMembers = new TableColumn<ICFBamTableObj, String>("JPgSqlTableMembers"); tableColumnJPgSqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableMembers); tableColumnJPgSqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JPgSqlTableImplementation"); tableColumnJPgSqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableImplementation); tableColumnJSybaseTableImport = new TableColumn<ICFBamTableObj, String>("JSybaseTableImport"); tableColumnJSybaseTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableImport); tableColumnJSybaseTableMembers = new TableColumn<ICFBamTableObj, String>("JSybaseTableMembers"); tableColumnJSybaseTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableMembers); tableColumnJSybaseTableImplementation = new TableColumn<ICFBamTableObj, String>( "JSybaseTableImplementation"); tableColumnJSybaseTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableImplementation); tableColumnJRamTableImport = new TableColumn<ICFBamTableObj, String>("JRamTableImport"); tableColumnJRamTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableImport); tableColumnJRamTableMembers = new TableColumn<ICFBamTableObj, String>("JRamTableMembers"); tableColumnJRamTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableMembers); tableColumnJRamTableImplementation = new TableColumn<ICFBamTableObj, String>("JRamTableImplementation"); tableColumnJRamTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableImplementation); tableColumnJSaxLoaderImport = new TableColumn<ICFBamTableObj, String>("JSaxLoaderImport"); tableColumnJSaxLoaderImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderImport); tableColumnJSaxLoaderStartElement = new TableColumn<ICFBamTableObj, String>("JSaxLoaderStartElement"); tableColumnJSaxLoaderStartElement.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderStartElement(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderStartElement.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderStartElement); tableColumnJSaxLoaderEndElement = new TableColumn<ICFBamTableObj, String>("JSaxLoaderEndElement"); tableColumnJSaxLoaderEndElement.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderEndElement(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderEndElement.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderEndElement); tableColumnJXMsgTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgTableImport"); tableColumnJXMsgTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgTableImport); tableColumnJXMsgTableFormatters = new TableColumn<ICFBamTableObj, String>("JXMsgTableFormatters"); tableColumnJXMsgTableFormatters.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgTableFormatters(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgTableFormatters.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgTableFormatters); tableColumnJXMsgRqstTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgRqstTableImport"); tableColumnJXMsgRqstTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstTableImport); tableColumnJXMsgRspnTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgRspnTableImport"); tableColumnJXMsgRspnTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnTableImport); tableColumnJXMsgClientTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgClientTableImport"); tableColumnJXMsgClientTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientTableImport); tableColumnJXMsgRqstTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgRqstTableBody"); tableColumnJXMsgRqstTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstTableBody); tableColumnJXMsgRspnTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgRspnTableBody"); tableColumnJXMsgRspnTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnTableBody); tableColumnJXMsgClientTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgClientTableBody"); tableColumnJXMsgClientTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientTableBody); tableColumnDefaultVisibility = new TableColumn<ICFBamTableObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj 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<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnLookupDefSchema = new TableColumn<ICFBamTableObj, ICFBamSchemaDefObj>( "Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamTableObj, ICFBamSchemaDefObj> p) { ICFBamTableObj 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<ICFBamTableObj, ICFBamSchemaDefObj>, TableCell<ICFBamTableObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamTableObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); tableColumnLookupLookupIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Lookup Index"); tableColumnLookupLookupIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupLookupIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupLookupIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupLookupIndex); tableColumnLookupAltIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Alt Index"); tableColumnLookupAltIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupAltIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupAltIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupAltIndex); tableColumnLookupQualTable = new TableColumn<ICFBamTableObj, ICFBamTableObj>("Qualifying Table"); tableColumnLookupQualTable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamTableObj>, ObservableValue<ICFBamTableObj>>() { public ObservableValue<ICFBamTableObj> call( CellDataFeatures<ICFBamTableObj, ICFBamTableObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamTableObj ref = obj.getOptionalLookupQualTable(); ReadOnlyObjectWrapper<ICFBamTableObj> observable = new ReadOnlyObjectWrapper<ICFBamTableObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupQualTable.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamTableObj>, TableCell<ICFBamTableObj, ICFBamTableObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamTableObj> call( TableColumn<ICFBamTableObj, ICFBamTableObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnLookupQualTable); tableColumnLookupPrimaryIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Primary Index"); tableColumnLookupPrimaryIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupPrimaryIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupPrimaryIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupPrimaryIndex); dataTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<ICFBamTableObj>() { @Override public void changed(ObservableValue<? extends ICFBamTableObj> observable, ICFBamTableObj oldValue, ICFBamTableObj 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.choseTable(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"); } ICFBamTableObj selectedInstance = getJavaFXFocusAsTable(); invokeWhenChosen.choseTable(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); }
From source file:com.ggvaidya.scinames.ui.DatasetDiffController.java
@FXML private void displayComparisonStats(ActionEvent e) { Dataset ds1 = dataset1ComboBox.getValue(); Dataset ds2 = dataset2ComboBox.getValue(); Table<String, Dataset, String> precalc = getComparisonStats(ds1, ds2); ObservableList<TableColumn> cols = comparisonTableView.getColumns(); cols.clear();//from w w w .j av a2 s . c o m TableColumn<String, String> rowName = new TableColumn<>(""); rowName.setCellValueFactory(cvf -> new ReadOnlyStringWrapper(cvf.getValue())); cols.add(rowName); for (Dataset ds : Arrays.asList(ds1, ds2)) { TableColumn<String, String> datasetCol = new TableColumn<>(ds.getName()); datasetCol.setCellValueFactory(cvf -> new ReadOnlyStringWrapper(precalc.get(cvf.getValue(), ds))); cols.add(datasetCol); } // The "items" here are just the rows we've calculated. comparisonTableView.setItems(getComparisonStatRowHeaders()); }
From source file:com.ggvaidya.scinames.ui.DatasetDiffController.java
private TableColumn<DatasetRow, String> createTableColumnForDatasetRow(String colName, Function<DatasetRow, String> func) { TableColumn<DatasetRow, String> col = new TableColumn<>(colName); col.setCellValueFactory(cvf -> new ReadOnlyStringWrapper(func.apply(cvf.getValue()))); return col;// w w w . ja v a2s . co m }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTableListPane.java
public CFBamJavaFXTableListPane(ICFFormManager formManager, ICFBamJavaFXSchema argSchema, ICFBamSchemaDefObj argContainer, ICFBamTableObj argFocus, Collection<ICFBamTableObj> argDataCollection, ICFRefreshCallback refreshCallback, boolean sortByChain) { super();/*from www .j ava2 s . c o m*/ 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<ICFBamTableObj>(); tableColumnId = new TableColumn<ICFBamTableObj, Long>("Id"); tableColumnId .setCellValueFactory(new Callback<CellDataFeatures<ICFBamTableObj, Long>, ObservableValue<Long>>() { public ObservableValue<Long> call(CellDataFeatures<ICFBamTableObj, Long> p) { ICFBamScopeObj 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<ICFBamTableObj, Long>, TableCell<ICFBamTableObj, Long>>() { @Override public TableCell<ICFBamTableObj, Long> call(TableColumn<ICFBamTableObj, Long> arg) { return new CFInt64TableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnId); tableColumnName = new TableColumn<ICFBamTableObj, String>("Name"); tableColumnName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnName); tableColumnDbName = new TableColumn<ICFBamTableObj, String>("Db Name"); tableColumnDbName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDbName); tableColumnShortName = new TableColumn<ICFBamTableObj, String>("Short Name"); tableColumnShortName.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnShortName); tableColumnLabel = new TableColumn<ICFBamTableObj, String>("Label"); tableColumnLabel.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnLabel); tableColumnShortDescription = new TableColumn<ICFBamTableObj, String>("Short Description"); tableColumnShortDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnShortDescription); tableColumnDescription = new TableColumn<ICFBamTableObj, String>("Description"); tableColumnDescription.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj 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<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDescription); tableColumnPageData = new TableColumn<ICFBamTableObj, Boolean>("PageData"); tableColumnPageData.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredPageData(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnPageData.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnPageData); tableColumnTableClassCode = new TableColumn<ICFBamTableObj, String>("Table Class Code"); tableColumnTableClassCode.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getRequiredTableClassCode(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnTableClassCode.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFStringTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnTableClassCode); tableColumnPolyBase = new TableColumn<ICFBamTableObj, Boolean>("Polymorphic Base"); tableColumnPolyBase.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredPolyBase(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnPolyBase.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnPolyBase); tableColumnIsInstantiable = new TableColumn<ICFBamTableObj, Boolean>("Is Instantiable"); tableColumnIsInstantiable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredIsInstantiable(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnIsInstantiable.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnIsInstantiable); tableColumnHasHistory = new TableColumn<ICFBamTableObj, Boolean>("Has History"); tableColumnHasHistory.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredHasHistory(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnHasHistory.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnHasHistory); tableColumnHasAuditColumns = new TableColumn<ICFBamTableObj, Boolean>("Has Audit Columns"); tableColumnHasAuditColumns.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { boolean value = obj.getRequiredHasAuditColumns(); Boolean wrapped = new Boolean(value); ReadOnlyObjectWrapper<Boolean> observable = new ReadOnlyObjectWrapper<Boolean>(); observable.setValue(wrapped); return (observable); } } }); tableColumnHasAuditColumns.setCellFactory( new Callback<TableColumn<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnHasAuditColumns); tableColumnLoaderBehaviour = new TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>( "Loader Behaviour"); tableColumnLoaderBehaviour.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>, ObservableValue<ICFBamSchema.LoaderBehaviourEnum>>() { public ObservableValue<ICFBamSchema.LoaderBehaviourEnum> call( CellDataFeatures<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.LoaderBehaviourEnum value = obj.getRequiredLoaderBehaviour(); ReadOnlyObjectWrapper<ICFBamSchema.LoaderBehaviourEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.LoaderBehaviourEnum>(); observable.setValue(value); return (observable); } } }); tableColumnLoaderBehaviour.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>, TableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> call( TableColumn<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum> arg) { return new CFEnumTableCell<ICFBamTableObj, ICFBamSchema.LoaderBehaviourEnum>(); } }); dataTable.getColumns().add(tableColumnLoaderBehaviour); tableColumnSecurityScope = new TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>( "Security Scope"); tableColumnSecurityScope.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>, ObservableValue<ICFBamSchema.SecurityScopeEnum>>() { public ObservableValue<ICFBamSchema.SecurityScopeEnum> call( CellDataFeatures<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamSchema.SecurityScopeEnum value = obj.getRequiredSecurityScope(); ReadOnlyObjectWrapper<ICFBamSchema.SecurityScopeEnum> observable = new ReadOnlyObjectWrapper<ICFBamSchema.SecurityScopeEnum>(); observable.setValue(value); return (observable); } } }); tableColumnSecurityScope.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>, TableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> call( TableColumn<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum> arg) { return new CFEnumTableCell<ICFBamTableObj, ICFBamSchema.SecurityScopeEnum>(); } }); dataTable.getColumns().add(tableColumnSecurityScope); tableColumnJObjMembers = new TableColumn<ICFBamTableObj, String>("JObjMembers"); tableColumnJObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjMembers); tableColumnJObjInterface = new TableColumn<ICFBamTableObj, String>("JObjInterface"); tableColumnJObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjInterface); tableColumnJObjImport = new TableColumn<ICFBamTableObj, String>("JObjImport"); tableColumnJObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjImport); tableColumnJObjImplementation = new TableColumn<ICFBamTableObj, String>("JObjImplementation"); tableColumnJObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJObjImplementation); tableColumnJEditObjMembers = new TableColumn<ICFBamTableObj, String>("JEditObjMembers"); tableColumnJEditObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjMembers); tableColumnJEditObjInterface = new TableColumn<ICFBamTableObj, String>("JEditObjInterface"); tableColumnJEditObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjInterface); tableColumnJEditObjImport = new TableColumn<ICFBamTableObj, String>("JEditObjImport"); tableColumnJEditObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjImport); tableColumnJEditObjImplementation = new TableColumn<ICFBamTableObj, String>("JEditObjImplementation"); tableColumnJEditObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJEditObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJEditObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJEditObjImplementation); tableColumnJTableImport = new TableColumn<ICFBamTableObj, String>("JTableImport"); tableColumnJTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableImport); tableColumnJTableMembers = new TableColumn<ICFBamTableObj, String>("JTableMembers"); tableColumnJTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableMembers); tableColumnJTableInterface = new TableColumn<ICFBamTableObj, String>("JTableInterface"); tableColumnJTableInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableInterface); tableColumnJTableImplementation = new TableColumn<ICFBamTableObj, String>("JTableImplementation"); tableColumnJTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableImplementation); tableColumnJTableObjImport = new TableColumn<ICFBamTableObj, String>("JTableObjImport"); tableColumnJTableObjImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjImport); tableColumnJTableObjMembers = new TableColumn<ICFBamTableObj, String>("JTableObjMembers"); tableColumnJTableObjMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjMembers); tableColumnJTableObjInterface = new TableColumn<ICFBamTableObj, String>("JTableObjInterface"); tableColumnJTableObjInterface.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjInterface(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjInterface.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjInterface); tableColumnJTableObjImplementation = new TableColumn<ICFBamTableObj, String>("JTableObjImplementation"); tableColumnJTableObjImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJTableObjImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJTableObjImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJTableObjImplementation); tableColumnJDb2LUWTableImport = new TableColumn<ICFBamTableObj, String>("JDb2LUWTableImport"); tableColumnJDb2LUWTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableImport); tableColumnJDb2LUWTableMembers = new TableColumn<ICFBamTableObj, String>("JDb2LUWTableMembers"); tableColumnJDb2LUWTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableMembers); tableColumnJDb2LUWTableImplementation = new TableColumn<ICFBamTableObj, String>( "JDb2LUWTableImplementation"); tableColumnJDb2LUWTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJDb2LUWTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJDb2LUWTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJDb2LUWTableImplementation); tableColumnJMSSqlTableImport = new TableColumn<ICFBamTableObj, String>("JMSSqlTableImport"); tableColumnJMSSqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableImport); tableColumnJMSSqlTableMembers = new TableColumn<ICFBamTableObj, String>("JMSSqlTableMembers"); tableColumnJMSSqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableMembers); tableColumnJMSSqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JMSSqlTableImplementation"); tableColumnJMSSqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMSSqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMSSqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMSSqlTableImplementation); tableColumnJMySqlTableImport = new TableColumn<ICFBamTableObj, String>("JMySqlTableImport"); tableColumnJMySqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableImport); tableColumnJMySqlTableMembers = new TableColumn<ICFBamTableObj, String>("JMySqlTableMembers"); tableColumnJMySqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableMembers); tableColumnJMySqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JMySqlTableImplementation"); tableColumnJMySqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJMySqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJMySqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJMySqlTableImplementation); tableColumnJOracleTableImport = new TableColumn<ICFBamTableObj, String>("JOracleTableImport"); tableColumnJOracleTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableImport); tableColumnJOracleTableMembers = new TableColumn<ICFBamTableObj, String>("JOracleTableMembers"); tableColumnJOracleTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableMembers); tableColumnJOracleTableImplementation = new TableColumn<ICFBamTableObj, String>( "JOracleTableImplementation"); tableColumnJOracleTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJOracleTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJOracleTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJOracleTableImplementation); tableColumnJPgSqlTableImport = new TableColumn<ICFBamTableObj, String>("JPgSqlTableImport"); tableColumnJPgSqlTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableImport); tableColumnJPgSqlTableMembers = new TableColumn<ICFBamTableObj, String>("JPgSqlTableMembers"); tableColumnJPgSqlTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableMembers); tableColumnJPgSqlTableImplementation = new TableColumn<ICFBamTableObj, String>("JPgSqlTableImplementation"); tableColumnJPgSqlTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJPgSqlTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJPgSqlTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJPgSqlTableImplementation); tableColumnJSybaseTableImport = new TableColumn<ICFBamTableObj, String>("JSybaseTableImport"); tableColumnJSybaseTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableImport); tableColumnJSybaseTableMembers = new TableColumn<ICFBamTableObj, String>("JSybaseTableMembers"); tableColumnJSybaseTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableMembers); tableColumnJSybaseTableImplementation = new TableColumn<ICFBamTableObj, String>( "JSybaseTableImplementation"); tableColumnJSybaseTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSybaseTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSybaseTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSybaseTableImplementation); tableColumnJRamTableImport = new TableColumn<ICFBamTableObj, String>("JRamTableImport"); tableColumnJRamTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableImport); tableColumnJRamTableMembers = new TableColumn<ICFBamTableObj, String>("JRamTableMembers"); tableColumnJRamTableMembers.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableMembers(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableMembers.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableMembers); tableColumnJRamTableImplementation = new TableColumn<ICFBamTableObj, String>("JRamTableImplementation"); tableColumnJRamTableImplementation.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJRamTableImplementation(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJRamTableImplementation.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJRamTableImplementation); tableColumnJSaxLoaderImport = new TableColumn<ICFBamTableObj, String>("JSaxLoaderImport"); tableColumnJSaxLoaderImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderImport); tableColumnJSaxLoaderStartElement = new TableColumn<ICFBamTableObj, String>("JSaxLoaderStartElement"); tableColumnJSaxLoaderStartElement.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderStartElement(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderStartElement.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderStartElement); tableColumnJSaxLoaderEndElement = new TableColumn<ICFBamTableObj, String>("JSaxLoaderEndElement"); tableColumnJSaxLoaderEndElement.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJSaxLoaderEndElement(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJSaxLoaderEndElement.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJSaxLoaderEndElement); tableColumnJXMsgTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgTableImport"); tableColumnJXMsgTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgTableImport); tableColumnJXMsgTableFormatters = new TableColumn<ICFBamTableObj, String>("JXMsgTableFormatters"); tableColumnJXMsgTableFormatters.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgTableFormatters(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgTableFormatters.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgTableFormatters); tableColumnJXMsgRqstTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgRqstTableImport"); tableColumnJXMsgRqstTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstTableImport); tableColumnJXMsgRspnTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgRspnTableImport"); tableColumnJXMsgRspnTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnTableImport); tableColumnJXMsgClientTableImport = new TableColumn<ICFBamTableObj, String>("JXMsgClientTableImport"); tableColumnJXMsgClientTableImport.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientTableImport(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientTableImport.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientTableImport); tableColumnJXMsgRqstTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgRqstTableBody"); tableColumnJXMsgRqstTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRqstTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRqstTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRqstTableBody); tableColumnJXMsgRspnTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgRspnTableBody"); tableColumnJXMsgRspnTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgRspnTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgRspnTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgRspnTableBody); tableColumnJXMsgClientTableBody = new TableColumn<ICFBamTableObj, String>("JXMsgClientTableBody"); tableColumnJXMsgClientTableBody.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, String>, ObservableValue<String>>() { public ObservableValue<String> call(CellDataFeatures<ICFBamTableObj, String> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { String value = obj.getOptionalJXMsgClientTableBody(); ReadOnlyObjectWrapper<String> observable = new ReadOnlyObjectWrapper<String>(); observable.setValue(value); return (observable); } } }); tableColumnJXMsgClientTableBody.setCellFactory( new Callback<TableColumn<ICFBamTableObj, String>, TableCell<ICFBamTableObj, String>>() { @Override public TableCell<ICFBamTableObj, String> call(TableColumn<ICFBamTableObj, String> arg) { return new CFTextTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnJXMsgClientTableBody); tableColumnDefaultVisibility = new TableColumn<ICFBamTableObj, Boolean>("DefaultVisibility"); tableColumnDefaultVisibility.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, Boolean>, ObservableValue<Boolean>>() { public ObservableValue<Boolean> call(CellDataFeatures<ICFBamTableObj, Boolean> p) { ICFBamTableObj 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<ICFBamTableObj, Boolean>, TableCell<ICFBamTableObj, Boolean>>() { @Override public TableCell<ICFBamTableObj, Boolean> call(TableColumn<ICFBamTableObj, Boolean> arg) { return new CFBoolTableCell<ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnDefaultVisibility); tableColumnLookupDefSchema = new TableColumn<ICFBamTableObj, ICFBamSchemaDefObj>( "Defining Schema Definition"); tableColumnLookupDefSchema.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamSchemaDefObj>, ObservableValue<ICFBamSchemaDefObj>>() { public ObservableValue<ICFBamSchemaDefObj> call( CellDataFeatures<ICFBamTableObj, ICFBamSchemaDefObj> p) { ICFBamTableObj 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<ICFBamTableObj, ICFBamSchemaDefObj>, TableCell<ICFBamTableObj, ICFBamSchemaDefObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamSchemaDefObj> call( TableColumn<ICFBamTableObj, ICFBamSchemaDefObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamSchemaDefObj>(); } }); dataTable.getColumns().add(tableColumnLookupDefSchema); tableColumnLookupLookupIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Lookup Index"); tableColumnLookupLookupIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupLookupIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupLookupIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupLookupIndex); tableColumnLookupAltIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Alt Index"); tableColumnLookupAltIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupAltIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupAltIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupAltIndex); tableColumnLookupQualTable = new TableColumn<ICFBamTableObj, ICFBamTableObj>("Qualifying Table"); tableColumnLookupQualTable.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamTableObj>, ObservableValue<ICFBamTableObj>>() { public ObservableValue<ICFBamTableObj> call( CellDataFeatures<ICFBamTableObj, ICFBamTableObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamTableObj ref = obj.getOptionalLookupQualTable(); ReadOnlyObjectWrapper<ICFBamTableObj> observable = new ReadOnlyObjectWrapper<ICFBamTableObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupQualTable.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamTableObj>, TableCell<ICFBamTableObj, ICFBamTableObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamTableObj> call( TableColumn<ICFBamTableObj, ICFBamTableObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamTableObj>(); } }); dataTable.getColumns().add(tableColumnLookupQualTable); tableColumnLookupPrimaryIndex = new TableColumn<ICFBamTableObj, ICFBamIndexObj>("Primary Index"); tableColumnLookupPrimaryIndex.setCellValueFactory( new Callback<CellDataFeatures<ICFBamTableObj, ICFBamIndexObj>, ObservableValue<ICFBamIndexObj>>() { public ObservableValue<ICFBamIndexObj> call( CellDataFeatures<ICFBamTableObj, ICFBamIndexObj> p) { ICFBamTableObj obj = p.getValue(); if (obj == null) { return (null); } else { ICFBamIndexObj ref = obj.getOptionalLookupPrimaryIndex(); ReadOnlyObjectWrapper<ICFBamIndexObj> observable = new ReadOnlyObjectWrapper<ICFBamIndexObj>(); observable.setValue(ref); return (observable); } } }); tableColumnLookupPrimaryIndex.setCellFactory( new Callback<TableColumn<ICFBamTableObj, ICFBamIndexObj>, TableCell<ICFBamTableObj, ICFBamIndexObj>>() { @Override public TableCell<ICFBamTableObj, ICFBamIndexObj> call( TableColumn<ICFBamTableObj, ICFBamIndexObj> arg) { return new CFReferenceTableCell<ICFBamTableObj, ICFBamIndexObj>(); } }); dataTable.getColumns().add(tableColumnLookupPrimaryIndex); dataTable.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<ICFBamTableObj>() { @Override public void changed(ObservableValue<? extends ICFBamTableObj> observable, ICFBamTableObj oldValue, ICFBamTableObj 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 (observableListOfTable != null) { dataTable.setItems(observableListOfTable); } adjustListButtons(); }
From source file:memoryaid.SetReminderController.java
@FXML public void buildReminderTableData() throws SQLException { System.out.println("In builddata"); DbConnection db = new DbConnection(); Connection conn = db.connect(); String SQL = "select RId,ReminderName,ReminderType,StartDate,EndDate,ReminderTime from reminders"; ResultSet rs = conn.createStatement().executeQuery(SQL); TableColumn rIdCol = new TableColumn("RId"); rIdCol.setCellValueFactory(new PropertyValueFactory<>("reminderId")); TableColumn reminderNameCol = new TableColumn("ReminderName"); reminderNameCol.setCellValueFactory(new PropertyValueFactory<>("reminderName")); TableColumn reminderTypeCol = new TableColumn("ReminderType"); reminderTypeCol.setCellValueFactory(new PropertyValueFactory<>("reminderType")); TableColumn startDateCol = new TableColumn("StartDate"); startDateCol.setCellValueFactory(new PropertyValueFactory<>("startDate")); TableColumn endDateCol = new TableColumn("EndDate"); endDateCol.setCellValueFactory(new PropertyValueFactory<>("endDate")); TableColumn reminderTimeCol = new TableColumn("ReminderTime"); reminderTimeCol.setCellValueFactory(new PropertyValueFactory<>("reminderTime")); reminderTable.getColumns().add(rIdCol); reminderTable.getColumns().add(reminderNameCol); reminderTable.getColumns().add(reminderTypeCol); reminderTable.getColumns().add(startDateCol); reminderTable.getColumns().add(endDateCol); reminderTable.getColumns().add(reminderTimeCol); ObservableList<Object> data = FXCollections.observableArrayList(); while (rs.next()) { String rId = String.valueOf(rs.getInt("RId")); data.add(new ReminderModel(rId, rs.getString("ReminderName"), rs.getString("ReminderType"), rs.getString("StartDate"), rs.getString("EndDate"), rs.getString("ReminderTime"))); }// w ww.j a v a2 s . c om rs.close(); conn.close(); Callback<TableColumn<ReminderModel, String>, TableCell<ReminderModel, String>> cellFactory = ( TableColumn<ReminderModel, String> p) -> new EditingCell(); //Code For Reminder Name update reminderNameCol.setCellValueFactory(new PropertyValueFactory<>("reminderName")); reminderNameCol.setCellFactory(cellFactory); reminderNameCol.setOnEditCommit(new EventHandler<CellEditEvent<ReminderModel, String>>() { @Override public void handle(CellEditEvent<ReminderModel, String> t) { ((ReminderModel) t.getTableView().getItems().get(t.getTablePosition().getRow())) .setReminderName(t.getNewValue()); System.out.println("*******" + t.getNewValue()); ReminderModel selectedItem = (ReminderModel) reminderTable.getSelectionModel().getSelectedItem(); System.out.println(selectedItem); String rIdToUpdate = selectedItem.getReminderId(); Statement stmt = null; DbConnection db = new DbConnection(); Connection conn = db.connect(); try { stmt = conn.createStatement(); String updateSql = "UPDATE Reminders set ReminderName = '" + t.getNewValue() + "'" + "WHERE RId = '" + rIdToUpdate + "'"; stmt.executeUpdate(updateSql); } catch (SQLException ex) { Logger.getLogger(SetReminderController.class.getName()).log(Level.SEVERE, null, ex); } } }); //For ReminderType Column Update reminderTypeCol.setCellValueFactory(new PropertyValueFactory<>("reminderType")); reminderTypeCol.setCellFactory(cellFactory); reminderTypeCol.setOnEditCommit(new EventHandler<CellEditEvent<ReminderModel, String>>() { @Override public void handle(CellEditEvent<ReminderModel, String> t) { ((ReminderModel) t.getTableView().getItems().get(t.getTablePosition().getRow())) .setReminderType(t.getNewValue()); System.out.println("*******" + t.getNewValue()); ReminderModel selectedItem = (ReminderModel) reminderTable.getSelectionModel().getSelectedItem(); System.out.println(selectedItem); String rIdToUpdate = selectedItem.getReminderId(); Statement stmt = null; DbConnection db = new DbConnection(); Connection conn = db.connect(); try { stmt = conn.createStatement(); String updateSql = "UPDATE Reminders set ReminderType = '" + t.getNewValue() + "'" + "WHERE RId = '" + rIdToUpdate + "'"; stmt.executeUpdate(updateSql); } catch (SQLException ex) { Logger.getLogger(SetReminderController.class.getName()).log(Level.SEVERE, null, ex); } } }); //For reminderTime Column Update reminderTimeCol.setCellValueFactory(new PropertyValueFactory<>("reminderTime")); reminderTimeCol.setCellFactory(cellFactory); reminderTimeCol.setOnEditCommit(new EventHandler<CellEditEvent<ReminderModel, String>>() { @Override public void handle(CellEditEvent<ReminderModel, String> t) { ((ReminderModel) t.getTableView().getItems().get(t.getTablePosition().getRow())) .setReminderTime(t.getNewValue()); System.out.println("*******" + t.getNewValue()); ReminderModel selectedItem = (ReminderModel) reminderTable.getSelectionModel().getSelectedItem(); System.out.println(selectedItem); String rIdToUpdate = selectedItem.getReminderId(); Statement stmt = null; DbConnection db = new DbConnection(); Connection conn = db.connect(); try { stmt = conn.createStatement(); String updateSql = "UPDATE Reminders set ReminderTime = '" + t.getNewValue() + "'" + "WHERE RId = '" + rIdToUpdate + "'"; stmt.executeUpdate(updateSql); } catch (SQLException ex) { Logger.getLogger(SetReminderController.class.getName()).log(Level.SEVERE, null, ex); } } }); reminderTable.setItems(data); }