|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodel.Folder
public class Folder
Folder class represents a folder that can contain other folders and feeds. There is a special case when a folder can contain articles (the trash folder). How that is implemented is likely to change dramatically.
| Field Summary | |
|---|---|
private int |
id
|
private int |
parentid
|
private java.lang.String |
title
|
| Constructor Summary | |
|---|---|
Folder(int id,
int parentid,
java.lang.String title)
Constructor for creating a folder from the database, when the ID of its parent and the ID of itself and its title are all known. |
|
Folder(java.lang.String title)
"Small" constructor used by the GUI to add folders. |
|
| Method Summary | |
|---|---|
int |
getId()
Gets the folder's id, if it was generated with an id; otherwise throws an error. |
int |
getParentId()
Gets the id of the folder's parent, if it available. |
java.lang.String |
getTitle()
Gets the folder's title. |
(package private) static boolean |
isSame(Folder f1,
Folder f2)
Tests if two folders represent the same folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private int parentid
private java.lang.String title
| Constructor Detail |
|---|
public Folder(int id,
int parentid,
java.lang.String title)
id - parentid - title - public Folder(java.lang.String title)
title - | Method Detail |
|---|
static boolean isSame(Folder f1,
Folder f2)
f1 - Folderf2 - Folder
public java.lang.String getTitle()
public int getId()
java.lang.IllegalAccessError - If the folder has no id (it was made and not taken from the database), throws an illegal access error.public int getParentId()
java.lang.IllegalAccessError - If the folder has no parentid (it was made and not taken from the database), throws an illegal access error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||