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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
DownloadNotifier
public DownloadNotifier()
-
-
Method Details
-
downloadAdded
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
stateChanged
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
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
-