Methods Summary |
---|
public void | announceResult(org.gudy.azureus2.core3.tracker.client.TRTrackerAnnouncerResponse response)
// Don't care about announce
|
public void | cellHover(org.gudy.azureus2.plugins.ui.tables.TableCell cell)
|
public void | cellHoverComplete(org.gudy.azureus2.plugins.ui.tables.TableCell cell)
cell.setToolTip(null);
|
public boolean | checkScrapeResult(org.gudy.azureus2.core3.tracker.client.TRTrackerScraperResponse response)
if (response != null) {
TableCell cell_ref = cell;
if ( cell_ref == null ){
return( false );
}
// Exit if this scrape result is not from the tracker currently being used.
DownloadManager dm = (DownloadManager) cell.getDataSource();
if (dm == null || dm != this.dm)
return false;
TOTorrent torrent = dm.getTorrent();
if ( torrent == null ){
return( false );
}
URL announceURL = torrent.getAnnounceURL();
URL responseURL = response.getURL();
if (announceURL != responseURL && announceURL != null
&& responseURL != null
&& !announceURL.toString().equals(responseURL.toString()))
return false;
cell_ref.invalidate();
return response.isValid();
}
return false;
|
public void | dispose(org.gudy.azureus2.plugins.ui.tables.TableCell cell)
if (dm != null)
dm.removeTrackerListener(this);
DownloadManager dm = (DownloadManager) cell.getDataSource();
if (dm != null && dm != this.dm)
dm.removeTrackerListener(this);
dm = null;
cell = null;
|
public void | refresh(org.gudy.azureus2.plugins.ui.tables.TableCell cell)
DownloadManager oldDM = dm;
dm = (DownloadManager) cell.getDataSource();
// datasource changed, change listener
if (dm != oldDM) {
if (oldDM != null)
oldDM.removeTrackerListener(this);
if (dm != null)
dm.addTrackerListener(this);
}
|