|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.gui.jface.viewers.MutableTreeElement
net.sourceforge.java.feednread.backend.model.watchestree.WatchFolder
Logical folder structure to hold and organize Watch elements.
| Field Summary | |
private String |
description
The description of the WatchFolder |
private boolean |
filtered
true if filtered; false otherwise |
private String |
title
The title of the WatchFolder |
| Fields inherited from class net.sourceforge.java.util.gui.jface.viewers.MutableTreeElement |
|
| Constructor Summary | |
WatchFolder(String title)
Creates a new WatchFolder with the specified
title.
|
|
WatchFolder(String title,
String description)
Creates a new WatchFolder with the specified
title.
|
|
| Method Summary | |
Watch[] |
collectWatches()
Recursively collects all Watch elements starting at
this WatchFolder.
|
String |
getDescription()
Gets the description of this WatchFolder.
|
String |
getTitle()
Gets the title of this WatchFolder.
|
int |
getUnreadCount()
Returns the number of unread news in the NewsFeeds
related to the Watches in this WatchFolder
and all of its sub WatchFolders.
|
int |
getUnreadCount(ITreeElement element)
Returns the number of unread news in the NewsFeeds
related to the specified ITreeElement. |
boolean |
isFiltered()
Gets the filtered status of this WatchFolder.
|
boolean |
isUnread()
Returns true if at least one NewsFeed related
to a Favorite in this Category holds an unread
news.
|
private boolean |
isUnread(ITreeElement element)
Returns true if at least one NewsFeed
related to a Watch in the specified
ITreeElement holds an unread news.
|
void |
setDescription(String description)
Sets the description of this WatchFolder.
|
void |
setFiltered(boolean filtered)
Sets the filtered status of this WatchFolder.
|
void |
setTitle(String title)
Sets the title of this WatchFolder.
|
String |
toString()
Gets the textual represntation of this WatchFolder.
|
| Methods inherited from class net.sourceforge.java.util.gui.jface.viewers.MutableTreeElement |
add, addIMutableTreeElementListener, allowsSubElements, collectLeafs, dispose, fireElementAdded, fireElementRemoved, fireElementUpdated, getData, getElementAt, getElements, getIndex, getParent, getPath, getSize, hasSubElements, isSubElement, remove, removeIMutableTreeElementListener, setData, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private String title
The title of the WatchFolder
private String description
The description of the WatchFolder
private boolean filtered
true if filtered; false otherwise
| Constructor Detail |
public WatchFolder(String title)
Creates a new WatchFolder with the specified
title.
title - the title for this WatchFolderWatchFolder(String, String)
public WatchFolder(String title,
String description)
Creates a new WatchFolder with the specified
title.
title - the title for this WatchFolderdescription - the description for this WatchFolderWatchFolder(String)| Method Detail |
public void setTitle(String title)
Sets the title of this WatchFolder.
setTitle in interface INameabletitle - the new title for this WatchFolderINameable.setTitle(String),
getTitle()public String getTitle()
Gets the title of this WatchFolder.
getTitle in interface INameableWatchFolderINameable.getTitle(),
setTitle(String)public void setDescription(String description)
Sets the description of this WatchFolder.
description - the new description for this WatchFoldergetDescription()public String getDescription()
Gets the description of this WatchFolder.
WatchFoldersetDescription(String)public boolean isUnread()
Returns true if at least one NewsFeed related
to a Favorite in this Category holds an unread
news.
isUnread in interface INewsFeedStatustrue if at least one NewsFeed related
to a Favorite in this Category holds an unread
news; false otherwiseINewsFeedStatus.isUnread()private boolean isUnread(ITreeElement element)
Returns true if at least one NewsFeed
related to a Watch in the specified
ITreeElement holds an unread news.
element - the ITreeElement to test
true if at least one NewsFeed
related to a Watch the specified ITreeElement
holds an unread news; false otherwisepublic int getUnreadCount()
Returns the number of unread news in the NewsFeeds
related to the Watches in this WatchFolder
and all of its sub WatchFolders.
getUnreadCount in interface INewsFeedStatusNewsFeeds
related to the Watches in this WatchFolder
and all of its sub WatchFoldersINewsFeedStatus.getUnreadCount()public int getUnreadCount(ITreeElement element)
Returns the number of unread news in the NewsFeeds
related to the specified ITreeElement. If the
specified ITreeElement denotes a WatchFolder
the calculation is done recursively.
element - the ITreeElement to get the
number of unread news for
NewsFeeds
related to the specified ITreeElementpublic boolean isFiltered()
Gets the filtered status of this WatchFolder.
isFiltered in interface IFilterTagtrue if this WatchFolder is
filtered; false otherwisepublic void setFiltered(boolean filtered)
Sets the filtered status of this WatchFolder.
setFiltered in interface IFilterTagfiltered - true to mark this WatchFolder
as filtered; false to mark it as unfilteredpublic Watch[] collectWatches()
Recursively collects all Watch elements starting at
this WatchFolder.
Watch elementspublic String toString()
Gets the textual represntation of this WatchFolder.
Returns the WatchFolder's title.
toString in class MutableTreeElementWatchFolder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||