portaview.model
Class AlbumModel

java.lang.Object
  extended byjava.util.Observable
      extended byportaview.model.DomainModel
          extended byportaview.model.ImageModel
              extended byportaview.model.AlbumModel
All Implemented Interfaces:
org.apache.xmlrpc.AsyncCallback

public class AlbumModel
extends ImageModel

Contains the album information. This serves as the M in the MVC for album.

Author:
William Lee

Constructor Summary
AlbumModel(java.lang.String name)
          Creates the album with a given name.
 
Method Summary
static AlbumModel getEmptyAlbumModel()
           
 java.lang.String getName()
           
 java.util.List getPhotos()
           
 void setName(java.lang.String string)
          Sets the name of the album.
 void setPhotos(java.util.List list)
           
 
Methods inherited from class portaview.model.ImageModel
getImage, handleError, handleResult, setImage
 
Methods inherited from class portaview.model.DomainModel
forceNotifyObservers
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlbumModel

public AlbumModel(java.lang.String name)
Creates the album with a given name.

Parameters:
name -
Method Detail

getPhotos

public java.util.List getPhotos()
Returns:
the List of PhotoModels

setPhotos

public void setPhotos(java.util.List list)
Parameters:
list - List of PhotoModels.

getEmptyAlbumModel

public static AlbumModel getEmptyAlbumModel()

getName

public java.lang.String getName()
Returns:
the name of the album

setName

public void setName(java.lang.String string)
Sets the name of the album.

Parameters:
string - album's name.


Copyright © 2003 The PortaView Team. All Rights Reserved.