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 actionPerformed(ActionEvent e) {
   ICFDbTestUInt64ColObj focus = getSwingFocusAsUInt64Col();
   if (focus != null) {
     ICFDbTestUInt64ColEditObj editObj = (ICFDbTestUInt64ColEditObj) focus.getEdit();
     if (editObj != null) {
       if (editObj.getIsNew()) {
         editObj.endEdit();
         setSwingFocus(null);
         setPanelMode(CFJPanel.PanelMode.Unknown);
       } else {
         editObj.endEdit();
         setPanelMode(CFJPanel.PanelMode.View);
       }
     }
   }
   try {
     setClosed(true);
   } catch (Exception x) {
   }
 }