Package com.biglybt.ui.selectedcontent
Class SelectedContent
- java.lang.Object
-
- com.biglybt.ui.selectedcontent.SelectedContent
-
- All Implemented Interfaces:
ISelectedContent
public class SelectedContent extends java.lang.Object implements ISelectedContent
Represents a piece of content (torrent) that is selected
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
displayName
private DownloadManager
dm
private DownloadUrlInfo
downloadInfo
private int
file_index
private java.lang.String
hash
private TOTorrent
torrent
-
Constructor Summary
Constructors Constructor Description SelectedContent()
Deprecated.- at least set a display-name for debug purposesSelectedContent(DownloadManager dm)
SelectedContent(DownloadManager dm, int _file_index)
SelectedContent(java.lang.String dn)
SelectedContent(java.lang.String hash, java.lang.String displayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
DownloadUrlInfo
getDownloadInfo()
DownloadManager
getDownloadManager()
int
getFileIndex()
java.lang.String
getHash()
TOTorrent
getTorrent()
boolean
sameAs(ISelectedContent _other)
void
setDisplayName(java.lang.String displayName)
void
setDownloadInfo(DownloadUrlInfo info)
void
setDownloadManager(DownloadManager _dm)
void
setHash(java.lang.String hash)
void
setTorrent(TOTorrent _torrent)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.ui.selectedcontent.ISelectedContent
getString
-
-
-
-
Field Detail
-
hash
private java.lang.String hash
-
dm
private DownloadManager dm
-
file_index
private int file_index
-
torrent
private TOTorrent torrent
-
displayName
private java.lang.String displayName
-
downloadInfo
private DownloadUrlInfo downloadInfo
-
-
Constructor Detail
-
SelectedContent
public SelectedContent(DownloadManager dm)
- Parameters:
dm
-- Throws:
java.lang.Exception
-
SelectedContent
public SelectedContent(DownloadManager dm, int _file_index)
-
SelectedContent
public SelectedContent(java.lang.String hash, java.lang.String displayName)
-
SelectedContent
public SelectedContent()
Deprecated.- at least set a display-name for debug purposes
-
SelectedContent
public SelectedContent(java.lang.String dn)
-
-
Method Detail
-
getHash
public java.lang.String getHash()
- Specified by:
getHash
in interfaceISelectedContent
-
setHash
public void setHash(java.lang.String hash)
- Specified by:
setHash
in interfaceISelectedContent
-
getDownloadManager
public DownloadManager getDownloadManager()
- Specified by:
getDownloadManager
in interfaceISelectedContent
-
setDownloadManager
public void setDownloadManager(DownloadManager _dm)
- Specified by:
setDownloadManager
in interfaceISelectedContent
-
getFileIndex
public int getFileIndex()
- Specified by:
getFileIndex
in interfaceISelectedContent
-
getTorrent
public TOTorrent getTorrent()
- Specified by:
getTorrent
in interfaceISelectedContent
-
setTorrent
public void setTorrent(TOTorrent _torrent)
- Specified by:
setTorrent
in interfaceISelectedContent
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interfaceISelectedContent
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
- Specified by:
setDisplayName
in interfaceISelectedContent
-
getDownloadInfo
public DownloadUrlInfo getDownloadInfo()
- Specified by:
getDownloadInfo
in interfaceISelectedContent
-
setDownloadInfo
public void setDownloadInfo(DownloadUrlInfo info)
-
sameAs
public boolean sameAs(ISelectedContent _other)
- Specified by:
sameAs
in interfaceISelectedContent
-
-