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 DownloadEventNotifierImpl.BaseDownloadListener
listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadAdded(Download download) voiddownloadRemoved(Download download) voidpositionChanged(Download download, int old_position, int new_position) Position of download has changed.voidstateChanged(Download download, int old_state, int new_state) The Download's state has changed.Methods inherited from class DownloadEventNotifierImpl.BaseDownloadListener
addListener, removeListener
-
Constructor Details
-
DownloadNotifier
public DownloadNotifier()
-
-
Method Details
-
downloadAdded
- Specified by:
downloadAddedin interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemovedin interfaceDownloadManagerListener
-
stateChanged
Description copied from interface:DownloadListenerThe Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChangedin interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListenerPosition of download has changed.- Specified by:
positionChangedin 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
-