V - the result type of method getValuepublic abstract class DataFxTask<V> extends javafx.concurrent.Task<V> implements TaskStateHandler
| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
cancelable
Indicates that the task is currently cancelable.
|
exceptionProperty, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty| Constructor and Description |
|---|
DataFxTask() |
| Modifier and Type | Method and Description |
|---|---|
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)
Sets the value of the property 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 javafx.beans.property.BooleanProperty cancelableProperty
isCancelable(),
setCancelable(boolean)public void updateTaskTitle(java.lang.String title)
TaskStateHandlerupdateTaskTitle in interface TaskStateHandlertitle - the new titlepublic void updateTaskMessage(java.lang.String message)
TaskStateHandlerupdateTaskMessage in interface TaskStateHandlermessage - the new messagepublic void updateTaskProgress(double workDone,
double max)
updateTaskProgress in interface TaskStateHandlerpublic void updateTaskProgress(long workDone,
long max)
updateTaskProgress in interface TaskStateHandlerpublic javafx.beans.property.BooleanProperty cancelableProperty()
isCancelable(),
setCancelable(boolean)public boolean isCancelable()
public void setCancelable(boolean cancelable)
setCancelable in interface TaskStateHandlerpublic boolean cancel(boolean mayInterruptIfRunning)
public void then(java.util.function.Consumer<V> consumer)