java.lang.Object
com.acgist.snail.gui.javafx.window.torrent.TorrentSelector

public final class TorrentSelector extends Object

BT任务下载文件选择器

作者:
acgist
  • 方法详细资料

    • newInstance

      public static final TorrentSelector newInstance(String name, javafx.scene.control.Button download, javafx.scene.control.TreeView<javafx.scene.layout.HBox> tree)

      新建BT任务下载文件选择器

      参数:
      name - 任务名称
      download - 下载按钮
      tree - 树形菜单
      返回:
      TorrentSelector
    • build

      public void build(TorrentFile torrentFile)

      新建文件菜单

      参数:
      torrentFile - 文件
    • size

      public Long size()

      获取选择文件大小

      返回:
      选择文件大小
    • description

      public List<String> description()

      获取选择文件列表

      返回:
      选择文件列表
    • select

      public void select(ITaskSession taskSession)

      设置选择文件

      如果没有选择文件使用自动选择(选择大于平均值的文件)

      参数:
      taskSession - 任务信息