public void adjustListButtons() {
    boolean enableState;
    boolean inEditState;
    boolean allowAdds;
    boolean inAddMode = false;
    ICFDbTestStringColObj selectedObj = getJavaFXFocusAsStringCol();
    CFPane.PaneMode mode = getPaneMode();
    if (mode == CFPane.PaneMode.Edit) {
      inEditState = true;
      allowAdds = false;
    } else {
      inEditState = false;
      if (getJavaFXContainer() != null) {
        if (getLeft() != null) {
          allowAdds = false;
          inAddMode = true;
        } else {
          allowAdds = true;
        }
      } else {
        allowAdds = false;
      }
    }
    if (selectedObj == null) {
      enableState = false;
    } else {
      if ((!inAddMode) && (!inEditState)) {
        enableState = true;
      } else {
        enableState = false;
      }
    }

    if (buttonViewSelected != null) {
      buttonViewSelected.setDisable(!enableState);
    }
    if (buttonEditSelected != null) {
      if (inEditState) {
        buttonEditSelected.setDisable(true);
      } else {
        buttonEditSelected.setDisable(!enableState);
      }
    }
    if (buttonDeleteSelected != null) {
      buttonDeleteSelected.setDisable(!enableState);
    }
    if (buttonAddStringCol != null) {
      buttonAddStringCol.setDisable(!allowAdds);
    }
  }
 public void adjustButtons() {
   CFPane.PaneMode value = getPaneMode();
   if (value == CFPane.PaneMode.View) {
     if (buttonEdit != null) {
       buttonEdit.setDisable(false);
     }
     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 (buttonEdit != null) {
       buttonEdit.setDisable(true);
     }
     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 (buttonEdit != null) {
       buttonEdit.setDisable(true);
     }
     if (buttonSave != null) {
       buttonSave.setDisable(false);
     }
     if (buttonClose != null) {
       buttonClose.setDisable(false);
     }
     if (buttonCancel != null) {
       buttonCancel.setDisable(false);
     }
   } else {
     if (buttonEdit != null) {
       buttonEdit.setDisable(true);
     }
     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);
     ((ICFDbTestJavaFXBlobDefPaneCommon) javafxAddPane).setPaneMode(value);
   } catch (Throwable t) {
     super.setPaneMode(oldMode);
     ((ICFDbTestJavaFXBlobDefPaneCommon) 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);
     }
   }
 }