net.sourceforge.rssowl.controller.thread
Class ImageLoader

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

public class ImageLoader
extends Thread

Thread to load an image to a CLabel

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
(package private)  org.eclipse.swt.graphics.Image image
          The image to load
(package private)  org.eclipse.swt.widgets.Label imgHolder
          The holder for the image
(package private)  org.eclipse.swt.widgets.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, org.eclipse.swt.widgets.Label imgHolder, org.eclipse.swt.widgets.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, 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

image

org.eclipse.swt.graphics.Image image
The image to load


imgHolder

org.eclipse.swt.widgets.Label imgHolder
The holder for the image


parent

org.eclipse.swt.widgets.Composite parent
Parent composite


rssChannelImage

ChannelImage rssChannelImage
The model for the channel image

Constructor Detail

ImageLoader

public ImageLoader(ChannelImage rssChannelImage,
                   org.eclipse.swt.widgets.Label imgHolder,
                   org.eclipse.swt.widgets.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()
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