public void adjustFinderButtons() {
    ICFSecuritySysClusterObj selectedObj = getJavaFXFocusAsSysCluster();
    boolean disableState;
    if (selectedObj == null) {
      disableState = true;
    } else {
      disableState = false;
    }
    boolean inAddMode;
    if (getLeft() == null) {
      inAddMode = false;
    } else {
      inAddMode = true;
      disableState = true;
    }

    if (buttonViewSelected != null) {
      buttonViewSelected.setDisable(disableState);
    }
    if (buttonEditSelected != null) {
      buttonEditSelected.setDisable(disableState);
    }
    if (buttonDeleteSelected != null) {
      buttonDeleteSelected.setDisable(disableState);
    }
    if (buttonAddSysCluster != null) {
      buttonAddSysCluster.setDisable(false);
    }
  }
  public void adjustFinderButtons() {
    ICFAsteriskExtensionsConfObj selectedObj = getJavaFXFocusAsExtensionsConf();
    boolean disableState;
    if (selectedObj == null) {
      disableState = true;
    } else {
      disableState = false;
    }
    boolean inAddMode;
    if (getLeft() == null) {
      inAddMode = false;
    } else {
      inAddMode = true;
      disableState = true;
    }

    if (buttonViewSelected != null) {
      buttonViewSelected.setDisable(disableState);
    }
    if (buttonEditSelected != null) {
      buttonEditSelected.setDisable(disableState);
    }
    if (buttonDeleteSelected != null) {
      buttonDeleteSelected.setDisable(disableState);
    }
    if (buttonAddExtensionsConf != null) {
      buttonAddExtensionsConf.setDisable(false);
    }
  }
  public void adjustListButtons() {
    boolean enableState;
    boolean inEditState;
    boolean allowAdds;
    boolean inAddMode = false;
    ICFAccFeeObj selectedObj = getJavaFXFocusAsFee();
    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 (buttonAddFee != null) {
      buttonAddFee.setDisable(!allowAdds);
    }
  }