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 JPanel getTabViewChildrenRefListJPanel() { if (tabViewChildrenRefListJPanel == null) { Collection<ICFBamTableColObj> dataCollection; ICFBamTextTypeObj focus = (ICFBamTextTypeObj) getSwingFocusAsTextType(); if (focus != null) { dataCollection = focus.getOptionalChildrenRef(swingIsInitializing); } else { dataCollection = null; } ICFBamTableObj swingContainer; if ((focus != null) && (focus instanceof ICFBamTableObj)) { swingContainer = (ICFBamTableObj) focus; } else { swingContainer = null; } tabViewChildrenRefListJPanel = swingSchema .getTableColFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshChildrenRefList(), false); } return (tabViewChildrenRefListJPanel); }