com.aelitis.azureus.ui.swt.utils
Class TorrentUIUtilsV3

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.utils.TorrentUIUtilsV3

public class TorrentUIUtilsV3
extends java.lang.Object

Author:
TuxPaper

Nested Class Summary
static interface TorrentUIUtilsV3.ContentImageLoadedListener
           
 
Constructor Summary
TorrentUIUtilsV3()
           
 
Method Summary
static void addTorrentToGM(TOTorrent torrent)
          No clue if we have a easy way to add a TOTorrent to the GM, so here it is
static org.eclipse.swt.graphics.Image[] getContentImage(java.lang.Object datasource, boolean big, TorrentUIUtilsV3.ContentImageLoadedListener l)
          Retrieves the thumbnail for the content, pulling it from the web if it can
static void loadTorrent(DownloadUrlInfo dlInfo, boolean playNow, boolean playPrepare, boolean bringToFront)
           
static void releaseContentImage(java.lang.Object datasource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorrentUIUtilsV3

public TorrentUIUtilsV3()
Method Detail

loadTorrent

public static void loadTorrent(DownloadUrlInfo dlInfo,
                               boolean playNow,
                               boolean playPrepare,
                               boolean bringToFront)

addTorrentToGM

public static void addTorrentToGM(TOTorrent torrent)
No clue if we have a easy way to add a TOTorrent to the GM, so here it is

Parameters:
torrent -
Since:
3.0.5.3

getContentImage

public static org.eclipse.swt.graphics.Image[] getContentImage(java.lang.Object datasource,
                                                               boolean big,
                                                               TorrentUIUtilsV3.ContentImageLoadedListener l)
Retrieves the thumbnail for the content, pulling it from the web if it can

Parameters:
datasource -
l - When the thumbnail is available, this listener is triggered
Returns:
If the image is immediately available, the image will be returned as well as the trigger being fired. If the image isn't available null will be returned and the listener will trigger when avail
Since:
4.0.0.5

releaseContentImage

public static void releaseContentImage(java.lang.Object datasource)