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.Buttonprivate org.eclipse.swt.widgets.Buttonprivate org.eclipse.swt.widgets.Buttonprivate booleanprivate StandardButtonsAreaprotected static Stringprivate SkinnedDialogprivate Stringprivate Stringprivate org.eclipse.swt.widgets.Shellprivate org.eclipse.swt.widgets.Comboprivate org.eclipse.swt.widgets.Shellprivate SWTSkinObjectprivate SWTSkinObjectCheckboxprivate SWTSkinObjectTextbox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intaddTorrentsFromTextList(String sClipText, boolean bVerifyOnly) Add Torrent(s) to Window using a text list of files/urls/torrentsprivate intaddTorrentsToWindow(String sTorrentFilePath, String[] sTorrentFilenames) protected voiddispose()private StringensureTrailingSeparator(String sPath) A name for this UIUpdatable so we can track who's being badprivate booleanstatic voidprivate voidopenTorrent(int intValue) protected voidopenTorrent(String text, String newReferrer) private voidswt_addButtons(org.eclipse.swt.widgets.Composite parent) private voidvoidTorrentDownloaderEvent(int state, TorrentDownloader inf) voidupdateUI()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:
TorrentDownloaderEventin interfaceTorrentDownloaderCallBackInterface
-
updateUI
public void updateUI()Description copied from interface:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
getUpdateUIName
Description copied from interface:UIUpdatableA name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUINamein interfaceUIUpdatable- Returns:
- some name
-