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

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<PEPeer>
      extended by org.gudy.azureus2.ui.swt.views.PeersSuperView
All Implemented Interfaces:
TableLifeCycleListener, DownloadManagerPeerListener, GlobalManagerListener, AEDiagnosticsEvidenceGenerator, ObfusticateImage, UISWTViewEventListener, UISWTViewCoreEventListener, UISWTViewCoreEventListenerEx, TableViewSWTMenuFillListener

public class PeersSuperView
extends TableViewTab<PEPeer>
implements GlobalManagerListener, DownloadManagerPeerListener, TableLifeCycleListener, TableViewSWTMenuFillListener, UISWTViewCoreEventListenerEx

AllPeersView

Author:
Olivier, TuxPaper 2004/Apr/20: Use TableRowImpl instead of PeerRow 2004/Apr/20: Remove need for tableItemToObject 2004/Apr/21: extends TableView instead of IAbstractView, MjrTom 2005/Oct/08: Add PieceItem

Field Summary
protected static boolean registeredCoreSubViews
           
static String VIEW_ID
           
 
Fields inherited from interface com.aelitis.azureus.ui.common.table.TableLifeCycleListener
EVENT_DESTROYED, EVENT_INITIALIZED
 
Constructor Summary
PeersSuperView()
          Initialize
 
Method Summary
 void addThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn)
          Create a SubMenu for column specific tasks.
 void destroyed()
           
 void destroyInitiated()
           
 void downloadManagerAdded(DownloadManager dm)
           
 void downloadManagerRemoved(DownloadManager dm)
           
 void fillMenu(String sColumnName, org.eclipse.swt.widgets.Menu menu)
           
 UISWTViewCoreEventListener getClone()
           
 TableViewSWT<PEPeer> initYourTableView()
           
 boolean isCloneable()
           
 void peerAdded(PEPeer created)
           
 void peerManagerAdded(PEPeerManager manager)
           
 void peerManagerRemoved(PEPeerManager manager)
           
 void peerManagerWillBeAdded(PEPeerManager manager)
          Called when a peer manager is created but not yet started
 void peerRemoved(PEPeer removed)
           
 void seedingStatusChanged(boolean seeding_only_mode, boolean b)
          Notification of global seeding status changes.
 void tableViewDestroyed()
           
 void tableViewInitialized()
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab
dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, obfusticatedImage, refresh, tableViewTabInitComplete, updateLanguage, viewActivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener
eventOccurred
 

Field Detail

VIEW_ID

public static final String VIEW_ID
See Also:
Constant Field Values

registeredCoreSubViews

protected static boolean registeredCoreSubViews
Constructor Detail

PeersSuperView

public PeersSuperView()
Initialize

Method Detail

isCloneable

public boolean isCloneable()
Specified by:
isCloneable in interface UISWTViewCoreEventListenerEx

getClone

public UISWTViewCoreEventListener getClone()
Specified by:
getClone in interface UISWTViewCoreEventListenerEx

initYourTableView

public TableViewSWT<PEPeer> initYourTableView()
Specified by:
initYourTableView in class TableViewTab<PEPeer>

tableViewInitialized

public void tableViewInitialized()
Specified by:
tableViewInitialized in interface TableLifeCycleListener

tableViewDestroyed

public void tableViewDestroyed()
Specified by:
tableViewDestroyed in interface TableLifeCycleListener

fillMenu

public void fillMenu(String sColumnName,
                     org.eclipse.swt.widgets.Menu menu)
Specified by:
fillMenu in interface TableViewSWTMenuFillListener

peerAdded

public void peerAdded(PEPeer created)
Specified by:
peerAdded in interface DownloadManagerPeerListener

peerRemoved

public void peerRemoved(PEPeer removed)
Specified by:
peerRemoved in interface DownloadManagerPeerListener

downloadManagerAdded

public void downloadManagerAdded(DownloadManager dm)
Specified by:
downloadManagerAdded in interface GlobalManagerListener

downloadManagerRemoved

public void downloadManagerRemoved(DownloadManager dm)
Specified by:
downloadManagerRemoved in interface GlobalManagerListener

destroyInitiated

public void destroyInitiated()
Specified by:
destroyInitiated in interface GlobalManagerListener

destroyed

public void destroyed()
Specified by:
destroyed in interface GlobalManagerListener

seedingStatusChanged

public void seedingStatusChanged(boolean seeding_only_mode,
                                 boolean b)
Description copied from interface: GlobalManagerListener
Notification of global seeding status changes.

Specified by:
seedingStatusChanged in interface GlobalManagerListener
Parameters:
seeding_only_mode - true if only seeding torrents (no downloads), false otherwise
b - - as above but true if queued seeds

addThisColumnSubMenu

public void addThisColumnSubMenu(String columnName,
                                 org.eclipse.swt.widgets.Menu menuThisColumn)
Description copied from interface: TableViewSWTMenuFillListener
Create a SubMenu for column specific tasks. Everytime the user opens the context menu, the "This Column" submenu is cleared, and this function is called to refill it.

Specified by:
addThisColumnSubMenu in interface TableViewSWTMenuFillListener
Parameters:
columnName - The name of the column the user clicked on
menuThisColumn - the menu to fill with MenuItems

peerManagerAdded

public void peerManagerAdded(PEPeerManager manager)
Specified by:
peerManagerAdded in interface DownloadManagerPeerListener

peerManagerRemoved

public void peerManagerRemoved(PEPeerManager manager)
Specified by:
peerManagerRemoved in interface DownloadManagerPeerListener

peerManagerWillBeAdded

public void peerManagerWillBeAdded(PEPeerManager manager)
Description copied from interface: DownloadManagerPeerListener
Called when a peer manager is created but not yet started

Specified by:
peerManagerWillBeAdded in interface DownloadManagerPeerListener