public interface FxTaskTracker
Interface for tracking and updating the state, progress, title, and message of a task.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidupdateTaskMessage(Task<?> task, String message) Updates the message associated with a specified task.voidupdateTaskProgress(Task<?> task, double progress) Updates the progress of a given task.voidupdateTaskState(Task<?> task, Worker.State state) Updates the state of the specified task.voidupdateTaskTitle(Task<?> task, String title) Updates the title of a given task.
-
Methodendetails
-
updateTaskState
Updates the state of the specified task.- Parameter:
task- the task whose state is to be updatedstate- the new state to be set for the task- Siehe auch:
-
updateTaskProgress
Updates the progress of a given task.- Parameter:
task- The task for which the progress is being updated.progress- The current progress of the task, typically a value between 0.0 and 1.0.
-
updateTaskTitle
Updates the title of a given task.- Parameter:
task- the task whose title needs to be updatedtitle- the new title to set for the task
-
updateTaskMessage
Updates the message associated with a specified task.- Parameter:
task- the task whose message is to be updatedmessage- the new message to set for the task
-