public void loadData(boolean forceReload) { ICFSecuritySchemaObj schemaObj = (ICFSecuritySchemaObj) javafxSchema.getSchema(); if ((containingCluster == null) || forceReload) { CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); containingCluster = schemaObj.getClusterTableObj().readClusterByIdIdx(containingClusterId); } if ((listOfSysCluster == null) || forceReload) { observableListOfSysCluster = null; listOfSysCluster = schemaObj .getSysClusterTableObj() .readSysClusterByClusterIdx(containingCluster.getRequiredId(), javafxIsInitializing); if (listOfSysCluster != null) { observableListOfSysCluster = FXCollections.observableArrayList(listOfSysCluster); observableListOfSysCluster.sort(compareSysClusterByQualName); } else { observableListOfSysCluster = FXCollections.observableArrayList(); } dataTable.setItems(observableListOfSysCluster); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
public void chose(ICFLibAnyObj value) { final String S_ProcName = "chose"; Node cont; ICFAsteriskSchemaObj schemaObj = (ICFAsteriskSchemaObj) javafxSchema.getSchema(); ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); ICFAsteriskExtensionsConfEditObj editObj = (ICFAsteriskExtensionsConfEditObj) focus.getEdit(); if (editObj != null) { focus = editObj; } ICFSecurityHostNodeObj referencedObj = (ICFSecurityHostNodeObj) javafxReferenceParentHostNode.getReferencedObject(); java.util.List<ICFSecurityHostNodeObj> listOfHostNode = null; CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); listOfHostNode = schemaObj.getHostNodeTableObj().readHostNodeByClusterIdx(containingClusterId); if (listOfHostNode == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "listOfHostNode"); } Collection<ICFSecurityHostNodeObj> cltn = listOfHostNode; CFBorderPane form = javafxSchema .getHostNodeFactory() .newPickerForm( cfFormManager, referencedObj, null, cltn, new CallbackHostNodeChosen()); ((ICFSecurityJavaFXHostNodePaneCommon) form).setPaneMode(CFPane.PaneMode.View); cfFormManager.pushForm(form); }