|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser
|
+--EDU.oswego.cs.dl.util.concurrent.misc.SwingWorker
|
+--org.stringer.thread.AbstractSwingWorker
|
+--org.stringer.thread.UpdateFeeds
Load all items in a given channel or load all feeds in a mixed list of channels and items.
Note: This thread is used by the TreeView to update feeds. The TreeView consists of folders which are received here as Channels. The leaves or Items in the TreeView are the actual channels to be downloaded and displayed in the HtmlView.
Either the list is given a value or the channel is given a value; but not both. If both are set, only the channel will be seen.
| Field Summary | |
(package private) Channel |
channel
A channel to be downloaded |
(package private) Feed |
feed
|
(package private) java.util.List |
list
A list that can contain a mixture of channels and/or items |
(package private) static org.apache.log4j.Logger |
logger
|
| Fields inherited from class org.stringer.thread.AbstractSwingWorker |
buildDate, listenerList, monitor, running |
| Fields inherited from class EDU.oswego.cs.dl.util.concurrent.misc.SwingWorker |
|
| Fields inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser |
threadFactory_ |
| Constructor Summary | |
UpdateFeeds(IThreadListener listener)
|
|
| Method Summary | |
protected java.lang.Object |
construct()
Called when the thread is starting to do the actual work. |
protected java.lang.Object |
getFeed(Channel channel)
Load the article on this channel |
protected java.lang.Object |
getFeed(java.util.List list)
Load the articles in this list. |
protected void |
saveChannel(Channel channel)
Save a channel |
void |
saveItem(Item item)
Save an item |
void |
setChannel(Channel channel)
set the channel to be updated |
void |
setList(java.util.List list)
set the list of channel and channel-items to be updated |
| Methods inherited from class org.stringer.thread.AbstractSwingWorker |
addThreadListener, finished, fireBegin, fireBeginUnit, fireCanceled, fireEndUnit, fireThreadComplete, getBuildDate, getProgressMonitor, interrupt, isRunning, removeThreadListener, setProgressMonitor, setRunning |
| Methods inherited from class EDU.oswego.cs.dl.util.concurrent.misc.SwingWorker |
get, getException, getTimeout, isReady, run, start, timedGet |
| Methods inherited from class EDU.oswego.cs.dl.util.concurrent.ThreadFactoryUser |
getThreadFactory, setThreadFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static org.apache.log4j.Logger logger
java.util.List list
Channel channel
Feed feed
| Constructor Detail |
public UpdateFeeds(IThreadListener listener)
| Method Detail |
public void setChannel(Channel channel)
channel - A Channel containing Items to be updatedpublic void setList(java.util.List list)
list - A list of Channels and/or Items.
protected java.lang.Object construct()
throws java.lang.InterruptedException
construct in class EDU.oswego.cs.dl.util.concurrent.misc.SwingWorkerjava.lang.InterruptedExceptionprotected java.lang.Object getFeed(Channel channel)
protected java.lang.Object getFeed(java.util.List list)
protected void saveChannel(Channel channel)
public void saveItem(Item item)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||