public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFSecuritySchemaObj schemaObj = swingSchema.getSchema();
   if (schemaObj == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj");
   }
   ICFSecurityHostNodeObj obj =
       (ICFSecurityHostNodeObj) schemaObj.getHostNodeTableObj().newInstance();
   ICFSecurityHostNodeEditObj edit = (ICFSecurityHostNodeEditObj) (obj.beginEdit());
   if (edit == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "edit");
   }
   ICFSecurityClusterObj secCluster = schemaObj.getSecCluster();
   edit.setRequiredContainerCluster(secCluster);
   JInternalFrame frame = swingSchema.getHostNodeFactory().newViewEditJInternalFrame(obj);
   frame.addInternalFrameListener(getViewEditInternalFrameListener());
   ICFSecuritySwingHostNodeJPanelCommon jpanelCommon =
       (ICFSecuritySwingHostNodeJPanelCommon) frame;
   jpanelCommon.setPanelMode(CFJPanel.PanelMode.Add);
   getDesktopPane().add(frame);
   frame.setVisible(true);
   frame.show();
 }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFSecuritySchemaObj schemaObj = swingSchema.getSchema();
   if (schemaObj == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj");
   }
   ICFSecurityHostNodeObj selectedInstance = getSwingFocusAsHostNode();
   if (selectedInstance != null) {
     String classCode = selectedInstance.getClassCode();
     if ("HSND".equals(classCode)) {
       JInternalFrame frame =
           swingSchema.getHostNodeFactory().newViewEditJInternalFrame(selectedInstance);
       frame.addInternalFrameListener(getViewEditInternalFrameListener());
       ((ICFSecuritySwingHostNodeJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
       getDesktopPane().add(frame);
       frame.setVisible(true);
       frame.show();
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUnsupportedClassException(
               getClass(),
               S_ProcName,
               "selectedInstance",
               selectedInstance,
               "ICFSecurityHostNodeObj");
     }
   }
 }
 public CFDbTestHostNodeEditObj(ICFSecurityHostNodeObj argOrig) {
   orig = argOrig;
   getBuff();
   CFSecurityHostNodeBuff origBuff = orig.getBuff();
   buff.set(origBuff);
   requiredContainerCluster = null;
 }
 public CFSecurityHostNodeBuff getBuff() {
   if (buff == null) {
     buff =
         ((ICFDbTestSchema) getOrigAsHostNode().getSchema().getBackingStore())
             .getFactoryHostNode()
             .newBuff();
     buff.set(orig.getBuff());
   }
   return (buff);
 }
 public void setIsNew(boolean value) {
   orig.setIsNew(value);
 }
 public boolean getIsNew() {
   return (orig.getIsNew());
 }
 public void setPKey(CFSecurityHostNodePKey value) {
   orig.setPKey(value);
   copyPKeyToBuff();
 }
 public CFSecurityHostNodePKey getPKey() {
   return (orig.getPKey());
 }
 public ICFSecuritySchemaObj getSchema() {
   return (orig.getSchema());
 }
 public void endEdit() {
   orig.endEdit();
 }
 public ICFSecurityHostNodeTableObj getHostNodeTable() {
   return (orig.getSchema().getHostNodeTableObj());
 }