SimpleTask
A simple wrapper for a task that has a status message property and a progress property. Intended for use with org.scalafx.extras.BusyWorker.SimpleTask) BusyWorker#doTask method
Type parameters
- R
-
returned value type.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Perform the main actions of this task.
Perform the main actions of this task.
Attributes
Concrete methods
Method called whenever the state of the Task has transitioned to the CANCELLED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Method called whenever the state of the Task has transitioned to the CANCELLED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Attributes
Method called whenever the state of the Task has transitioned to the FAILED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Method called whenever the state of the Task has transitioned to the FAILED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Implementation should consume the event to stop execution of automated error handling by the BusyWorker for this event.
When custom error handling is implemented, it may be more convenient to do it in onFinish, as more information about the failure can be accessed there using Try(result.get).
Value parameters
- e
-
event state issued during the failure.
Attributes
Perform some actions after after call() completed. This is executed regardless of success or failure of call(). Use this to prevent blocking while waiting for call() to finish. The default implementation does nothing.
Perform some actions after after call() completed. This is executed regardless of success or failure of call(). Use this to prevent blocking while waiting for call() to finish. The default implementation does nothing.
Value parameters
- result
-
a future containing result returned by
call(). The result can be obtained usingresult.get(). Only valid ifcall()completed successfully. - successful
-
will be
trueif call completed successfully (without exceptions and was not cancelled).
Attributes
Method called whenever the state of the Task has transitioned to the RUNNING state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Method called whenever the state of the Task has transitioned to the RUNNING state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Attributes
Method called whenever the state of the Task has transitioned to the SCHEDULED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Method called whenever the state of the Task has transitioned to the SCHEDULED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Attributes
called whenever the state of the Task has transitioned to the SUCCEEDED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
called whenever the state of the Task has transitioned to the SUCCEEDED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
Attributes
Concrete fields
Message that can be updated while task is executed.
Message that can be updated while task is executed.
Attributes
Progress indicator that can be updated when task is executed.
Progress indicator that can be updated when task is executed.