Package com.biglybt.ui.swt.utils
Class TorrentUIUtilsV3
- java.lang.Object
-
- com.biglybt.ui.swt.utils.TorrentUIUtilsV3
-
public class TorrentUIUtilsV3 extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TorrentUIUtilsV3.ContentImageLoadedListener
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<MessageBoxShell>
active_aa_dialogs
private static java.util.regex.Pattern
hashPattern
(package private) static ImageLoader
imageLoaderThumb
private static java.lang.String
MSG_ALREADY_EXISTS
private static java.lang.String
MSG_ALREADY_EXISTS_NAME
-
Constructor Summary
Constructors Constructor Description TorrentUIUtilsV3()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
_loadTorrent(Core core, DownloadUrlInfo dlInfo, boolean playNow, boolean playPrepare, boolean bringToFront)
static void
addTorrentToGM(TOTorrent torrent)
No clue if we have a easy way to add a TOTorrent to the GM, so here it isstatic void
disposeStatic()
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 canprivate static void
handleDMAdded(DownloadManager dm, boolean playNow, boolean playPrepare, HashWrapper fhw)
static void
loadTorrent(DownloadUrlInfo dlInfo, boolean playNow, boolean playPrepare, boolean bringToFront)
static void
releaseContentImage(java.lang.Object datasource)
static void
showTorrentAlreadyAdded(java.lang.String originating_loc, java.lang.String name)
-
-
-
Field Detail
-
MSG_ALREADY_EXISTS
private static final java.lang.String MSG_ALREADY_EXISTS
- See Also:
- Constant Field Values
-
MSG_ALREADY_EXISTS_NAME
private static final java.lang.String MSG_ALREADY_EXISTS_NAME
- See Also:
- Constant Field Values
-
hashPattern
private static final java.util.regex.Pattern hashPattern
-
imageLoaderThumb
static ImageLoader imageLoaderThumb
-
active_aa_dialogs
private static java.util.List<MessageBoxShell> active_aa_dialogs
-
-
Method Detail
-
disposeStatic
public static void disposeStatic()
-
loadTorrent
public static void loadTorrent(DownloadUrlInfo dlInfo, boolean playNow, boolean playPrepare, boolean bringToFront)
-
_loadTorrent
private static void _loadTorrent(Core core, DownloadUrlInfo dlInfo, boolean playNow, boolean playPrepare, boolean bringToFront)
-
handleDMAdded
private static void handleDMAdded(DownloadManager dm, boolean playNow, boolean playPrepare, HashWrapper fhw)
-
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)
-
showTorrentAlreadyAdded
public static void showTorrentAlreadyAdded(java.lang.String originating_loc, java.lang.String name)
-
-