com.aelitis.azureus.ui.swt.views.skin
Class SBC_TorrentDetailsView

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      extended by com.aelitis.azureus.ui.swt.views.skin.SkinView
          extended by com.aelitis.azureus.ui.swt.views.skin.SBC_TorrentDetailsView
All Implemented Interfaces:
SelectedContentListener, SWTSkinObjectListener, DownloadManagerListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener

public class SBC_TorrentDetailsView
extends SkinView
implements DownloadManagerListener, UIPluginViewToolBarListener, SelectedContentListener

Torrent download view, consisting of several information tabs

Author:
Olivier

Nested Class Summary
static class SBC_TorrentDetailsView.TorrentDetailMdiEntry
           
 
Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
skin, soMain
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Fields inherited from interface com.aelitis.azureus.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_SELECT, EVENT_SHOW, NAMES
 
Constructor Summary
SBC_TorrentDetailsView()
           
 
Method Summary
 void completionChanged(DownloadManager manager, boolean bCompleted)
          Notification that the completion state has changed.
 void currentlySelectedContentChanged(ISelectedContent[] currentContent, String viewId)
           
 Object dataSourceChanged(SWTSkinObject skinObject, Object params)
           
 void downloadComplete(DownloadManager manager)
          Notification that we were downloading and the download has completed
protected static String escapeAccelerators(String str)
           
 void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
           
 DownloadManager getDownload()
           
 String getUpdateUIName()
           
 boolean isSelected(String itemKey)
           
 void positionChanged(DownloadManager download, int oldPosition, int newPosition)
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
 Object skinObjectDestroyed(SWTSkinObject skinObject, Object params)
          Skin Object was destroyed
 Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 void stateChanged(DownloadManager manager, int state)
           
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 void updateUI()
           
 
Methods inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
getMainSkinObject, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectHidden, skinObjectShown
 
Methods inherited from class com.aelitis.azureus.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
 

Constructor Detail

SBC_TorrentDetailsView

public SBC_TorrentDetailsView()
Method Detail

currentlySelectedContentChanged

public void currentlySelectedContentChanged(ISelectedContent[] currentContent,
                                            String viewId)
Specified by:
currentlySelectedContentChanged in interface SelectedContentListener

escapeAccelerators

protected static String escapeAccelerators(String str)

refreshToolBarItems

public void refreshToolBarItems(Map<String,Long> list)
Description copied from interface: UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set

Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener

toolBarItemActivated

public boolean toolBarItemActivated(ToolBarItem item,
                                    long activationType,
                                    Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

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 interface DownloadManagerListener

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 interface DownloadManagerListener

filePriorityChanged

public void filePriorityChanged(DownloadManager download,
                                DiskManagerFileInfo file)
Specified by:
filePriorityChanged in interface DownloadManagerListener

stateChanged

public void stateChanged(DownloadManager manager,
                         int state)
Specified by:
stateChanged in interface DownloadManagerListener

positionChanged

public void positionChanged(DownloadManager download,
                            int oldPosition,
                            int newPosition)
Specified by:
positionChanged in interface DownloadManagerListener

getDownload

public DownloadManager getDownload()

isSelected

public boolean isSelected(String itemKey)

getUpdateUIName

public String getUpdateUIName()

updateUI

public void updateUI()

skinObjectInitialShow

public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
Specified by:
skinObjectInitialShow in class SkinView
Returns:

skinObjectDestroyed

public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was destroyed

Overrides:
skinObjectDestroyed in class SkinView

dataSourceChanged

public Object dataSourceChanged(SWTSkinObject skinObject,
                                Object params)
Overrides:
dataSourceChanged in class SWTSkinObjectAdapter