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

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

public class PeersView
extends TableViewTab<PEPeer>
implements DownloadManagerPeerListener, TableDataSourceChangedListener, TableLifeCycleListener, TableViewSWTMenuFillListener, UISWTViewCoreEventListenerEx

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
static String MSGID_PREFIX
           
 
Fields inherited from interface com.aelitis.azureus.ui.common.table.TableLifeCycleListener
EVENT_DESTROYED, EVENT_INITIALIZED
 
Constructor Summary
PeersView()
          Initialize
 
Method Summary
 void addThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn)
          Create a SubMenu for column specific tasks.
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
static void fillMenu(org.eclipse.swt.widgets.Menu menu, PEPeer peer, DownloadManager download_specific)
           
static void fillMenu(org.eclipse.swt.widgets.Menu menu, TableView<PEPeer> tv, org.eclipse.swt.widgets.Shell shell, DownloadManager download_specific)
           
 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 peer_manager)
          Called when a peer manager is created but not yet started
 void peerRemoved(PEPeer removed)
           
 void selectPeer(PEPeer peer)
           
 void tableDataSourceChanged(Object newDataSource)
           
 void tableViewDestroyed()
           
 void tableViewInitialized()
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab
dataSourceChanged, delete, enableFilterCheck, 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
 

Field Detail

MSGID_PREFIX

public static final String MSGID_PREFIX
See Also:
Constant Field Values
Constructor Detail

PeersView

public PeersView()
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>

tableDataSourceChanged

public void tableDataSourceChanged(Object newDataSource)
Specified by:
tableDataSourceChanged in interface TableDataSourceChangedListener

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

fillMenu

public static void fillMenu(org.eclipse.swt.widgets.Menu menu,
                            PEPeer peer,
                            DownloadManager download_specific)

fillMenu

public static void fillMenu(org.eclipse.swt.widgets.Menu menu,
                            TableView<PEPeer> tv,
                            org.eclipse.swt.widgets.Shell shell,
                            DownloadManager download_specific)

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

peerAdded

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

peerRemoved

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

selectPeer

public void selectPeer(PEPeer peer)

peerManagerWillBeAdded

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

Specified by:
peerManagerWillBeAdded in interface DownloadManagerPeerListener

peerManagerAdded

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

peerManagerRemoved

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

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
Overrides:
eventOccurred in class TableViewTab<PEPeer>
Parameters:
event - event that occurred
Returns:
meaning dependent upon event type