use of com.frostwire.search.CrawlableSearchResult in project frostwire by frostwire.
the class SearchResultActionsRenderer method labelPartialDownload_mouseReleased.
private void labelPartialDownload_mouseReleased(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1) {
SearchResult sr = searchResult.getSearchResult();
if (sr instanceof CrawlableSearchResult || sr instanceof ArchiveorgTorrentSearchResult) {
searchResult.download(true);
UXStats.instance().log(UXAction.SEARCH_RESULT_DETAIL_VIEW);
if (sr instanceof ArchiveorgTorrentSearchResult) {
GUIMediator.instance().showTransfers(TransfersTab.FilterMode.ALL);
}
}
}
}
use of com.frostwire.search.CrawlableSearchResult in project frostwire by frostwire.
the class SearchResultActionsRenderer method updateUIData.
private void updateUIData(SearchResultActionsHolder actionsHolder, JTable table, int row) {
cancelEdit();
if (actionsHolder == null) {
return;
}
searchResult = actionsHolder.getSearchResult();
if (searchResult == null) {
return;
}
showSolid = mouseIsOverRow(table, row);
labelPlay.setVisible(isSearchResultPlayable());
if (labelPlay.isVisible()) {
updatePlayButton();
}
labelDownload.setIcon(showSolid ? download_solid : download_transparent);
labelDownload.setVisible(true);
labelPartialDownload.setIcon(showSolid ? details_solid : details_transparent);
SearchResult sr = searchResult.getSearchResult();
labelPartialDownload.setVisible(sr instanceof CrawlableSearchResult || sr instanceof ArchiveorgTorrentSearchResult);
}
Aggregations