|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrss.adt.TreeFolder
public class TreeFolder
The basic container that comprises the Feed tree. A TreeFolder may
contain other TreeFolders and Feeds.
Abstraction Function:
Constructor Summary | |
---|---|
TreeFolder(int id,
java.util.List<TreeFolder> containedFolders,
java.util.List<Feed> containedFeeds,
boolean expanded,
java.lang.String name,
java.lang.String icon)
Initializes a TreeFolder with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Two TreeFolders can only be true if the identifiers are equal and both are not root folders. |
java.util.List<Feed> |
getContainedFeeds()
Accessor to grab contained Feeds. |
java.util.List<TreeFolder> |
getContainedFolders()
Accessor to grab contained TreeFolders. |
java.lang.String |
getIcon()
Accessor to get the path to the icon image file. |
int |
getID()
Accessor to grab identifier. |
java.lang.String |
getName()
Accessor to grab the name. |
TreeItem |
getTreeItem()
Accessor to grab the corresponding TreeItem. |
int |
hashCode()
Hashcode function that uses it's unique identifier |
boolean |
isExpanded()
Accessor to check whether expanded. |
void |
setContainedFeeds(java.util.List<Feed> containedFeeds)
Modifier to set contained Feeds. |
void |
setContainedFolders(java.util.List<TreeFolder> containedFolders)
Modifier to set contained TreeFolders. |
void |
setExpanded(boolean expanded)
Modifier to change expanded state. |
void |
setIcon(java.lang.String icon)
Modifier to set the path of the icon image file. |
void |
setName(java.lang.String name)
Modifier for the name of the folder. |
void |
setTreeItem(TreeItem treeItem)
Modifier for setting the corresponding TreeItem. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeFolder(int id, java.util.List<TreeFolder> containedFolders, java.util.List<Feed> containedFeeds, boolean expanded, java.lang.String name, java.lang.String icon)
id
- Database identifiercontainedFolders
- A list of contained TreeFolderscontainedFeeds
- A list of contained Feedsexpanded
- Whether the folder is expandedname
- Name of the foldericon
- Path of the icon of the folderMethod Detail |
---|
public java.util.List<Feed> getContainedFeeds()
public void setContainedFeeds(java.util.List<Feed> containedFeeds)
containedFeeds
- public java.util.List<TreeFolder> getContainedFolders()
public void setContainedFolders(java.util.List<TreeFolder> containedFolders)
containedFolders
- public int getID()
public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded
- public java.lang.String getIcon()
public void setIcon(java.lang.String icon)
icon
- path of iconpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- name of the folderpublic void setTreeItem(TreeItem treeItem)
treeItem
- TreeItem to be composed.public TreeItem getTreeItem()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |