portaview.model
Class AlbumModel
java.lang.Object
java.util.Observable
portaview.model.DomainModel
portaview.model.ImageModel
portaview.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. |
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 |
AlbumModel
public AlbumModel(java.lang.String name)
- Creates the album with a given name.
- Parameters:
name
-
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.