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) {
     ICFInternetDomainBaseObj focus = getSwingFocusAsDomainBase();
     if (focus == null) {
       isEditing = false;
     } else if (null == focus.getEdit()) {
       isEditing = false;
     }
   }
   if (swingReferenceOwnerTenant != null) {
     swingReferenceOwnerTenant.setEnabled(false);
   }
   if (swingEditorId != null) {
     swingEditorId.setEnabled(false);
   }
   if (swingEditorDescription != null) {
     swingEditorDescription.setEnabled(isEditing);
   }
 }