|
|||||||||||
| 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.Watch
Represents a NewsFeedWatch tree element which can be organized
in WatchFolder structures.
| Field Summary | |
private String |
description
The description of the Watch |
private boolean |
filtered
true if filtered; false otherwise |
private AggregatedNewsFeed |
newsFeed
The AggregatedNewsFeed holding all
NewsFeedEntries that match the criterions of the embedded
WatchSettings.
|
private String |
title
The title of the Watch |
private IMutableTreeElement[] |
watchedElements
The list of IMutableTreeElements to watch |
| Fields inherited from class net.sourceforge.java.util.gui.jface.viewers.MutableTreeElement |
|
| Constructor Summary | |
Watch(String title)
Creates a new Watch instance with the specified
title.
|
|
Watch(String title,
String description)
Creates a new Watch instance with the specified
title.
|
|
| Method Summary | |
void |
closing(NewsFeedTableStatusChangedEvent event)
Triggered when the NewsFeedTable is about to be closed.
|
void |
dispose()
Disposes this Watch.
|
String |
getDescription()
Gets the description of this Watch.
|
AggregatedNewsFeed |
getNewsFeed()
Gets the AggregatedNewsFeed of this Watch.
|
WatchSettings |
getSettings()
Gets the WatchSettings of this Watch. |
String |
getTitle()
Gets the title of this Watch.
|
int |
getUnreadCount()
Returns the number of unread news in the NewsFeed
related to this Favorite.
|
IMutableTreeElement[] |
getWatchedElements()
Gets the IMutableTreeElements included in this
Watch, i.e. the IMutableTreeElements which
are watched.
|
Favorite[] |
getWatchedFavorites()
Gets the Favorites included in this Watch,
i.e. the Favorites which are watched. |
private void |
initializeAggregation()
Initializes the internally used AgrgegatedNewsFeed with
the data from this Watch.
|
boolean |
isFiltered()
Gets the filtered status of this Watch.
|
boolean |
isUnread()
Returns true if the NewsFeed related to
this Favorite
|
void |
newsFeedReadStatusChanged(NewsFeed newsFeed)
Called whenever the read status of the NewsFeed associated
to one of the watched Favorites has changed.
|
void |
newsFeedUpdated(NewsFeed updatedNewsFeed)
Called whenever the NewsFeed associated to one of the
watched Favorites has changed.
|
void |
setDescription(String description)
Sets the description of this Watch.
|
void |
setFiltered(boolean filtered)
Sets the filtered status of this Watch.
|
void |
setNewsFeed(AggregatedNewsFeed newsFeed)
Sets the NewsFeed of this Watch.
|
void |
setSettings(WatchSettings settings)
Sets the WatchSettings for this Watch. |
void |
setTitle(String title)
Sets the title of this Watch.
|
void |
setWatchedElements(IMutableTreeElement[] watchedElements)
Sets the IMutableTreeElements to include in this
Watch, i.e. to watch over.
|
void |
statusChanged(NewsFeedTableStatusChangedEvent event)
Triggered when the status of the NewsFeedTable changes.
|
String |
toString()
Gets the textual represntation of this Watch. |
private void |
updateParents()
Updates all parent Categories of this Favorite.
|
| Methods inherited from class net.sourceforge.java.util.gui.jface.viewers.MutableTreeElement |
add, addIMutableTreeElementListener, allowsSubElements, collectLeafs, 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 Watch
private String description
The description of the Watch
private boolean filtered
true if filtered; false otherwise
private IMutableTreeElement[] watchedElements
The list of IMutableTreeElements to watch
private AggregatedNewsFeed newsFeed
The AggregatedNewsFeed holding all
NewsFeedEntries that match the criterions of the embedded
WatchSettings.
| Constructor Detail |
public Watch(String title)
Creates a new Watch instance with the specified
title.
title - the title for this WatchWatch(String, String)
public Watch(String title,
String description)
Creates a new Watch instance with the specified
title.
title - the title for this Watchdescription - the description for this WatchWatch(String)| Method Detail |
public void setTitle(String title)
Sets the title of this Watch.
setTitle in interface INameabletitle - the title of this WatchgetTitle(),
INameable.setTitle(String)public String getTitle()
Gets the title of this Watch.
getTitle in interface INameableWatchsetTitle(String),
INameable.getTitle()public void setDescription(String description)
Sets the description of this Watch.
description - the new description for this WatchgetDescription()public String getDescription()
Gets the description of this Watch.
WatchsetDescription(String)public void setWatchedElements(IMutableTreeElement[] watchedElements)
Sets the IMutableTreeElements to include in this
Watch, i.e. to watch over.
watchedElements - the IMutableTreeElements to include
in this WatchgetWatchedElements()public IMutableTreeElement[] getWatchedElements()
Gets the IMutableTreeElements included in this
Watch, i.e. the IMutableTreeElements which
are watched.
IMutableTreeElements included in this
WatchsetWatchedElements(IMutableTreeElement[])public Favorite[] getWatchedFavorites()
Gets the Favorites included in this Watch,
i.e. the Favorites which are watched. In contrast to the
getWatchedElements() method all Category elements
are omited.
Favorites included in this Watchpublic void setSettings(WatchSettings settings)
Sets the WatchSettings for this Watch. The
WatchSettings include all the rules to apply for this
Watch.
settings - the WatchSettings for this
WatchgetSettings()public WatchSettings getSettings()
Gets the WatchSettings of this Watch. The
WatchSettings include all the rules which are applied for
this Watch.
WatchSettings of this
WatchsetSettings(WatchSettings)public void setNewsFeed(AggregatedNewsFeed newsFeed)
Sets the NewsFeed of this Watch.
newsFeed - the AggregatedNewsFeed to setgetNewsFeed()public AggregatedNewsFeed getNewsFeed()
Gets the AggregatedNewsFeed of this Watch.
AggregatedNewsFeed of this WatchsetNewsFeed(AggregatedNewsFeed)public boolean isUnread()
Returns true if the NewsFeed related to
this Favorite
isUnread in interface INewsFeedStatustrue if the NewsFeed related to this
Favoritefalse otherwiseINewsFeedStatus.isUnread()public int getUnreadCount()
Returns the number of unread news in the NewsFeed
related to this Favorite.
getUnreadCount in interface INewsFeedStatusNewsFeed
related to this FavoriteINewsFeedStatus.getUnreadCount()public void statusChanged(NewsFeedTableStatusChangedEvent event)
Triggered when the status of the NewsFeedTable changes.
Called whenever the news read status of the associated
NewsFeed changed.
statusChanged in interface INewsFeedTableStatusListenerevent - the triggered NewsFeedTableStatusChangedEventpublic void closing(NewsFeedTableStatusChangedEvent event)
Triggered when the NewsFeedTable is about to be closed.
closing in interface INewsFeedTableStatusListenerevent - the triggered NewsFeedTableStatusChangedEventpublic void newsFeedUpdated(NewsFeed updatedNewsFeed)
Called whenever the NewsFeed associated to one of the
watched Favorites has changed.
newsFeedUpdated in interface INewsFeedStatusListenerupdatedNewsFeed - the updated NewsFeedpublic void newsFeedReadStatusChanged(NewsFeed newsFeed)
Called whenever the read status of the NewsFeed associated
to one of the watched Favorites has changed.
newsFeedReadStatusChanged in interface INewsFeedStatusListenernewsFeed - the NewsFeed whose read status changedpublic boolean isFiltered()
Gets the filtered status of this Watch.
isFiltered in interface IFilterTagtrue if this Watch is filtered;
false otherwisepublic void setFiltered(boolean filtered)
Sets the filtered status of this Watch.
setFiltered in interface IFilterTagfiltered - true to mark this Watch as
filtered; false to mark it as unfilteredpublic void dispose()
Disposes this Watch.
dispose in interface IMutableTreeElementdispose in class MutableTreeElementpublic String toString()
Gets the textual represntation of this Watch. Returns
the Watch's title.
toString in class MutableTreeElementWatchprivate void updateParents()
Updates all parent Categories of this Favorite.
private void initializeAggregation()
Initializes the internally used AgrgegatedNewsFeed with
the data from this Watch.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||