public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   Container cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame frame = (JInternalFrame) cont;
     if (frame instanceof ICFDbTestSwingUInt64ColJPanelCommon) {
       ICFDbTestSwingUInt64ColJPanelCommon jpanelCommon =
           (ICFDbTestSwingUInt64ColJPanelCommon) frame;
       jpanelCommon.setPanelMode(CFJPanel.PanelMode.Unknown);
       ICFDbTestUInt64ColEditObj editObj =
           (ICFDbTestUInt64ColEditObj) jpanelCommon.getSwingFocusAsUInt64Col().getEdit();
       if (editObj != null) {
         editObj.endEdit();
       }
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUnsupportedClassException(
               getClass(), S_ProcName, "frame", frame, "ICFDbTestSwingUInt64ColJPanelCommon");
     }
     try {
       frame.setClosed(true);
     } catch (Exception x) {
     }
   }
 }
 public void setSwingFocus(ICFLibAnyObj value) {
   final String S_ProcName = "setSwingFocus";
   if ((value == null) || (value instanceof ICFDbTestUInt64ColObj)) {
     super.setSwingFocus(value);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(
             getClass(), S_ProcName, "value", value, "ICFDbTestUInt64ColObj");
   }
   ((ICFDbTestSwingUInt64ColJPanelCommon) swingViewEditJPanel).setSwingFocus(value);
   ICFDbTestUInt64ColObj argFocus = (ICFDbTestUInt64ColObj) value;
   if ((argFocus != null) && (!argFocus.getIsNew())) {
     argFocus = (ICFDbTestUInt64ColObj) argFocus.read(true);
     super.setSwingFocus(argFocus);
   }
 }
 public void setPanelMode(CFJPanel.PanelMode value) {
   final String S_ProcName = "setPanelMode";
   CFJPanel.PanelMode oldMode = getPanelMode();
   if (oldMode == value) {
     return;
   }
   if ((value != CFJPanel.PanelMode.Unknown)
       && (value != CFJPanel.PanelMode.View)
       && (value != CFJPanel.PanelMode.Delete)) {
     throw CFLib.getDefaultExceptionFactory()
         .newUsageException(
             getClass(),
             S_ProcName,
             "AskDeleteJPanels only support PanelMode Unknown, View or Delete");
   }
   super.setPanelMode(value);
   if (attrJPanel != null) {
     ((ICFDbTestSwingUInt64ColJPanelCommon) attrJPanel).setPanelMode(value);
   }
 }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   if (getSwingFocusAsUInt64Col() != null) {
     if (null == getSwingFocusAsUInt64Col().getEdit()) {
       JInternalFrame frame =
           swingSchema
               .getUInt64ColFactory()
               .newAskDeleteJInternalFrame(getSwingFocusAsUInt64Col());
       ((ICFDbTestSwingUInt64ColJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
       getDesktopPane().add(frame);
       frame.setVisible(true);
       frame.show();
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUsageException(
               getClass(),
               S_ProcName,
               "Cannot begin deletion of an object already edited by another window instance");
     }
   }
 }
 public void setSwingFocusAsUInt64Col(ICFDbTestUInt64ColObj value) {
   swingFocus = value;
   if (attrJPanel != null) {
     ((ICFDbTestSwingUInt64ColJPanelCommon) attrJPanel).setSwingFocus(value);
   }
 }
 public void setPanelMode(CFJPanel.PanelMode value) {
   CFJPanel.PanelMode oldMode = getPanelMode();
   if (oldMode == value) {
     return;
   }
   super.setPanelMode(value);
   ((ICFDbTestSwingUInt64ColJPanelCommon) swingViewEditJPanel).setPanelMode(value);
   if (value == CFJPanel.PanelMode.View) {
     if (actionEdit != null) {
       actionEdit.setEnabled(true);
     }
     if (actionSave != null) {
       actionSave.setEnabled(false);
     }
     if (actionDelete != null) {
       actionDelete.setEnabled(true);
     }
     if (actionClose != null) {
       actionClose.setEnabled(true);
     }
   } else if (value == CFJPanel.PanelMode.Edit) {
     if (actionEdit != null) {
       actionEdit.setEnabled(false);
     }
     if (actionSave != null) {
       actionSave.setEnabled(true);
     }
     if (actionDelete != null) {
       actionDelete.setEnabled(false);
     }
     if (actionClose != null) {
       actionClose.setEnabled(true);
     }
   } else if (value == CFJPanel.PanelMode.Add) {
     if (actionEdit != null) {
       actionEdit.setEnabled(false);
     }
     if (actionSave != null) {
       actionSave.setEnabled(true);
     }
     if (actionDelete != null) {
       actionDelete.setEnabled(false);
     }
     if (actionClose != null) {
       actionClose.setEnabled(true);
     }
   } else {
     if (actionEdit != null) {
       actionEdit.setEnabled(false);
     }
     if (actionSave != null) {
       actionSave.setEnabled(false);
     }
     if (actionDelete != null) {
       actionDelete.setEnabled(false);
     }
     if (actionClose != null) {
       actionClose.setEnabled(true);
     }
   }
 }