public JPanel getTabViewComponentsMinorVersionListJPanel() { if (tabViewComponentsMinorVersionListJPanel == null) { Collection<ICFInternetMinorVersionObj> dataCollection; ICFAccMajorVersionObj focus = (ICFAccMajorVersionObj) getSwingFocusAsMajorVersion(); if (focus != null) { dataCollection = focus.getOptionalComponentsMinorVersion(swingIsInitializing); } else { dataCollection = null; } ICFInternetMajorVersionObj swingContainer; if ((focus != null) && (focus instanceof ICFInternetMajorVersionObj)) { swingContainer = (ICFInternetMajorVersionObj) focus; } else { swingContainer = null; } tabViewComponentsMinorVersionListJPanel = swingSchema .getMinorVersionFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsMinorVersionList(), false); } return (tabViewComponentsMinorVersionListJPanel); }
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); } } }