Class DownloadEventNotifierImpl.DownloadNotifier
- java.lang.Object
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.DownloadNotifier
-
- All Implemented Interfaces:
DownloadListener
,DownloadManagerListener
- Enclosing class:
- DownloadEventNotifierImpl
public class DownloadEventNotifierImpl.DownloadNotifier extends DownloadEventNotifierImpl.BaseDownloadListener implements DownloadListener
-
-
Field Summary
-
Fields inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
listeners
-
-
Constructor Summary
Constructors Constructor Description DownloadNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
downloadAdded(Download download)
void
downloadRemoved(Download download)
void
positionChanged(Download download, int old_position, int new_position)
Position of download has changed.void
stateChanged(Download download, int old_state, int new_state)
The Download's state has changed.-
Methods inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
addListener, removeListener
-
-
-
-
Method Detail
-
downloadAdded
public void downloadAdded(Download download)
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
public void downloadRemoved(Download download)
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
stateChanged
public void stateChanged(Download download, int old_state, int new_state)
Description copied from interface:DownloadListener
The Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChanged
in interfaceDownloadListener
-
positionChanged
public void positionChanged(Download download, int old_position, int new_position)
Description copied from interface:DownloadListener
Position of download has changed.- Specified by:
positionChanged
in interfaceDownloadListener
- Parameters:
download
- object in which the position has changedold_position
- position that the download used to be atnew_position
- position that the download is now at
-
-