public void view(ICFLibAnyObj value) { final String S_ProcName = "actionPerformed"; ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf(); if (focus != null) { ICFSecurityHostNodeObj referencedObj = (ICFSecurityHostNodeObj) javafxReferenceParentHostNode.getReferencedObject(); CFBorderPane form = null; if (referencedObj != null) { String classCode = referencedObj.getClassCode(); if ("HSND".equals(classCode)) { form = javafxSchema .getHostNodeFactory() .newAddForm(cfFormManager, referencedObj, null, true); ICFSecurityJavaFXHostNodePaneCommon spec = (ICFSecurityJavaFXHostNodePaneCommon) form; spec.setJavaFXFocus(referencedObj); spec.setPaneMode(CFPane.PaneMode.View); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "javaFXFocus", focus, "ICFAsteriskHostNodeObj"); } cfFormManager.pushForm(form); } } }
public void 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); }