public void adjustComponentEnableStates() {
   CFJPanel.PanelMode mode = getPanelMode();
   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) {
     ICFSecurityISOCurrencyObj focus = getSwingFocusAsISOCurrency();
     if (focus == null) {
       isEditing = false;
     } else if (null == focus.getEdit()) {
       isEditing = false;
     }
   }
   if (swingEditorId != null) {
     swingEditorId.setEnabled(false);
   }
   if (swingEditorISOCode != null) {
     swingEditorISOCode.setEnabled(isEditing);
   }
   if (swingEditorName != null) {
     swingEditorName.setEnabled(isEditing);
   }
   if (swingEditorUnitSymbol != null) {
     swingEditorUnitSymbol.setEnabled(isEditing);
   }
   if (swingEditorFracSymbol != null) {
     swingEditorFracSymbol.setEnabled(isEditing);
   }
   if (swingEditorPrecis != null) {
     swingEditorPrecis.setEnabled(isEditing);
   }
 }
 public void adjustComponentEnableStates() {
   CFJPanel.PanelMode mode = getPanelMode();
   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) {
     ICFFreeSwitchPbxIvrMenuObj focus = getSwingFocusAsPbxIvrMenu();
     if (focus == null) {
       isEditing = false;
     } else if (null == focus.getEdit()) {
       isEditing = false;
     }
   }
   if (swingReferenceContainerTenant != null) {
     swingReferenceContainerTenant.setEnabled(false);
   }
   if (swingEditorMenuId != null) {
     swingEditorMenuId.setEnabled(false);
   }
   if (swingEditorName != null) {
     swingEditorName.setEnabled(isEditing);
   }
   if (swingEditorGreetLong != null) {
     swingEditorGreetLong.setEnabled(isEditing);
   }
   if (swingEditorGreetShort != null) {
     swingEditorGreetShort.setEnabled(isEditing);
   }
   if (swingEditorInvalidSound != null) {
     swingEditorInvalidSound.setEnabled(isEditing);
   }
   if (swingEditorExitSound != null) {
     swingEditorExitSound.setEnabled(isEditing);
   }
   if (swingEditorTimeout != null) {
     swingEditorTimeout.setEnabled(isEditing);
   }
   if (swingEditorInterDigitTimeout != null) {
     swingEditorInterDigitTimeout.setEnabled(isEditing);
   }
   if (swingEditorMaxFailures != null) {
     swingEditorMaxFailures.setEnabled(isEditing);
   }
   if (swingEditorMaxTimeouts != null) {
     swingEditorMaxTimeouts.setEnabled(isEditing);
   }
   if (swingEditorDigitLen != null) {
     swingEditorDigitLen.setEnabled(isEditing);
   }
 }