net.sourceforge.rssowl.controller.thread
Class FeedLoader

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sourceforge.rssowl.controller.thread.ExtendedThread
          extended bynet.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

Field Summary
(package private)  org.eclipse.swt.widgets.Display display
           
(package private)  int displayMode
           
(package private)  boolean displayNewsfeed
           
(package private)  boolean reselectNews
           
(package private)  Channel rssChannel
           
(package private)  FavoritesTree rssOwlFavoritesTree
           
(package private)  FeedCacheManager rssOwlFeedCacheManager
           
(package private)  GUI rssOwlGui
           
(package private)  LoadJob rssOwlLoadJob
           
(package private)  NewsTabFolder rssOwlNewsTabFolder
           
(package private)  StatusLine rssOwlStatusLine
           
(package private)  String searchPattern
           
(package private)  String url
           
 
Fields inherited from class net.sourceforge.rssowl.controller.thread.ExtendedThread
stopped
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FeedLoader(String url, String searchPattern, boolean displayNewsfeed, boolean reselectNews, int displayMode)
          Instantiate a new FeedLoader Thread
 
Method Summary
private  void handleErrorLoading(NewsfeedFactoryException xmlLoadException)
          Handle the exception that was thrown while loading a newsfeed
 void run()
          Load the newsfeed located at the URL
 void setRSSOwlLoadJob(LoadJob rssOwlLoadJob)
          Set the connected loading job which is operated by this Thread
 
Methods inherited from class net.sourceforge.rssowl.controller.thread.ExtendedThread
isStopped, startThread, stopThread
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 load
searchPattern - The pattern of the search or an empty String if no search is performed
displayNewsfeed - If TRUE display the newsfeed in the tabfolder
reselectNews - Wether to reselect a selected news
displayMode - One of the supported display modes
Method Detail

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

SourceForge.net Logo