View Javadoc

1   // Copyright (C) 2004, Brian Enigma <enigma at netninja.com>
2   // This file is part of iGallery.
3   //
4   // iGallery is free software; you can redistribute it and/or modify
5   // it under the terms of the GNU General Public License as published by
6   // the Free Software Foundation; either version 2 of the License, or
7   // (at your option) any later version.
8   //
9   // iGallery is distributed in the hope that it will be useful,
10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  // GNU General Public License for more details.
13  //
14  // You should have received a copy of the GNU General Public License
15  // along with Foobar; if not, write to the Free Software
16  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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  }