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 Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Button
private org.eclipse.swt.widgets.Button
private org.eclipse.swt.widgets.Button
private boolean
private StandardButtonsArea
protected static String
private SkinnedDialog
private String
private String
private org.eclipse.swt.widgets.Shell
private org.eclipse.swt.widgets.Combo
private org.eclipse.swt.widgets.Shell
private SWTSkinObject
private SWTSkinObjectCheckbox
private SWTSkinObjectTextbox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
addTorrentsFromTextList
(String sClipText, boolean bVerifyOnly) Add Torrent(s) to Window using a text list of files/urls/torrentsprivate int
addTorrentsToWindow
(String sTorrentFilePath, String[] sTorrentFilenames) protected void
dispose()
private String
ensureTrailingSeparator
(String sPath) A name for this UIUpdatable so we can track who's being badprivate boolean
static void
private void
openTorrent
(int intValue) protected void
openTorrent
(String text, String newReferrer) private void
swt_addButtons
(org.eclipse.swt.widgets.Composite parent) private void
void
TorrentDownloaderEvent
(int state, TorrentDownloader inf) void
updateUI()
Update your UI!
-
Field Details
-
CONFIG_REFERRER_DEFAULT
-
shellForChildren
private org.eclipse.swt.widgets.Shell shellForChildren -
parent
private org.eclipse.swt.widgets.Shell parent -
dlg
-
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
-
soReferArea
-
referrer_combo
private org.eclipse.swt.widgets.Combo referrer_combo -
last_referrer
-
referrers
-
soShowAdvanced
-
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
-
dispose
protected void dispose() -
swt_addButtons
private void swt_addButtons(org.eclipse.swt.widgets.Composite parent) -
ensureTrailingSeparator
-
addTorrentsToWindow
-
addTorrentsFromTextList
Add Torrent(s) to Window using a text list of files/urls/torrents- Parameters:
sClipText
- Text to parsebVerifyOnly
- 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
-
isDisposed
private boolean isDisposed() -
TorrentDownloaderEvent
- Specified by:
TorrentDownloaderEvent
in interfaceTorrentDownloaderCallBackInterface
-
updateUI
public void updateUI()Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
getUpdateUIName
Description copied from interface:UIUpdatable
A name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUIName
in interfaceUIUpdatable
- Returns:
- some name
-