java.lang.Object
com.acgist.snail.gui.javafx.window.Controller
com.acgist.snail.gui.javafx.window.main.MainController
- 所有已实现的接口:
javafx.fxml.Initializable
主窗口控制器
- 作者:
- acgist
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 com.acgist.snail.gui.javafx.window.Controller
DOUBLE_CLICK_COUNT -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddelete()删除选中任务voidhandleAboutAction(javafx.event.ActionEvent event) 关于按钮voidhandleAllAction(javafx.event.ActionEvent event) 全部任务按钮voidhandleBuildAction(javafx.event.ActionEvent event) 新建按钮voidhandleCompletedAction(javafx.event.ActionEvent event) 完成任务按钮voidhandleDeleteAction(javafx.event.ActionEvent event) 删除按钮voidhandleDownloadAction(javafx.event.ActionEvent event) 下载任务按钮voidhandlePauseAction(javafx.event.ActionEvent event) 暂停按钮voidhandleSettingAction(javafx.event.ActionEvent event) 设置按钮voidhandleStartAction(javafx.event.ActionEvent event) 开始按钮boolean判断是否选中任务boolean判断是否选中BT任务voidinitialize(URL location, ResourceBundle resources) voidpause()暂停选中任务void刷新任务列表void刷新任务状态selected()获取选中任务列表获取选中BT任务列表voidstart()开始选中任务从类继承的方法 com.acgist.snail.gui.javafx.window.Controller
dragboard, release
-
构造器详细资料
-
MainController
public MainController()
-
-
方法详细资料
-
initialize
-
handleBuildAction
public void handleBuildAction(javafx.event.ActionEvent event) 新建按钮
- 参数:
event- 事件
-
handleStartAction
public void handleStartAction(javafx.event.ActionEvent event) 开始按钮
- 参数:
event- 事件
-
handlePauseAction
public void handlePauseAction(javafx.event.ActionEvent event) 暂停按钮
- 参数:
event- 事件
-
handleDeleteAction
public void handleDeleteAction(javafx.event.ActionEvent event) 删除按钮
- 参数:
event- 事件
-
handleAboutAction
public void handleAboutAction(javafx.event.ActionEvent event) 关于按钮
- 参数:
event- 事件
-
handleSettingAction
public void handleSettingAction(javafx.event.ActionEvent event) 设置按钮
- 参数:
event- 事件
-
handleAllAction
public void handleAllAction(javafx.event.ActionEvent event) 全部任务按钮
- 参数:
event- 事件
-
handleDownloadAction
public void handleDownloadAction(javafx.event.ActionEvent event) 下载任务按钮
- 参数:
event- 事件
-
handleCompletedAction
public void handleCompletedAction(javafx.event.ActionEvent event) 完成任务按钮
- 参数:
event- 事件
-
refreshTaskList
public void refreshTaskList()刷新任务列表
重新设置表格数据
-
refreshTaskStatus
public void refreshTaskStatus()刷新任务状态
不设置表格数据,只刷新任务状态。
-
selected
获取选中任务列表
- 返回:
- 选中任务列表
-
hasSelected
public boolean hasSelected()判断是否选中任务
- 返回:
- 是否选中任务
-
selectedTorrent
获取选中BT任务列表
- 返回:
- 选中BT任务列表
-
hasSelectedTorrent
public boolean hasSelectedTorrent()判断是否选中BT任务
- 返回:
- 是否选中BT任务
-
start
public void start()开始选中任务
-
pause
public void pause()暂停选中任务
-
delete
public void delete()删除选中任务
-