|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ondelette.servlet.webannonces.AnnoncesFolder
A group of "annonce" (classified ads)
| Field Summary | |
protected java.io.File |
mFolderfile
a folder is stored in a file referred to as Folderfile |
| Constructor Summary | |
AnnoncesFolder(int size,
long delay,
java.io.File Folderfile)
Constructor for the AnnoncesFolder object |
|
| Method Summary | |
void |
add(Annonce annonce)
Add an "annonce" (classified ad) |
void |
destroy()
Call this when the servlet dies |
java.util.Enumeration |
getAnnonces()
Gets the annonces attribute of the AnnoncesFolder object |
void |
remove(int id)
Remove an "Annonce" based on its id |
void |
run()
Main processing method for the AnnoncesFolder object |
void |
show(java.io.PrintWriter out)
Printout the folder to HTML |
void |
showAdmin(java.io.PrintWriter out)
Admin printout in HTML |
void |
write()
Save the folder to a file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.File mFolderfile
| Constructor Detail |
public AnnoncesFolder(int size,
long delay,
java.io.File Folderfile)
size - delay - Folderfile - | Method Detail |
public java.util.Enumeration getAnnonces()
public void add(Annonce annonce)
annonce - public void remove(int id)
id -
public void write()
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void destroy()
public void show(java.io.PrintWriter out)
throws java.io.IOException
out -
java.io.IOException
public void showAdmin(java.io.PrintWriter out)
throws java.io.IOException
out -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||