public void populateFields() {
    ICFAsteriskExtensionsConfObj popObj;
    ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf();
    if (focus != null) {
      popObj = (ICFAsteriskExtensionsConfObj) (focus.getEdit());
      if (popObj == null) {
        popObj = focus;
      }
    } else {
      popObj = null;
    }
    if (getPaneMode() == CFPane.PaneMode.Unknown) {
      popObj = null;
    }
    if (popObj == null) {
      javafxParentHostNodeObj = null;
    } else {
      javafxParentHostNodeObj =
          (ICFSecurityHostNodeObj) popObj.getRequiredParentHostNode(javafxIsInitializing);
    }
    if (javafxReferenceParentHostNode != null) {
      javafxReferenceParentHostNode.setReferencedObject(javafxParentHostNodeObj);
    }

    if (popObj == null) {
      getJavaFXEditorId().setInt64Value(null);
    } else {
      getJavaFXEditorId().setInt64Value(popObj.getRequiredId());
    }

    if (popObj == null) {
      getJavaFXEditorFileFullName().setStringValue(null);
    } else {
      getJavaFXEditorFileFullName().setStringValue(popObj.getRequiredFileFullName());
    }

    if (popObj == null) {
      getJavaFXEditorFileContents().setTextValue(null);
    } else {
      getJavaFXEditorFileContents().setTextValue(popObj.getRequiredFileContents());
    }
  }
 public void adjustComponentEnableStates() {
   CFPane.PaneMode mode = getPaneMode();
   boolean isEditing;
   switch (mode) {
     case Unknown:
     case View:
     case Delete:
       isEditing = false;
       break;
     case Add:
     case Edit:
     case Update:
       isEditing = true;
       break;
     default:
       isEditing = false;
       break;
   }
   if (isEditing) {
     ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf();
     if (focus == null) {
       isEditing = false;
     } else if (null == focus.getEdit()) {
       isEditing = false;
     }
   }
   if (javafxReferenceParentHostNode != null) {
     javafxReferenceParentHostNode.setCustomDisable(!isEditing);
   }
   if (javafxEditorId != null) {
     javafxEditorId.setDisable(true);
   }
   if (javafxEditorFileFullName != null) {
     javafxEditorFileFullName.setDisable(!isEditing);
   }
   if (javafxEditorFileContents != null) {
     javafxEditorFileContents.setDisable(!isEditing);
   }
 }
  public void postFields() {
    final String S_ProcName = "postFields";
    ICFAsteriskExtensionsConfObj focus = getJavaFXFocusAsExtensionsConf();
    ICFAsteriskExtensionsConfEditObj editObj;
    if (focus != null) {
      editObj = (ICFAsteriskExtensionsConfEditObj) (focus.getEdit());
    } else {
      editObj = null;
    }
    if (editObj == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newUsageException(
              getClass(), S_ProcName, "Pane is unfocused or is not editing the focus object");
    }

    javafxParentHostNodeObj =
        (ICFSecurityHostNodeObj) (javafxReferenceParentHostNode.getReferencedObject());
    editObj.setRequiredParentHostNode(javafxParentHostNodeObj);

    editObj.setRequiredFileFullName(getJavaFXEditorFileFullName().getStringValue());

    editObj.setRequiredFileContents(getJavaFXEditorFileContents().getTextValue());
  }