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 JPanel getTabViewComponentsParamsListJPanel() { if (tabViewComponentsParamsListJPanel == null) { Collection<ICFBamParamObj> dataCollection; ICFBamServerListFuncObj focus = getSwingFocusAsServerListFunc(); if (focus != null) { dataCollection = focus.getOptionalComponentsParams(swingIsInitializing); } else { dataCollection = null; } ICFBamServerMethodObj swingContainer; if ((focus != null) && (focus instanceof ICFBamServerMethodObj)) { swingContainer = (ICFBamServerMethodObj) focus; } else { swingContainer = null; } tabViewComponentsParamsListJPanel = swingSchema .getParamFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsParamsList(), true); } return (tabViewComponentsParamsListJPanel); }