View Javadoc
1 /* 2 * Created on Oct 23, 2003 3 * 4 * To change the template for this generated file go to 5 * Window>Preferences>Java>Code Generation>Code and Comments 6 */ 7 package portaview.model; 8 9 import java.util.List; 10 11 /*** 12 * Contains the album information. This serves as the M in the MVC for album. 13 * 14 * @author William Lee 15 */ 16 public class AlbumModel extends ImageModel 17 { 18 private List photos = null; 19 private String name = null; 20 21 /*** 22 * Creates the album with a given name. 23 * @param name 24 */ 25 public AlbumModel(String name) 26 { 27 super(); 28 this.name = name; 29 } 30 31 /*** 32 * @return the List of PhotoModels 33 */ 34 public List getPhotos() 35 { 36 return photos; 37 } 38 39 /*** 40 * @param list List of PhotoModels. 41 */ 42 public void setPhotos(List list) 43 { 44 photos = list; 45 } 46 47 public static AlbumModel getEmptyAlbumModel() 48 { 49 AlbumModel am = new AlbumModel("(Empty)"); 50 return am; 51 } 52 53 54 55 /*** 56 * @return the name of the album 57 */ 58 public String getName() 59 { 60 return name; 61 } 62 63 /*** 64 * Sets the name of the album. 65 * @param string album's name. 66 */ 67 public void setName(String string) 68 { 69 name = string; 70 } 71 72 }

This page was automatically generated by Maven