public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFBamInt32TypeObj focus = getSwingFocusAsInt32Type();
   if (focus != null) {
     ICFBamInt32TypeEditObj editObj = (ICFBamInt32TypeEditObj) (focus.getEdit());
     if (editObj != null) {
       setPanelMode(CFJPanel.PanelMode.Update);
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUsageException(
               getClass(), S_ProcName, "Cannot save on object that isn't being edited");
     }
   }
   try {
     setClosed(true);
   } catch (Exception x) {
   }
 }
 public void actionPerformed(ActionEvent e) {
   ICFBamInt32TypeObj focus = getSwingFocusAsInt32Type();
   if (focus != null) {
     ICFBamInt32TypeEditObj editObj = (ICFBamInt32TypeEditObj) 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) {
   }
 }