Class TorrentUIUtilsV3


  • public class TorrentUIUtilsV3
    extends java.lang.Object
    • 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
    • Constructor Detail

      • TorrentUIUtilsV3

        public TorrentUIUtilsV3()
    • 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)