org.gudy.azureus2.ui.swt.views
Class MyTorrentsSuperView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.MyTorrentsSuperView
All Implemented Interfaces:
AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener

public class MyTorrentsSuperView
extends Object
implements UISWTViewCoreEventListener, AEDiagnosticsEvidenceGenerator, UIPluginViewToolBarListener

Wraps a "Incomplete" torrent list and a "Complete" torrent list into one view


Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Constructor Summary
MyTorrentsSuperView(org.eclipse.swt.widgets.Text txtFilter, org.eclipse.swt.widgets.Composite cCats)
           
 
Method Summary
protected  MyTorrentsView createTorrentView(AzureusCore _azureus_core, String tableID, boolean isSeedingView, TableColumnCore[] columns, org.eclipse.swt.widgets.Composite c)
          Returns an instance of MyTorrentsView Subclasses my override to return a different instance of MyTorrentsView
 void dataSourceChanged(Object newDataSource)
           
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 void generate(IndentWriter writer)
           
protected  TableColumnCore[] getCompleteColumns()
          Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columns
 org.eclipse.swt.widgets.Composite getComposite()
           
 String getFullTitle()
           
protected  TableColumnCore[] getIncompleteColumns()
          Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columns
 org.eclipse.swt.widgets.Menu getPrivateMenu()
           
 MyTorrentsView getSeedingview()
           
 DownloadManager[] getSelectedDownloads()
           
 UISWTView getSWTView()
           
 MyTorrentsView getTorrentview()
           
 void initialize(org.eclipse.swt.widgets.Composite parent)
           
 void initializeDone()
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 void updateLanguage()
           
 void viewActivated()
           
 void viewDeactivated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyTorrentsSuperView

public MyTorrentsSuperView(org.eclipse.swt.widgets.Text txtFilter,
                           org.eclipse.swt.widgets.Composite cCats)
Method Detail

getComposite

public org.eclipse.swt.widgets.Composite getComposite()

initialize

public void initialize(org.eclipse.swt.widgets.Composite parent)

initializeDone

public void initializeDone()

updateLanguage

public void updateLanguage()

getFullTitle

public String getFullTitle()

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

getSelectedDownloads

public DownloadManager[] getSelectedDownloads()

generate

public void generate(IndentWriter writer)
Specified by:
generate in interface AEDiagnosticsEvidenceGenerator

getPrivateMenu

public org.eclipse.swt.widgets.Menu getPrivateMenu()

viewActivated

public void viewActivated()

viewDeactivated

public void viewDeactivated()

getIncompleteColumns

protected TableColumnCore[] getIncompleteColumns()
Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columns

Returns:

getCompleteColumns

protected TableColumnCore[] getCompleteColumns()
Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columns

Returns:

createTorrentView

protected MyTorrentsView createTorrentView(AzureusCore _azureus_core,
                                           String tableID,
                                           boolean isSeedingView,
                                           TableColumnCore[] columns,
                                           org.eclipse.swt.widgets.Composite c)
Returns an instance of MyTorrentsView Subclasses my override to return a different instance of MyTorrentsView

Parameters:
_azureus_core -
isSeedingView -
columns -
child1 -
Returns:

getTorrentview

public MyTorrentsView getTorrentview()

getSeedingview

public MyTorrentsView getSeedingview()

dataSourceChanged

public void dataSourceChanged(Object newDataSource)

eventOccurred

public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface: UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs

Specified by:
eventOccurred in interface UISWTViewEventListener
Parameters:
event - event that occurred
Returns:
meaning dependent upon event type

getSWTView

public UISWTView getSWTView()