|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable portaview.model.DomainModel portaview.model.NameModel portaview.model.Album
Represents the album in PortaView. An album is a folder that contain images on disk. This object is not used in the MVC model but rather serves as a class to retrieve photos on disk.
Field Summary | |
static int |
ICON_H
|
static int |
ICON_W
|
static java.lang.String |
XT_ICON
|
static java.lang.String |
XT_NAME
|
static java.lang.String |
XT_PHOTOS
|
Constructor Summary | |
Album(java.io.File dir)
Creates an album from a directory. |
Method Summary | |
java.io.File |
getDirectory()
|
Photo |
getPhoto(int seq)
Returns the photo with the show name and the sequence id. |
Photo |
getPhoto(java.lang.String name)
Returns a photo given the name. |
java.util.List |
listPhotos()
Lists out the photos inside this album. |
void |
setDirectory(java.io.File directory)
Sets the directory. |
java.lang.Object |
toXmlRpcType()
Returns a Hashtable of name = the name of album and icon = byte[] of the album image. |
Methods inherited from class portaview.model.NameModel |
getName, setName |
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 |
Field Detail |
public static final java.lang.String XT_NAME
public static final java.lang.String XT_ICON
public static final java.lang.String XT_PHOTOS
public static final int ICON_W
public static final int ICON_H
Constructor Detail |
public Album(java.io.File dir)
dir
- directory for the album.Method Detail |
public java.io.File getDirectory()
public void setDirectory(java.io.File directory)
directory
- album directorypublic java.util.List listPhotos()
public Photo getPhoto(int seq)
seq
- the sequence of photo based on the directory's sorting order.
public Photo getPhoto(java.lang.String name)
name
- name of photo.
public java.lang.Object toXmlRpcType()
toXmlRpcType
in interface XmlRpcType
XmlRpcType.toXmlRpcType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |