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) {
     ICFSecurityAuditActionObj focus = getSwingFocusAsAuditAction();
     if (focus == null) {
       isEditing = false;
     } else if (null == focus.getEdit()) {
       isEditing = false;
     }
   }
   if (swingEditorAuditActionId != null) {
     swingEditorAuditActionId.setEnabled(false);
   }
   if (swingEditorDescription != null) {
     swingEditorDescription.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);
   }
 }