Search in sources :

Example 1 with CrawlableSearchResult

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);
            }
        }
    }
}
Also used : ArchiveorgTorrentSearchResult(com.frostwire.search.archiveorg.ArchiveorgTorrentSearchResult) SearchResult(com.frostwire.search.SearchResult) StreamableSearchResult(com.frostwire.search.StreamableSearchResult) CrawlableSearchResult(com.frostwire.search.CrawlableSearchResult) ArchiveorgTorrentSearchResult(com.frostwire.search.archiveorg.ArchiveorgTorrentSearchResult) CrawlableSearchResult(com.frostwire.search.CrawlableSearchResult)

Example 2 with CrawlableSearchResult

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);
}
Also used : ArchiveorgTorrentSearchResult(com.frostwire.search.archiveorg.ArchiveorgTorrentSearchResult) SearchResult(com.frostwire.search.SearchResult) StreamableSearchResult(com.frostwire.search.StreamableSearchResult) CrawlableSearchResult(com.frostwire.search.CrawlableSearchResult) ArchiveorgTorrentSearchResult(com.frostwire.search.archiveorg.ArchiveorgTorrentSearchResult) CrawlableSearchResult(com.frostwire.search.CrawlableSearchResult)

Aggregations

CrawlableSearchResult (com.frostwire.search.CrawlableSearchResult)2 SearchResult (com.frostwire.search.SearchResult)2 StreamableSearchResult (com.frostwire.search.StreamableSearchResult)2 ArchiveorgTorrentSearchResult (com.frostwire.search.archiveorg.ArchiveorgTorrentSearchResult)2