Package com.biglybt.ui.swt.views.skin
Class SBC_TorrentDetailsView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.views.skin.SBC_TorrentDetailsView
-
- All Implemented Interfaces:
DownloadManagerListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,SelectedContentListener
,SWTSkinObjectListener
public class SBC_TorrentDetailsView extends SkinView implements DownloadManagerListener, UIPluginViewToolBarListener, SelectedContentListener
Torrent download view, consisting of several information tabs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SBC_TorrentDetailsView.TorrentDetailMdiEntry
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
dataSource
private DownloadManager
manager
private TabbedMdiInterface
tabbedMDI
private static java.lang.String
VIEW_ID
-
Fields inherited from interface com.biglybt.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMES
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SBC_TorrentDetailsView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completionChanged(DownloadManager manager, boolean bCompleted)
Notification that the completion state has changed.void
currentlySelectedContentChanged(ISelectedContent[] currentContent, java.lang.String viewId)
java.lang.Object
dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
private void
dataSourceChanged(java.lang.Object newDataSource)
private void
delete()
void
downloadComplete(DownloadManager manager)
Notification that we were downloading and the download has completedvoid
filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
private BaseMdiEntry
getActiveView()
DownloadManager
getDownload()
private void
initialize(SWTSkinObjectTabFolder soTabFolder)
void
positionChanged(DownloadManager download, int oldPosition, int newPosition)
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setjava.lang.Object
skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was destroyedjava.lang.Object
skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
void
stateChanged(DownloadManager manager, int state)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItem-
Methods inherited from class com.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectHidden, skinObjectShown
-
Methods inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
eventOccured, skinObjectSelected, updateLanguage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.download.DownloadManagerListener
fileLocationChanged
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
VIEW_ID
private static final java.lang.String VIEW_ID
- See Also:
- Constant Field Values
-
manager
private DownloadManager manager
-
tabbedMDI
private TabbedMdiInterface tabbedMDI
-
dataSource
private java.lang.Object dataSource
-
-
Method Detail
-
dataSourceChanged
private void dataSourceChanged(java.lang.Object newDataSource)
-
delete
private void delete()
-
initialize
private void initialize(SWTSkinObjectTabFolder soTabFolder)
-
currentlySelectedContentChanged
public void currentlySelectedContentChanged(ISelectedContent[] currentContent, java.lang.String viewId)
- Specified by:
currentlySelectedContentChanged
in interfaceSelectedContentListener
-
refreshToolBarItems
public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
downloadComplete
public void downloadComplete(DownloadManager manager)
Description copied from interface:DownloadManagerListener
Notification that we were downloading and the download has completed- Specified by:
downloadComplete
in interfaceDownloadManagerListener
-
completionChanged
public void completionChanged(DownloadManager manager, boolean bCompleted)
Description copied from interface:DownloadManagerListener
Notification that the completion state has changed. Tells you when we switched from Completed to Incompleted (or visa versa) Does not get called when diskManager goes into CHECKING, but does when it goes out of CHECKING, to avoid torrents jumping momentarily from Completed to Incompleted to Completed again.- Specified by:
completionChanged
in interfaceDownloadManagerListener
-
filePriorityChanged
public void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
- Specified by:
filePriorityChanged
in interfaceDownloadManagerListener
-
stateChanged
public void stateChanged(DownloadManager manager, int state)
- Specified by:
stateChanged
in interfaceDownloadManagerListener
-
positionChanged
public void positionChanged(DownloadManager download, int oldPosition, int newPosition)
- Specified by:
positionChanged
in interfaceDownloadManagerListener
-
getDownload
public DownloadManager getDownload()
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
skinObjectDestroyed
public java.lang.Object skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was destroyed- Overrides:
skinObjectDestroyed
in classSkinView
-
dataSourceChanged
public java.lang.Object dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
- Overrides:
dataSourceChanged
in classSWTSkinObjectAdapter
-
getActiveView
private BaseMdiEntry getActiveView()
-
-