|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.model.Favorite
This is a Favorite for Newsfeeds.
Field Summary | |
private String |
catPath
The String representation of the category |
private long |
creationDate
Date of creation |
private String |
description
Description of the feed |
private boolean |
errorLoading
TRUE if an warning occured while loading the favorite |
private String |
homepage
Homepage of this favorites newsfeed |
private boolean |
isSynchronizer
If TRUE this favorite is showing when a blogroll is synced |
private String |
language
Language of the feed |
private long |
lastVisitDate
Date of last visit |
private boolean |
loadOnStartup
TRUE if the favorite should be load on startup of RSSOwl |
private boolean |
openOnStartup
TRUE if the feed should open on startup |
private Category |
rssOwlCategory
The category this favorite is saved into |
private String |
title
Title of the favorite |
(package private) org.eclipse.swt.widgets.TreeItem |
treeItem
The treeitem this favorite is saved in |
private int |
unreadNewsCount
The number of unread news in this favorite |
private int |
updateInterval
Update interval of the favorite |
private String |
url
URL of the favorite |
private boolean |
useProxy
TRUE if a proxy should be used |
Constructor Summary | |
Favorite(String url,
String title,
Category rssOwlCategory)
Instantiate a new Favorite |
Method Summary | |
void |
clone(Favorite rssOwlFavorite)
Clone settings from this favorite into the given one |
void |
duplicate(Favorite rssOwlFavorite)
Duplicate this favorite into the given one. |
String |
getCatPath()
Get the String representation of the category this favorite is in. |
long |
getCreationDate()
Get the creation date of this favorite |
String |
getDescription()
Get the description of this favorit's feed |
String |
getHomepage()
Get the homepage of this favorit's feed |
String |
getLanguage()
Ge the language of this favorit's feed |
long |
getLastVisitDate()
Get the last visit date of this favorite |
Category |
getRSSOwlCategory()
Get the rssOwlCategory this favorite is saved into. |
String |
getTitle()
|
org.eclipse.swt.widgets.TreeItem |
getTreeItem()
|
int |
getUnreadNewsCount()
Get the number of unread news for this favorite. |
int |
getUpdateInterval()
Get the update interval |
String |
getUrl()
|
boolean |
isErrorLoading()
|
boolean |
isLoadOnStartup()
|
boolean |
isOpenOnStartup()
|
boolean |
isSynchronizer()
|
boolean |
isUseProxy()
|
void |
setCatPath(String catPath)
Set the String representation of the category this favorite is in |
void |
setCreationDate(long creationDate)
Set the creation date of this favorite |
void |
setDescription(String description)
Set the description of this favorit's feed |
void |
setErrorLoading(boolean errorLoading)
Set TRUE if there is an warning loading the favorite |
void |
setHomepage(String homepage)
Set the homepage of this favorite's feed |
void |
setLanguage(String language)
Set the language of this favorit's feed |
void |
setLastVisitDate(long lastVisitDate)
Set the last visit date |
void |
setLoadOnStartup(boolean loadOnStartup)
Set TRUE if the favorite should load on startup of RSSOwl |
void |
setOpenOnStartup(boolean openOnStartup)
Set TRUE if the favorite should open on startup |
void |
setSynchronizer(boolean isSynchronizer)
If set to TRUE, this favorite is showing when a Blogroll is synced. |
void |
setTitle(String title)
Set the title of this favorite |
void |
setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
|
void |
setUnreadNewsCount(int unreadNewsCount)
Set the number of unread news for this favorite. |
void |
setUpdateInterval(int updateInterval)
Set the updateinterval in minutes |
void |
setUrl(String url)
Set the URL of this favorite |
void |
setUseProxy(boolean useProxy)
Set TRUE if use proxy |
void |
syncMetaData(Channel rssChannel)
Sync up the meta data for this favorite |
boolean |
unreadNewsAvailable()
|
void |
updateErrorState(boolean isError)
Update the state of the warning flag to the in a seperate asynchron runnable. |
void |
updateReadStatus(int unreadNewsCount)
Update this favorites number of unread news and also update the connected treeitem. |
void |
updateReadStatus(int unreadNewsCount,
boolean updateSysTray)
Update this favorites number of unread news and also update the connected treeitem. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String catPath
private long creationDate
private String description
private boolean errorLoading
private String homepage
private boolean isSynchronizer
private String language
private long lastVisitDate
private boolean loadOnStartup
private boolean openOnStartup
private Category rssOwlCategory
private String title
private int unreadNewsCount
private int updateInterval
private String url
private boolean useProxy
org.eclipse.swt.widgets.TreeItem treeItem
Constructor Detail |
public Favorite(String url, String title, Category rssOwlCategory)
url
- The URL / Path to the RSS / RDF XMLtitle
- Title of the favoriterssOwlCategory
- The category this favorite is saved intoMethod Detail |
public void clone(Favorite rssOwlFavorite)
rssOwlFavorite
- The favorite to clone the settings intopublic void duplicate(Favorite rssOwlFavorite)
rssOwlFavorite
- The favorite to duplicate intopublic String getCatPath()
public long getCreationDate()
public String getDescription()
public String getHomepage()
public String getLanguage()
public long getLastVisitDate()
public Category getRSSOwlCategory()
public String getTitle()
public org.eclipse.swt.widgets.TreeItem getTreeItem()
public int getUnreadNewsCount()
public int getUpdateInterval()
public String getUrl()
public boolean isErrorLoading()
public boolean isLoadOnStartup()
public boolean isOpenOnStartup()
public boolean isSynchronizer()
public boolean isUseProxy()
public void setCatPath(String catPath)
catPath
- The path to the category this favorite is inpublic void setCreationDate(long creationDate)
creationDate
- The creationDate to set.public void setDescription(String description)
description
- The description to set.public void setErrorLoading(boolean errorLoading)
errorLoading
- public void setHomepage(String homepage)
homepage
- The homepage to set.public void setLanguage(String language)
language
- The language to set.public void setLastVisitDate(long lastVisitDate)
lastVisitDate
- The lastVisitDate to set.public void setLoadOnStartup(boolean loadOnStartup)
loadOnStartup
- public void setOpenOnStartup(boolean openOnStartup)
openOnStartup
- The openOnStartup to set.public void setSynchronizer(boolean isSynchronizer)
isSynchronizer
- The isSynchronizer to set.public void setTitle(String title)
title
- public void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
treeItem
- The treeItem in which this favorite is saved.public void setUnreadNewsCount(int unreadNewsCount)
unreadNewsCount
- The unreadNewsCount to set.public void setUpdateInterval(int updateInterval)
updateInterval
- public void setUrl(String url)
url
- public void setUseProxy(boolean useProxy)
useProxy
- public void syncMetaData(Channel rssChannel)
rssChannel
- The feed to get the data frompublic boolean unreadNewsAvailable()
public void updateErrorState(boolean isError)
isError
- TRUE if there was an warning loading the favoritepublic void updateReadStatus(int unreadNewsCount)
unreadNewsCount
- Number of unread newspublic void updateReadStatus(int unreadNewsCount, boolean updateSysTray)
unreadNewsCount
- Number of unread newsupdateSysTray
- Wether to update the Systemtray status
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |