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); } }
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); ((ICFBamJavaFXInt32ColPaneCommon) javafxAddPane).setPaneMode(value); } catch (Throwable t) { super.setPaneMode(oldMode); ((ICFBamJavaFXInt32ColPaneCommon) 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); } } }