public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFSecuritySecAppObj focus = getSwingFocusAsSecApp();
   if (focus != null) {
     ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) focus.getEdit();
     if (editObj != null) {
       focus = editObj;
     }
     JInternalFrame frame = null;
     Container cont;
     JDesktopPane desktop;
     ICFSecurityClusterObj referencedObj =
         (ICFSecurityClusterObj) focus.getRequiredContainerCluster(swingIsInitializing);
     if (referencedObj != null) {
       String classCode = referencedObj.getClassCode();
       if ("CLUS".equals(classCode)) {
         frame = swingSchema.getClusterFactory().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, "ICFSecurityClusterObj");
       }
     }
   }
 }
  public void populateFields() {
    ICFSecuritySecAppObj popObj;
    ICFSecuritySecAppObj focus = getSwingFocusAsSecApp();
    if (focus != null) {
      popObj = (ICFSecuritySecAppObj) (focus.getEdit());
      if (popObj == null) {
        popObj = focus;
      }
    } else {
      popObj = null;
    }
    if (getPanelMode() == CFJPanel.PanelMode.Unknown) {
      popObj = null;
    }
    if (popObj == null) {
      swingContainerClusterObj = null;
    } else {
      swingContainerClusterObj =
          (ICFSecurityClusterObj) popObj.getRequiredContainerCluster(swingIsInitializing);
    }
    if (swingReferenceContainerCluster != null) {
      swingReferenceContainerCluster.setReferencedObject(swingContainerClusterObj);
    }

    if (popObj == null) {
      getSwingEditorSecAppId().setInt32Value(null);
    } else {
      getSwingEditorSecAppId().setInt32Value(popObj.getRequiredSecAppId());
    }

    if (popObj == null) {
      getSwingEditorJEEMountName().setStringValue(null);
    } else {
      getSwingEditorJEEMountName().setStringValue(popObj.getRequiredJEEMountName());
    }
  }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   Container cont;
   JDesktopPane desktop;
   ICFSecuritySchemaObj schemaObj = swingSchema.getSchema();
   ICFSecuritySecAppObj focus = getSwingFocusAsSecApp();
   ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) focus.getEdit();
   if (editObj != null) {
     focus = editObj;
   }
   ICFSecurityClusterObj referencedObj =
       (ICFSecurityClusterObj) focus.getRequiredContainerCluster(swingIsInitializing);
   java.util.List<ICFSecurityClusterObj> listOfCluster = null;
   listOfCluster = schemaObj.getClusterTableObj().readAllCluster();
   if (listOfCluster == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "listOfCluster");
   }
   Collection<ICFSecurityClusterObj> cltn = listOfCluster;
   JInternalFrame frame =
       swingSchema
           .getClusterFactory()
           .newPickerJInternalFrame(
               referencedObj, null, cltn, new CallbackSecAppClusterChosen());
   ((ICFSecuritySwingClusterJPanelCommon) 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();
   }
 }