Package com.biglybt.core.download.impl
Class DownloadManagerAdapter
- java.lang.Object
-
- com.biglybt.core.download.impl.DownloadManagerAdapter
-
- All Implemented Interfaces:
DownloadManagerListener
- Direct Known Subclasses:
GlobalManagerImpl
public class DownloadManagerAdapter extends java.lang.Object implements DownloadManagerListener
Adapter for DownloadManagerListener
-
-
Constructor Summary
Constructors Constructor Description DownloadManagerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completionChanged(DownloadManager manager, boolean bCompleted)
Notification that the completion state has changed.void
downloadComplete(DownloadManager manager)
Notification that we were downloading and the download has completedvoid
filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
void
positionChanged(DownloadManager download, int oldPosition, int newPosition)
void
stateChanged(DownloadManager manager, int state)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.download.DownloadManagerListener
fileLocationChanged
-
-
-
-
Method Detail
-
stateChanged
public void stateChanged(DownloadManager manager, int state)
- Specified by:
stateChanged
in interfaceDownloadManagerListener
-
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 interfaceDownloadManagerListener
-
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 interfaceDownloadManagerListener
-
positionChanged
public void positionChanged(DownloadManager download, int oldPosition, int newPosition)
- Specified by:
positionChanged
in interfaceDownloadManagerListener
-
filePriorityChanged
public void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
- Specified by:
filePriorityChanged
in interfaceDownloadManagerListener
-
-