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 choseCluster(ICFSecurityClusterObj value) { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { if (swingReferenceContainerCluster != null) { ICFSecuritySecAppObj cur = getSwingFocusAsSecApp(); if (cur != null) { ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) cur.getEdit(); if (null != editObj) { CFJPanel.PanelMode curMode = getPanelMode(); if ((curMode == CFJPanel.PanelMode.Add) || (curMode == CFJPanel.PanelMode.Edit)) { swingReferenceContainerCluster.setReferencedObject(value); editObj.setRequiredContainerCluster(value); } } } } } } }