1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.ninjasoft.igallery.data;
18
19 import java.util.*;
20
21 /***
22 * Simple bean to hold information about an album
23 * @author enigma
24 */
25 public class IPhotoAlbum {
26 private String name = "";
27 private String type = "";
28 private Vector pictureList = new Vector();
29
30 public String getName() {return name;}
31 public void setName(String name) {this.name = name;}
32 public String getType() {return type;}
33 public void setType(String type) {this.type = type;}
34 public void addPicture(int id) {pictureList.add(new Integer(id));}
35 public void addPicture(Integer id) {pictureList.add(id);}
36 public String toString() {return name + "::" + pictureList.size() + " picture(s)";}
37 public Vector getPictures() {return pictureList;}
38 public int getPictureCount() {return pictureList.size();}
39 }