Package com.biglybt.ui.swt.search
Class SBC_SearchResult
- java.lang.Object
-
- com.biglybt.ui.swt.search.SBC_SearchResult
-
- All Implemented Interfaces:
SearchSubsResultBase
,SBC_SearchResultsView.ImageLoadListener
public class SBC_SearchResult extends java.lang.Object implements SearchSubsResultBase, SBC_SearchResultsView.ImageLoadListener
-
-
Field Summary
Fields Modifier and Type Field Description private int
content_type
private Engine
engine
private Result
result
private int
seed_count
private java.lang.String
seeds_peers
private long
seeds_peers_sort
private LightHashMap<java.lang.Object,java.lang.Object>
user_data
private SBC_SearchResultsView
view
private java.lang.String
votes_comments
private long
votes_comments_sort
-
Constructor Summary
Constructors Constructor Description SBC_SearchResult(SBC_SearchResultsView _view, Engine _engine, Result _result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAssetDate()
java.lang.String
getCategory()
int
getContentType()
java.lang.String
getDetailsLink()
Engine
getEngine()
byte[]
getHash()
org.eclipse.swt.graphics.Image
getIcon()
java.lang.String
getName()
int
getNbSeeds()
int
getRank()
boolean
getRead()
java.lang.String
getSeedsPeers()
long
getSeedsPeersSortValue()
long
getSize()
long
getTime()
java.lang.String
getTorrentLink()
java.lang.Object
getUserData(java.lang.Object key)
java.lang.String
getVotesComments()
long
getVotesCommentsSortValue()
void
imageLoaded(org.eclipse.swt.graphics.Image image)
void
setRead(boolean read)
void
setUserData(java.lang.Object key, java.lang.Object data)
-
-
-
Field Detail
-
view
private final SBC_SearchResultsView view
-
engine
private final Engine engine
-
result
private final Result result
-
content_type
private final int content_type
-
seeds_peers
private final java.lang.String seeds_peers
-
seeds_peers_sort
private final long seeds_peers_sort
-
seed_count
private final int seed_count
-
votes_comments_sort
private final long votes_comments_sort
-
votes_comments
private final java.lang.String votes_comments
-
user_data
private LightHashMap<java.lang.Object,java.lang.Object> user_data
-
-
Constructor Detail
-
SBC_SearchResult
public SBC_SearchResult(SBC_SearchResultsView _view, Engine _engine, Result _result)
-
-
Method Detail
-
getEngine
public Engine getEngine()
-
getName
public final java.lang.String getName()
- Specified by:
getName
in interfaceSearchSubsResultBase
-
getHash
public byte[] getHash()
- Specified by:
getHash
in interfaceSearchSubsResultBase
-
getContentType
public int getContentType()
- Specified by:
getContentType
in interfaceSearchSubsResultBase
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceSearchSubsResultBase
-
getNbSeeds
public int getNbSeeds()
- Specified by:
getNbSeeds
in interfaceSearchSubsResultBase
-
getSeedsPeers
public java.lang.String getSeedsPeers()
- Specified by:
getSeedsPeers
in interfaceSearchSubsResultBase
-
getSeedsPeersSortValue
public long getSeedsPeersSortValue()
- Specified by:
getSeedsPeersSortValue
in interfaceSearchSubsResultBase
-
getVotesComments
public java.lang.String getVotesComments()
- Specified by:
getVotesComments
in interfaceSearchSubsResultBase
-
getVotesCommentsSortValue
public long getVotesCommentsSortValue()
- Specified by:
getVotesCommentsSortValue
in interfaceSearchSubsResultBase
-
getRank
public int getRank()
- Specified by:
getRank
in interfaceSearchSubsResultBase
-
getTorrentLink
public java.lang.String getTorrentLink()
- Specified by:
getTorrentLink
in interfaceSearchSubsResultBase
-
getDetailsLink
public java.lang.String getDetailsLink()
- Specified by:
getDetailsLink
in interfaceSearchSubsResultBase
-
getCategory
public java.lang.String getCategory()
- Specified by:
getCategory
in interfaceSearchSubsResultBase
-
getTime
public long getTime()
- Specified by:
getTime
in interfaceSearchSubsResultBase
-
getAssetDate
public long getAssetDate()
- Specified by:
getAssetDate
in interfaceSearchSubsResultBase
-
getIcon
public org.eclipse.swt.graphics.Image getIcon()
-
getRead
public boolean getRead()
- Specified by:
getRead
in interfaceSearchSubsResultBase
-
setRead
public void setRead(boolean read)
- Specified by:
setRead
in interfaceSearchSubsResultBase
-
imageLoaded
public void imageLoaded(org.eclipse.swt.graphics.Image image)
- Specified by:
imageLoaded
in interfaceSBC_SearchResultsView.ImageLoadListener
-
setUserData
public void setUserData(java.lang.Object key, java.lang.Object data)
- Specified by:
setUserData
in interfaceSearchSubsResultBase
-
getUserData
public java.lang.Object getUserData(java.lang.Object key)
- Specified by:
getUserData
in interfaceSearchSubsResultBase
-
-