public void internalFrameClosed(InternalFrameEvent e) {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       refreshMe();
     }
   }
 }
Exemplo n.º 2
0
  // java.awt.Toolkit#getNativeContainer() is not available
  //  from this package
  private WComponentPeer getNearestNativePeer(Component comp) {
    if (comp == null) return null;

    ComponentPeer peer = comp.getPeer();
    if (peer == null) return null;

    while (peer instanceof java.awt.peer.LightweightPeer) {
      comp = comp.getParent();
      if (comp == null) return null;
      peer = comp.getPeer();
      if (peer == null) return null;
    }

    if (peer instanceof WComponentPeer) return (WComponentPeer) peer;
    else return null;
  }
 public void refreshMe() {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       Collection<ICFBamParamObj> dataCollection;
       ICFBamServerListFuncObj focus = getSwingFocusAsServerListFunc();
       if (focus != null) {
         dataCollection = focus.getOptionalComponentsParams(swingIsInitializing);
       } else {
         dataCollection = null;
       }
       JPanel panel = getTabViewComponentsParamsListJPanel();
       ICFBamSwingParamJPanelList jpList = (ICFBamSwingParamJPanelList) panel;
       jpList.setSwingDataCollection(dataCollection);
     }
   }
 }
 public void refreshMe() {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       Collection<ICFBamClearSubDep1Obj> dataCollection;
       ICFBamClearTopDepObj focus = (ICFBamClearTopDepObj) getSwingFocusAsClearTopDep();
       if (focus != null) {
         dataCollection = focus.getOptionalComponentsClearDep(swingIsInitializing);
       } else {
         dataCollection = null;
       }
       JPanel panel = getTabViewComponentsClearDepListJPanel();
       ICFBamSwingClearSubDep1JPanelList jpList = (ICFBamSwingClearSubDep1JPanelList) panel;
       jpList.setSwingDataCollection(dataCollection);
     }
   }
 }
 public void refreshMe() {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       Collection<ICFBamTableColObj> dataCollection;
       ICFBamTextTypeObj focus = (ICFBamTextTypeObj) getSwingFocusAsTextType();
       if (focus != null) {
         dataCollection = focus.getOptionalChildrenRef(swingIsInitializing);
       } else {
         dataCollection = null;
       }
       JPanel panel = getTabViewChildrenRefListJPanel();
       ICFBamSwingTableColJPanelList jpList = (ICFBamSwingTableColJPanelList) panel;
       jpList.setSwingDataCollection(dataCollection);
     }
   }
 }
 public void refreshMe() {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       Collection<ICFInternetMinorVersionObj> dataCollection;
       ICFAccMajorVersionObj focus = (ICFAccMajorVersionObj) getSwingFocusAsMajorVersion();
       if (focus != null) {
         dataCollection = focus.getOptionalComponentsMinorVersion(swingIsInitializing);
       } else {
         dataCollection = null;
       }
       JPanel panel = getTabViewComponentsMinorVersionListJPanel();
       ICFAccSwingMinorVersionJPanelList jpList = (ICFAccSwingMinorVersionJPanelList) panel;
       jpList.setSwingDataCollection(dataCollection);
     }
   }
 }
 public void choseTenant(ICFSecurityTenantObj value) {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       if (swingReferenceOwnerTenant != null) {
         ICFInternetDomainBaseObj cur = getSwingFocusAsDomainBase();
         if (cur != null) {
           ICFInternetDomainBaseEditObj editObj = (ICFBamDomainBaseEditObj) cur.getEdit();
           if (null != editObj) {
             CFJPanel.PanelMode curMode = getPanelMode();
             if ((curMode == CFJPanel.PanelMode.Add) || (curMode == CFJPanel.PanelMode.Edit)) {
               swingReferenceOwnerTenant.setReferencedObject(value);
               editObj.setRequiredOwnerTenant(value);
             }
           }
         }
       }
     }
   }
 }
 public void choseSecUser(ICFSecuritySecUserObj value) {
   Component cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     if (!((JInternalFrame) cont).isClosed()) {
       if (swingReferenceContainerSecUser != null) {
         ICFSecuritySecSessionObj cur = getSwingFocusAsSecSession();
         if (cur != null) {
           ICFSecuritySecSessionEditObj editObj = (ICFDbTestSecSessionEditObj) cur.getEdit();
           if (null != editObj) {
             CFJPanel.PanelMode curMode = getPanelMode();
             if ((curMode == CFJPanel.PanelMode.Add) || (curMode == CFJPanel.PanelMode.Edit)) {
               swingReferenceContainerSecUser.setReferencedObject(value);
               editObj.setRequiredContainerSecUser(value);
             }
           }
         }
       }
     }
   }
 }