net.sourceforge.java.feednread.frontend.components.favoritestree
Class NewsFeedFavoritesTreeLabelProvider.ImageLoader

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sourceforge.java.feednread.frontend.components.favoritestree.NewsFeedFavoritesTreeLabelProvider.ImageLoader
All Implemented Interfaces:
Runnable
Enclosing class:
NewsFeedFavoritesTreeLabelProvider

private class NewsFeedFavoritesTreeLabelProvider.ImageLoader
extends Thread

Thread to load the icon Image of a Favorite in the background. It refreshes the corresponding Favorite in the TreeViewer as the icon is available.

Author:
Sebastian Machhausen

Field Summary
private  Favorite favorite
           The Favorite to load the icon Image for.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NewsFeedFavoritesTreeLabelProvider.ImageLoader(Favorite favorite)
           Creates a new ImageLoader bound to the specified Favorite.
 
Method Summary
 void run()
           Executed as this ImageLoader starts its work.
 
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

favorite

private Favorite favorite

The Favorite to load the icon Image for.

Constructor Detail

NewsFeedFavoritesTreeLabelProvider.ImageLoader

public NewsFeedFavoritesTreeLabelProvider.ImageLoader(Favorite favorite)

Creates a new ImageLoader bound to the specified Favorite.

Parameters:
favorite - the Favorite to load the icon Image for
Method Detail

run

public void run()

Executed as this ImageLoader starts its work. Loads the icon Image for the Favorite and updates the TreeVier as the loading process finishes.