View Javadoc
1 /* 2 * Created on Oct 29, 2003 3 */ 4 package portaview.view; 5 6 import portaview.model.AlbumCollection; 7 import portaview.model.AlbumModel; 8 9 /*** 10 * Album panel that displays the list of albums. 11 * 12 * @author William Lee 13 */ 14 public class AlbumPanel extends IconPanel 15 { 16 /*** 17 * Given a list of PortaView models, draw the view. 18 * @param portaViews 19 */ 20 public AlbumPanel(AlbumCollection ac) 21 { 22 super(ac); 23 } 24 25 /*** 26 * Returns the AlbumIconView. 27 * @see portaview.view.IconPanel#getViewFromModel(java.lang.Object) 28 */ 29 public Object getViewFromModel(Object model, IconPanel ipanel) 30 { 31 AlbumIconView aiv = new AlbumIconView((AlbumModel) model, (AlbumPanel)ipanel); 32 return aiv; 33 } 34 35 /*** 36 * Clean up the view and model. 37 * @see portaview.view.IconPanel#removeView(java.lang.Object) 38 */ 39 public void removeView(Object view) 40 { 41 AlbumIconView pvv = (AlbumIconView) view; 42 pvv.getAlbumModel().deleteObserver(pvv); 43 } 44 45 }

This page was automatically generated by Maven