net.sourceforge.rssowl.controller.thread
Class FeedLoader
java.lang.Object
java.lang.Thread
net.sourceforge.rssowl.controller.thread.ExtendedThread
net.sourceforge.rssowl.controller.thread.FeedLoader
- All Implemented Interfaces:
- Runnable
- public class FeedLoader
- extends ExtendedThread
This Thread loads a newsfeed from its source and displays it calling the
appropiate method in the main controller. *
- Version:
- 1.1.3
- Author:
- Benjamin Pasero
Constructor Summary |
FeedLoader(String url,
String searchPattern,
boolean displayNewsfeed,
boolean reselectNews,
int displayMode)
Instantiate a new FeedLoader Thread |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
display
org.eclipse.swt.widgets.Display display
displayMode
int displayMode
displayNewsfeed
boolean displayNewsfeed
reselectNews
boolean reselectNews
rssChannel
Channel rssChannel
rssOwlFavoritesTree
FavoritesTree rssOwlFavoritesTree
rssOwlFeedCacheManager
FeedCacheManager rssOwlFeedCacheManager
rssOwlGui
GUI rssOwlGui
rssOwlLoadJob
LoadJob rssOwlLoadJob
rssOwlNewsTabFolder
NewsTabFolder rssOwlNewsTabFolder
rssOwlStatusLine
StatusLine rssOwlStatusLine
searchPattern
String searchPattern
url
String url
FeedLoader
public FeedLoader(String url,
String searchPattern,
boolean displayNewsfeed,
boolean reselectNews,
int displayMode)
- Instantiate a new FeedLoader Thread
- Parameters:
url
- The URL of the newsfeed to loadsearchPattern
- The pattern of the search or an empty String if no
search is performeddisplayNewsfeed
- If TRUE display the newsfeed in the tabfolderreselectNews
- Wether to reselect a selected newsdisplayMode
- One of the supported display modes
run
public void run()
- Load the newsfeed located at the URL
- See Also:
Thread.run()
setRSSOwlLoadJob
public void setRSSOwlLoadJob(LoadJob rssOwlLoadJob)
- Set the connected loading job which is operated by this Thread
- Parameters:
rssOwlLoadJob
- The loading job which this Thread is performing
handleErrorLoading
private void handleErrorLoading(NewsfeedFactoryException xmlLoadException)
- Handle the exception that was thrown while loading a newsfeed
- Parameters:
xmlLoadException
- The exception that occured
RSSOwl - RSS / RDF / Atom Newsreader