net.sourceforge.rssowl.controller.thread
Class ImageLoader

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.rssowl.controller.thread.ImageLoader
All Implemented Interfaces:
java.lang.Runnable

public class ImageLoader
extends java.lang.Thread

Thread to load an image to a CLabel

Version:
1.2.4
Author:
Benjamin Pasero

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  Image image
          The image to load
(package private)  Label imgHolder
          The holder for the image
(package private)  Composite parent
          Parent composite
(package private)  ChannelImage rssChannelImage
          The model for the channel image
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImageLoader(ChannelImage rssChannelImage, Label imgHolder, Composite parent)
          Instantiate a new ImageLoader Thread
 
Method Summary
 void run()
           
private  void showImage()
          Show the image in the imgHolder and configure it to react on Mouseclick to open the link if given.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

image

Image image
The image to load


imgHolder

Label imgHolder
The holder for the image


parent

Composite parent
Parent composite


rssChannelImage

ChannelImage rssChannelImage
The model for the channel image

Constructor Detail

ImageLoader

public ImageLoader(ChannelImage rssChannelImage,
                   Label imgHolder,
                   Composite parent)
Instantiate a new ImageLoader Thread

Parameters:
rssChannelImage - The image informations
imgHolder - CLabel to put the image on
parent - The parent composite
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Runnable.run()

showImage

private void showImage()
Show the image in the imgHolder and configure it to react on Mouseclick to open the link if given.



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo