1 /*
2 * Created on Oct 23, 2003
3 */
4 package portaview.model;
5
6 /***
7 * Represents a photo model, or "M" in the MVC layer in the PortaView manager..
8 *
9 * @author William Lee
10 */
11 public class PhotoModel extends ImageModel
12 {
13 private AlbumModel album = null;
14 private String name = "(default)";
15
16 /***
17 * Constructs a Photo in a given album.
18 * @param a
19 */
20 public PhotoModel(AlbumModel a, String name)
21 {
22 this.name = name;
23 this.album = a;
24 }
25
26 /***
27 * @return the AlbumModel.
28 */
29 public AlbumModel getAlbum()
30 {
31 return album;
32 }
33
34 /***
35 * Sets the album model.
36 * @param model model to set.
37 */
38 public void setAlbum(AlbumModel model)
39 {
40 album = model;
41 }
42
43 }
This page was automatically generated by Maven