|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.search.MetaInfoFileSearchResult
public class MetaInfoFileSearchResult
This class stores a local search result.
| Field Summary | |
|---|---|
static javax.swing.Icon |
ICON
|
| Fields inherited from interface org.xnap.search.SearchResult |
|---|
BITRATE, FREQUENCY, HIDE_PREFIX, LENGTH, MD5, SHA1, URN |
| Constructor Summary | |
|---|---|
MetaInfoFileSearchResult(MetaInfoFile file)
|
|
| Method Summary | |
|---|---|
boolean |
canGroup(SearchResult result)
Returns true, if this object and result can be grouped
together. |
SearchResultContainer |
createContainer()
Creates a group root that has this object's properties. |
java.lang.Object |
get(java.lang.String key)
Returns a value. |
javax.swing.Action[] |
getActions()
Returns the actions for this search result. |
int |
getAvailability()
Returns a score between 1 and 255. |
java.lang.String |
getFilename()
Returns the full filename. |
java.io.File[] |
getFiles()
Invoked by an action to query the selected File objects. |
long |
getFilesize()
Returns the filesize. |
java.lang.Object |
getHash()
Used for grouping of results. |
javax.swing.Icon |
getIcon()
Returns null; |
java.lang.String[] |
getPath()
Returns the tokenized path without delimeters. |
Peer |
getPeer()
Returns the peer that offer this result for download. |
Plugin |
getPlugin()
Returns the originating plugin. |
java.lang.String |
getShortFilename()
Returns the name of the file. |
int |
getSourcesCount()
Returns the number of sources. |
java.util.Iterator |
keys()
Returns the keys of the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static javax.swing.Icon ICON
| Constructor Detail |
|---|
public MetaInfoFileSearchResult(MetaInfoFile file)
| Method Detail |
|---|
public boolean canGroup(SearchResult result)
SearchResultresult can be grouped
together.
canGroup in interface SearchResultpublic SearchResultContainer createContainer()
SearchResult
createContainer in interface SearchResultpublic java.lang.Object get(java.lang.String key)
SearchResult
get in interface SearchResultkey - anything like BITRATE, LENGTH...public javax.swing.Action[] getActions()
SearchResult
getActions in interface SearchResultpublic int getAvailability()
SearchResult
getAvailability in interface SearchResultpublic java.io.File[] getFiles()
FileProviderFile objects.
getFiles in interface FileProviderpublic java.lang.String getFilename()
SearchResultSearchFilter for
matching.
getFilename in interface SearchResultxnap.search.SearchFilterpublic long getFilesize()
SearchResult
getFilesize in interface SearchResultpublic java.lang.Object getHash()
SearchResult
getHash in interface SearchResultpublic javax.swing.Icon getIcon()
getIcon in interface SearchResultpublic java.lang.String[] getPath()
SearchResultnew String[] { "C:", "Files", "Share" }
getPath in interface SearchResultpublic Plugin getPlugin()
SearchResult
getPlugin in interface SearchResultpublic int getSourcesCount()
SearchResult
getSourcesCount in interface SearchResultpublic java.lang.String getShortFilename()
getShortFilename in interface SearchResultpublic Peer getPeer()
SearchResult
getPeer in interface SearchResultpublic java.util.Iterator keys()
keys in interface SearchResultMetaInfoFile.keys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||