/** * Remove Panel from <code>PanelModel</code>. * * @param ph PanelHolder */ public void removePanel(PanelHolder ph) { int sze = panelList.size(); ph.removeChangeListener(this); panelList.remove(ph.getId()); firePropertyChange("panelList", sze, panelList.size()); }
/** * Add a <code>PanelHolder</code> to <code>PanelModel</code>. * * @param ph PanelHolder */ public void addPanel(PanelHolder ph) { int sze = panelList.size(); ph.addChangeListener(this); panelList.put(ph.getId(), ph); firePropertyChange("panelList", sze, panelList.size()); }