V - the result type of method getValuepublic abstract class DataFxTask<V> extends javafx.concurrent.Task<V> implements TaskStateHandler
| ?????? |
|---|
DataFxTask() |
| ?????? | ????? |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
javafx.beans.property.BooleanProperty |
cancelableProperty()
Indicates that the task is currently cancelable.
|
boolean |
isCancelable()
Checks if the task is cancelable
|
void |
setCancelable(boolean cancelable) |
void |
then(java.util.function.Consumer<V> consumer) |
void |
updateTaskMessage(java.lang.String message)
Updates the message of the handled task
|
void |
updateTaskProgress(double workDone,
double max) |
void |
updateTaskProgress(long workDone,
long max) |
void |
updateTaskTitle(java.lang.String title)
Alters the title of the handled task
|
addEventFilter, addEventHandler, buildEventDispatchChain, call, cancel, cancelled, exceptionProperty, failed, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, succeeded, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateProgress, updateTitle, updateValue, valueProperty, workDonePropertypublic void updateTaskTitle(java.lang.String title)
TaskStateHandlerupdateTaskTitle ???? TaskStateHandlertitle - the new titlepublic void updateTaskMessage(java.lang.String message)
TaskStateHandlerupdateTaskMessage ???? TaskStateHandlermessage - the new messagepublic void updateTaskProgress(double workDone,
double max)
updateTaskProgress ???? TaskStateHandlerpublic void updateTaskProgress(long workDone,
long max)
updateTaskProgress ???? TaskStateHandlerpublic javafx.beans.property.BooleanProperty cancelableProperty()
public boolean isCancelable()
public void setCancelable(boolean cancelable)
setCancelable ???? TaskStateHandlerpublic boolean cancel(boolean mayInterruptIfRunning)
public void then(java.util.function.Consumer<V> consumer)