Files
timi-fx/src/main/java/com/imyeyu/fx/task/PublicTask.java
Timi 17eb4af81c
Some checks failed
CI/CD / build-deploy (pull_request) Failing after 1m27s
v0.0.3
2026-05-10 16:27:33 +08:00

65 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.imyeyu.fx.task;
import javafx.concurrent.Task;
/**
* Task 提升权限,所有操作视 UI 线程状态选择性调度UI 繁忙时不更新),数据计算不应在更新回调中
*
* @author 夜雨
* @since 2022-01-08 16:24
*/
public abstract class PublicTask<T> extends Task<T> {
/**
* 更新数据
*
* @param value 数据对象
*/
@Override
public void updateValue(T value) {
super.updateValue(value);
}
/**
* 更新消息
*
* @param message 消息
*/
@Override
public void updateMessage(String message) {
super.updateMessage(message);
}
/**
* 更新进度(自动计算百分比)
*
* @param workDone 已完成
* @param max 最大
*/
@Override
public void updateProgress(long workDone, long max) {
super.updateProgress(workDone, max);
}
/**
* 更新进度(自动计算百分比)
*
* @param workDone 已完成
* @param max 最大
*/
@Override
public void updateProgress(double workDone, double max) {
super.updateProgress(workDone, max);
}
/**
* 更新标题
*
* @param title 标题
*/
@Override
public void updateTitle(String title) {
super.updateTitle(title);
}
}