|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.thread.AggregationLoader
Load multiple RSSChannels from a TreeSet holding the favorites titles. Display the aggregated RSSChannels in one tab.
Field Summary | |
(package private) Category |
aggregatedCategory
The category that is aggregated |
(package private) Channel |
aggregatedRSSChannel
Aggregated category channel |
(package private) TreeSet |
favorites
List of favorites to aggregate |
(package private) boolean |
generateUniqueTitles
Set this flag to true, if the newstitles have to be unique |
(package private) Vector |
innerFeedLoadThreads
Collection of all inner feed load Threads |
(package private) boolean |
isReload
Set this flag to true, if the Multi loader performs a reload |
(package private) ExtendedThread |
outerNewsFeedLoader
Thread to load the aggregated category |
private boolean |
performSearch
If a search is performed, set to TRUE |
(package private) Vector |
rssChannels
List of RSS channels |
(package private) GUI |
rssOwlGui
The MainController |
(package private) int |
runningThreadCounter
Count the number of inner feed loader Threads |
private String |
searchPattern
Search pattern |
(package private) int |
style
Style of the operation (load, reload, search) |
(package private) String |
title
Title of the aggregated category |
private static int |
WAIT_CYCLE
Wait state in ms for the outer feed loader to check the inner feed loader Threads if they have already finished |
Constructor Summary | |
AggregationLoader(TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
String title)
Instantiate a new AggregationLoader |
|
AggregationLoader(TreeSet favorites,
Category aggregatedCategory,
GUI rssOwlGui,
String title,
String searchPattern)
Instantiate a new AggregationLoader |
Method Summary | |
(package private) void |
createAggregatedRSSChannel()
Aggregate the rsschannels to one channel |
(package private) void |
createErrorChannel(String url,
NewsfeedFactoryException e)
Create an warning channel to display an erroneous RSS feed |
(package private) ExtendedThread |
createInnerFeedLoader(String url)
Create the inner feed loader that is called from the outer feed loader for each URL to load. |
private void |
createOuterFeedLoader(boolean displayNewsFeed)
Create the favorites multi load thread |
(package private) void |
displayRSSChannels()
Display the rsschannels in one tab |
(package private) boolean |
isLoadingDone()
Checks if the loading of this aggregation is done or not |
void |
loadFavorites(boolean displayNewsFeed)
Load all favorites in a Thread |
void |
setReload(boolean isReload)
Set to TRUE if all feeds of the aggregated category should get uncached before loaded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int WAIT_CYCLE
private boolean performSearch
private String searchPattern
Category aggregatedCategory
Channel aggregatedRSSChannel
TreeSet favorites
boolean generateUniqueTitles
Vector innerFeedLoadThreads
boolean isReload
ExtendedThread outerNewsFeedLoader
Vector rssChannels
GUI rssOwlGui
int runningThreadCounter
int style
String title
Constructor Detail |
public AggregationLoader(TreeSet favorites, Category aggregatedCategory, GUI rssOwlGui, String title)
favorites
- Vector with the URLsaggregatedCategory
- The category that is aggregatedrssOwlGui
- The RSSOwl Maincontrollertitle
- Title of the aggregated Channelpublic AggregationLoader(TreeSet favorites, Category aggregatedCategory, GUI rssOwlGui, String title, String searchPattern)
favorites
- Vector with the URLsaggregatedCategory
- The category that is aggregatedrssOwlGui
- The RSSOwl Maincontrollertitle
- Title of the aggregated ChannelsearchPattern
- The pattern to search forMethod Detail |
public void loadFavorites(boolean displayNewsFeed)
displayNewsFeed
- TRUE if newsfeed should be displayedpublic void setReload(boolean isReload)
isReload
- If Reload, set to TRUEprivate void createOuterFeedLoader(boolean displayNewsFeed)
displayNewsFeed
- TRUE if newsfeed should be displayedvoid createAggregatedRSSChannel()
void createErrorChannel(String url, NewsfeedFactoryException e)
url
- The url of the feede
- The factory exception that occuredExtendedThread createInnerFeedLoader(String url)
url
- The url of the feed to load
void displayRSSChannels()
boolean isLoadingDone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |