Class OpenTorrentWindow

java.lang.Object
com.biglybt.ui.swt.shells.opentorrent.OpenTorrentWindow
All Implemented Interfaces:
TorrentDownloaderCallBackInterface, UIUpdatable

public class OpenTorrentWindow extends Object implements TorrentDownloaderCallBackInterface, UIUpdatable
  • Field Details

    • CONFIG_REFERRER_DEFAULT

      protected static String CONFIG_REFERRER_DEFAULT
    • shellForChildren

      private org.eclipse.swt.widgets.Shell shellForChildren
    • parent

      private org.eclipse.swt.widgets.Shell parent
    • dlg

      private SkinnedDialog dlg
    • buttonsArea

      private StandardButtonsArea buttonsArea
    • btnBrowseTorrent

      private org.eclipse.swt.widgets.Button btnBrowseTorrent
    • btnBrowseFolder

      private org.eclipse.swt.widgets.Button btnBrowseFolder
    • btnPasteOrClear

      private org.eclipse.swt.widgets.Button btnPasteOrClear
    • btnPasteOrClearIsPaste

      private boolean btnPasteOrClearIsPaste
    • soTextArea

      private SWTSkinObjectTextbox soTextArea
    • soReferArea

      private SWTSkinObject soReferArea
    • referrer_combo

      private org.eclipse.swt.widgets.Combo referrer_combo
    • last_referrer

      private String last_referrer
    • referrers

      private List<String> referrers
    • soShowAdvanced

      private SWTSkinObjectCheckbox soShowAdvanced
    • lastCopiedFromClip

      private String lastCopiedFromClip
  • Constructor Details

    • OpenTorrentWindow

      public OpenTorrentWindow(org.eclipse.swt.widgets.Shell parent)
  • Method Details

    • swt_createWindow

      private void swt_createWindow()
    • openTorrent

      private void openTorrent(int intValue)
    • openTorrent

      protected void openTorrent(String text, String newReferrer)
    • dispose

      protected void dispose()
    • swt_addButtons

      private void swt_addButtons(org.eclipse.swt.widgets.Composite parent)
    • ensureTrailingSeparator

      private String ensureTrailingSeparator(String sPath)
    • addTorrentsToWindow

      private int addTorrentsToWindow(String sTorrentFilePath, String[] sTorrentFilenames)
    • addTorrentsFromTextList

      private int addTorrentsFromTextList(String sClipText, boolean bVerifyOnly)
      Add Torrent(s) to Window using a text list of files/urls/torrents
      Parameters:
      sClipText - Text to parse
      bVerifyOnly - Only check if there's potential torrents in the text, do not try to add the torrents.
      Returns:
      Number of torrents added or found. When bVerifyOnly, this number may not be exact.
    • main

      public static void main(String[] args)
    • isDisposed

      private boolean isDisposed()
    • TorrentDownloaderEvent

      public void TorrentDownloaderEvent(int state, TorrentDownloader inf)
      Specified by:
      TorrentDownloaderEvent in interface TorrentDownloaderCallBackInterface
    • updateUI

      public void updateUI()
      Description copied from interface: UIUpdatable
      Update your UI!
      Specified by:
      updateUI in interface UIUpdatable
    • getUpdateUIName

      public String getUpdateUIName()
      Description copied from interface: UIUpdatable
      A name for this UIUpdatable so we can track who's being bad
      Specified by:
      getUpdateUIName in interface UIUpdatable
      Returns:
      some name