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 JPanel getTabViewComponentsClearDepListJPanel() { if (tabViewComponentsClearDepListJPanel == null) { Collection<ICFBamClearSubDep1Obj> dataCollection; ICFBamClearTopDepObj focus = (ICFBamClearTopDepObj) getSwingFocusAsClearTopDep(); if (focus != null) { dataCollection = focus.getOptionalComponentsClearDep(swingIsInitializing); } else { dataCollection = null; } ICFBamClearTopDepObj swingContainer; if ((focus != null) && (focus instanceof ICFBamClearTopDepObj)) { swingContainer = (ICFBamClearTopDepObj) focus; } else { swingContainer = null; } tabViewComponentsClearDepListJPanel = swingSchema .getClearSubDep1Factory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsClearDepList(), false); } return (tabViewComponentsClearDepListJPanel); }