public void setPaneMode(CFPane.PaneMode value) {
   CFPane.PaneMode oldMode = getPaneMode();
   if (oldMode == value) {
     return;
   }
   try {
     super.setPaneMode(value);
     ((ICFBamJavaFXServerMethodPaneCommon) javafxAddPane).setPaneMode(value);
   } catch (Throwable t) {
     super.setPaneMode(oldMode);
     ((ICFBamJavaFXServerMethodPaneCommon) javafxAddPane).setPaneMode(oldMode);
     throw t;
   }
   if (value == CFPane.PaneMode.View) {
     if (buttonSave != null) {
       buttonSave.setDisable(true);
     }
     if (buttonCancel != null) {
       buttonCancel.setDisable(false);
     }
     if (buttonClose != null) {
       buttonClose.setDisable(true);
     }
   } else if (value == CFPane.PaneMode.Edit) {
     if (buttonSave != null) {
       buttonSave.setDisable(false);
     }
     if (buttonCancel != null) {
       buttonCancel.setDisable(false);
     }
     if (buttonClose != null) {
       buttonClose.setDisable(false);
     }
   } else if (value == CFPane.PaneMode.Add) {
     if (buttonSave != null) {
       buttonSave.setDisable(false);
     }
     if (buttonCancel != null) {
       buttonCancel.setDisable(false);
     }
     if (buttonClose != null) {
       buttonClose.setDisable(false);
     }
   } else {
     if (buttonSave != null) {
       buttonSave.setDisable(true);
     }
     if (buttonCancel != null) {
       buttonCancel.setDisable(false);
     }
     if (buttonClose != null) {
       buttonClose.setDisable(true);
     }
   }
 }
 public void setPaneMode(CFPane.PaneMode value) {
   CFPane.PaneMode oldMode = getPaneMode();
   if (oldMode == value) {
     return;
   }
   try {
     super.setPaneMode(value);
     ((ICFBamJavaFXServerMethodPaneCommon) attrPane).setPaneMode(value);
     ((ICFBamJavaFXServerMethodPaneCommon) eltTabPane).setPaneMode(value);
   } catch (Throwable t) {
     super.setPaneMode(oldMode);
     ((ICFBamJavaFXServerMethodPaneCommon) attrPane).setPaneMode(oldMode);
     ((ICFBamJavaFXServerMethodPaneCommon) eltTabPane).setPaneMode(oldMode);
     throw t;
   }
 }
 public void setJavaFXFocus(ICFLibAnyObj value) {
   final String S_ProcName = "setJavaFXFocus";
   if ((value == null) || (value instanceof ICFBamServerMethodObj)) {
     super.setJavaFXFocus(value);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(
             getClass(), S_ProcName, "value", value, "ICFBamServerMethodObj");
   }
   ((ICFBamJavaFXServerMethodPaneCommon) javafxAddPane).setJavaFXFocus(value);
   ICFBamServerMethodObj argFocus = (ICFBamServerMethodObj) value;
   if ((argFocus != null) && (!argFocus.getIsNew())) {
     argFocus = (ICFBamServerMethodObj) argFocus.read(true);
     super.setJavaFXFocus(argFocus);
   }
 }