public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession();
   if (focus != null) {
     ICFSecuritySecSessionEditObj editObj = (ICFDbTestSecSessionEditObj) focus.getEdit();
     if (editObj != null) {
       focus = editObj;
     }
     JInternalFrame frame = null;
     Container cont;
     JDesktopPane desktop;
     ICFDbTestSecUserObj referencedObj =
         (ICFDbTestSecUserObj) focus.getRequiredParentSecProxy(swingIsInitializing);
     if (referencedObj != null) {
       String classCode = referencedObj.getClassCode();
       if ("SUSR".equals(classCode)) {
         frame = swingSchema.getSecUserFactory().newViewEditJInternalFrame(referencedObj);
         cont = getParent();
         while ((cont != null) && (!(cont instanceof JInternalFrame))) {
           cont = cont.getParent();
         }
         if (cont != null) {
           JInternalFrame myInternalFrame = (JInternalFrame) cont;
           myInternalFrame.getDesktopPane().add(frame);
           frame.setVisible(true);
           frame.show();
         }
       } else {
         throw CFLib.getDefaultExceptionFactory()
             .newUnsupportedClassException(
                 getClass(), S_ProcName, "swingFocus", focus, "ICFDbTestSecUserObj");
       }
     }
   }
 }
  public void populateFields() {
    ICFSecuritySecSessionObj popObj;
    ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession();
    if (focus != null) {
      popObj = (ICFSecuritySecSessionObj) (focus.getEdit());
      if (popObj == null) {
        popObj = focus;
      }
    } else {
      popObj = null;
    }
    if (getPanelMode() == CFJPanel.PanelMode.Unknown) {
      popObj = null;
    }
    if (popObj == null) {
      swingContainerSecUserObj = null;
    } else {
      swingContainerSecUserObj =
          (ICFDbTestSecUserObj) popObj.getRequiredContainerSecUser(swingIsInitializing);
    }
    if (swingReferenceContainerSecUser != null) {
      swingReferenceContainerSecUser.setReferencedObject(swingContainerSecUserObj);
    }

    if (popObj == null) {
      swingParentSecProxyObj = null;
    } else {
      swingParentSecProxyObj =
          (ICFDbTestSecUserObj) popObj.getRequiredParentSecProxy(swingIsInitializing);
    }
    if (swingReferenceParentSecProxy != null) {
      swingReferenceParentSecProxy.setReferencedObject(swingParentSecProxyObj);
    }

    if (popObj == null) {
      getSwingEditorSecSessionId().setUuidValue(null);
    } else {
      getSwingEditorSecSessionId().setUuidValue(popObj.getRequiredSecSessionId());
    }

    if (popObj == null) {
      getSwingEditorSecDevName().setStringValue(null);
    } else {
      getSwingEditorSecDevName().setStringValue(popObj.getOptionalSecDevName());
    }

    if (popObj == null) {
      getSwingEditorStart().setTimestampValue(null);
    } else {
      getSwingEditorStart().setTimestampValue(popObj.getRequiredStart());
    }

    if (popObj == null) {
      getSwingEditorFinish().setTimestampValue(null);
    } else {
      getSwingEditorFinish().setTimestampValue(popObj.getOptionalFinish());
    }
  }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   Container cont;
   JDesktopPane desktop;
   ICFDbTestSchemaObj schemaObj = swingSchema.getSchema();
   ICFSecuritySecSessionObj focus = getSwingFocusAsSecSession();
   ICFSecuritySecSessionEditObj editObj = (ICFSecuritySecSessionEditObj) focus.getEdit();
   if (editObj != null) {
     focus = editObj;
   }
   ICFDbTestSecUserObj referencedObj =
       (ICFDbTestSecUserObj) focus.getRequiredParentSecProxy(swingIsInitializing);
   java.util.List<ICFSecuritySecUserObj> listOfSecUser = null;
   listOfSecUser = schemaObj.getSecUserTableObj().readAllSecUser();
   if (listOfSecUser == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "listOfSecUser");
   }
   Collection<ICFSecuritySecUserObj> cltn = listOfSecUser;
   JInternalFrame frame =
       swingSchema
           .getSecUserFactory()
           .newPickerJInternalFrame(
               referencedObj, null, cltn, new CallbackSecSessionProxyChosen());
   ((ICFDbTestSwingSecUserJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
   cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }