示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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());
 }